frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Advanced Chunking in JavaScript/TypeScript with Chonkie

6•snyy•4h ago
Hi HN,

We’re Shreyash and Bhavnick. We built Chonkie, an open-source library for advanced chunking and embedding of text and code. It was previously Python-only, but we just released a TypeScript version: https://github.com/chonkie-inc/chonkie-ts

Many AI projects in JS/TS (like those using Vercel's AI SDK or Mastra) rely on basic text splitters. But better chunking = better retrieval = better performance. That’s what Chonkie is built for.

Current native chunkers (in TS):

- Code Chunker – handles Python, TypeScript, etc.

- Recursive Chunker – rule-based, hierarchical splitting

- Token Chunker – split by token count (fully customizable)

- Sentence Chunker – split on sentence boundaries. Delimiters are customizable, so it works for multiple languages.

All chunkers support custom tokenizers, chunk overlap, delimiters, and more.

Coming soon in native TS (already available via the API client):

- Semantic Chunker – splits texts wherever it detects a shift in meaning.

- SDPM Chunker – merges semantically similar disjoint chunks

- Late Chunker – generates context-aware embeddings for each chunk

- Slumber Chunker – LLM-refined recursive chunks. Significantly reduces token usage (and thus cost) while maximizing chunk quality.

- Embeddings Refinery - Embed chunks with any embedding model

- Overlap Refinery – Create overlaps between consecutive chunks for better context preservation.

Chonkie is free, open-source, and MIT licensed. GitHub: https://github.com/chonkie-inc/chonkie-ts

We’d love your feedback, ideas, or contributions. Thanks!

Comments

skeptrune•3h ago
I love the typescript library. Python has always been friction for me when building AI apps. I'm going to deploy them on the web and, therefore, would prefer to have web-native tooling.
snyy•2h ago
Glad you like it!
lennertjansen•9m ago
when do you think overlap refinery will be available in the ts library? and how does it work?

Ask HN: Work on a human only internet? Are you involved/know of anything?

1•t0lo•2m ago•0 comments

512K Day: The Day the Internet Almost Broke [video]

https://www.youtube.com/watch?v=4r5IStRaG4E
1•kristofferR•3m ago•0 comments

The Artilect War – Cosmists vs. Terrans (2005) [pdf]

https://avalonlibrary.net/ebooks/Hugo%20de%20Garis%20-%20The%20Artilect%20War%20-%20Cosmists%20vs.%20Terrans.pdf
1•droideqa•5m ago•1 comments

Modification of Acetaminophen To Reduce Liver Toxicity And Enhance Drug Efficacy

https://www.societyforscience.org/regeneron-sts/2025-student-finalists/chloe-lee/
2•felineflock•5m ago•0 comments

The Florida tech scene has two flavors Bleak or Shady

1•greyjoyduck•6m ago•0 comments

Manifest: Startup Pitch Competition, Night Market, & Career Fair

https://news.manifold.markets/p/manifest-startup-pitch-competition
2•DavidChee•7m ago•0 comments

Star IT

https://github.com/magical-paperclip/sics-ground
1•magi-clip•8m ago•0 comments

The Challenge (2023 film)

https://en.wikipedia.org/wiki/The_Challenge_(2023_film)
3•bookmtn•11m ago•1 comments

What football will look like in the future

https://www.sbnation.com/a/17776-football
1•ajdude•13m ago•0 comments

Preparedness Paradox

https://en.wikipedia.org/wiki/Preparedness_paradox
2•JoshTriplett•14m ago•1 comments

Show HN: Outcry – Meta-Strategic AI for Activists and Protest Innovators

https://www.outcryai.com/
1•micahwhite•16m ago•0 comments

No, AI is not replacing DevOps engineers

https://old.reddit.com/r/Terraform/comments/1ktymm4/no_ai_is_not_replacing_devops_engineers/
1•iacguy•17m ago•0 comments

Show HN: GremlinGPT – Local Self-Evolving AI (No Cloud, No APIs, Just Autonomy)

https://github.com/statikfintechllc/AscendAI
1•GremlinGPT•17m ago•0 comments

Largest Hackathon Presented by Bolt

https://worldslargesthackathon.devpost.com/
2•danboarder•19m ago•0 comments

The Way of Code: The Timeless Art of Vibe Coding

https://www.thewayofcode.com/
3•CharlesW•23m ago•0 comments

Language and LLMs = Expression, Not Intelligence

https://karlvmuller.com/posts/llms-are-expression-not-intelligence/
1•KarlVM12•23m ago•0 comments

Unbundling ChatGPT in Waves

1•chany2•27m ago•0 comments

Ask HN: Which agentic framework/tool do you prefer and why?

1•baby•34m ago•0 comments

Digg co-founder offers to save Pocket as Mozilla winds it down

https://9to5mac.com/2025/05/23/digg-offers-to-save-pocket/
5•AdmiralAsshat•34m ago•0 comments

The End of California's Green Car Dream

https://www.carsandhorsepower.com/news/the-us-senate-s-vote-to-repeal-california-s-gas-powered-car-ban-a-clash-of-ideologies-industries-and-federalism
2•Anumbia•37m ago•2 comments

Deadlocks in Go: the dark side of concurrency (2021)

https://www.craig-wood.com/nick/articles/deadlocks-in-go/
2•leonidasv•44m ago•0 comments

Meta promised $1B for affordable housing. Then it walked away

https://www.mercurynews.com/2025/05/20/meta-facebook-billion-housing/
9•donsupreme•47m ago•1 comments

Show HN: FFmpeg Playground

https://bigballi.com/ffmpegPlayground
2•BigBalli•49m ago•0 comments

The Dying Art of Carb Tuning

https://www.carsandhorsepower.com/featured/carburetors-are-better-than-fuel-injection-fight-me
2•Anumbia•51m ago•1 comments

More than 100 National Security Council staffers put on administrative leave

https://www.cnn.com/2025/05/23/politics/national-security-council-administrative-leave-trump
7•anigbrowl•54m ago•0 comments

The mother who never stopped believing her son was still there

https://www.theatlantic.com/magazine/archive/2025/06/brain-injury-consciousness-science/682579/
2•namanyayg•55m ago•0 comments

Personalized software is coming, but not today. Maybe tomorrow?

https://mattsayar.com/personalized-software-really-is-coming-but-not-today-maybe-tomorrow/
2•namanyayg•55m ago•0 comments

The Demise of Silicon Valley Bank (2023)

https://www.netinterest.co/p/the-demise-of-silicon-valley-bank
1•namanyayg•55m ago•0 comments

Google DeepMind's Demis Hassabis on AGI, Innovation and More

https://www.nytimes.com/2025/05/23/podcasts/google-ai-demis-hassabis-hard-fork.html
2•kjhughes•56m ago•1 comments

Who's Coding Now? – AI and the Future of Software Development

https://www.youtube.com/watch?v=6Z5hlKIDV44
2•Brysonbw•57m ago•0 comments