frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•1y ago
Hi HN,

We’re Chonkie (https://github.com/chonkie-inc/chonkie) — we build open source tools that help split documents into meaningful chunks for use with AI models.

When you use LLMs over large documents or codebases, you often need to break them into smaller parts to fit the model’s context window. Our chunkers do this in a smart way: they preserve structure and meaning, so only the most relevant pieces are passed into the model. This reduces hallucinations, avoids confusion, and improves performance and accuracy.

Today we’re launching our Code Chunker — a fast, structure-aware way to break down source code into high-quality, token-aware chunks.

How it works:

(See the code: https://github.com/chonkie-inc/chonkie/blob/main/src/chonkie...)

Code Chunker uses tree-sitter (https://tree-sitter.github.io/tree-sitter/) to parse your code into an abstract syntax tree (AST). It then recursively merges and groups nodes in a way that respects both code structure and token limits.

It supports all languages that tree-sitter supports, and is designed to preserve formatting and semantics. Large functions or class definitions won’t be split in the middle of a block — instead, we dive recursively into the AST to produce clean, coherent chunks that fit your configured token budget.

What it’s useful for:

  - Embedding-based code search

  - RAG (retrieval-augmented generation) over codebases

  - Long-context analysis of code

  - Preparing repos for fine-tuning or pretraining
Try it out:

  - Open source package: https://docs.chonkie.ai/chunkers/code-chunker

  - Hosted playground (free with account): https://cloud.chonkie.ai
Happy Chonking!

Be the First to Test It

1•carlostkd•35s ago•0 comments

AI Is the Best Thing to Happen to Security

https://badshah.io/blog/ai-is-the-best-thing-to-happen-to-security/
1•ilreb•1m ago•0 comments

Ask HN: Who here would agree to replace parliaments with LLMs?

1•julienreszka•1m ago•0 comments

A new metadata engine for high performance Object Storage (not LSM, not B+ tree)

https://fractalbits.com/blog/metadata-engine-for-our-object-storage-from-lsm-tree-to-fractal-art/
1•rustshellscript•3m ago•0 comments

Ask HN: What would you say to Elon Musk on his 55th birthday TODAY?

3•vantareed•4m ago•1 comments

I built Stack Overflow Tech Trends to visualize 15+ years of tag popularity

https://verpad.vercel.app/so-trends.html
1•sheelagay•5m ago•0 comments

Twitter Search Filters

https://twitter.com/berryxia/status/2070392620359315484
3•aurenvale•9m ago•0 comments

GT America

https://www.gt-america.com/
1•toilet•11m ago•0 comments

PSR J1748−2446ad spins at 24% of the speed of light at it's equator

https://en.wikipedia.org/wiki/PSR_J1748%E2%88%922446ad
1•Jimmc414•12m ago•0 comments

Why prediction markets aren't popular

https://worksinprogress.co/issue/why-prediction-markets-arent-popular/om
3•latentframe•20m ago•0 comments

Security News This Week: LastPass Users Had Their Data Stolen–Again

https://www.wired.com/story/security-news-this-week-lastpass-users-had-their-data-stolen-again/
3•joozio•27m ago•0 comments

Show HN: React Router V8 integration for LinguiJS

https://github.com/ws-rush/lingui-rr
3•ws-rush•27m ago•0 comments

Show HN: Core-1 – A distributed C++ AGI framework for trillion-parameter scale

https://github.com/Sarkar-AGI/Core-1
3•Rahul-sarkar•28m ago•0 comments

Show HN: Better Graphs – Teach agents to stop making plain Matplotlib slop

https://temataro.github.io/better-graphs/
5•tem_alThor•35m ago•1 comments

Finding It Challenging to Maintain Software Created with Coding Agents?

5•nlpnerd•42m ago•0 comments

Yes, Europe's heat waves are deadlier than American gun violence

https://fortune.com/2026/06/26/heat-death-europe-ac-american-gun-violence-climate-change-hot-summer/
10•m_mueller•47m ago•0 comments

Pentagon Sees Bigger Role for AI in Setting Military Targets

https://www.bloomberg.com/news/articles/2026-06-25/pentagon-sees-broader-role-for-ai-in-setting-m...
3•yurivish•51m ago•0 comments

AI Assistant for Amazon

https://chromewebstore.google.com/detail/ai-assistant-for-amazon/ohpekhndmbmkpdoikmphbmdpailacjeo
2•aniruddhaikhar•57m ago•0 comments

Clean Code: Second Edition Critique

https://bugzmanov.github.io/cleancode-critique/
3•bmacho•1h ago•1 comments

GitHub's new "search bar" sucks

3•kromerless•1h ago•0 comments

Show HN: Added SaaS Explainer Video Template in Clickcast.tech

https://www.clickcast.tech/template-editor
2•clickcasttech•1h ago•0 comments

Aileadgenr.com – AI lead generation tool for finding potential B2B customers

https://aileadgenr.com/en
2•kilincarslan•1h ago•0 comments

Show HN: Ultrasonic 3D motion capture (Orientator)

https://hackaday.io/project/205963-ultrasonic-3d-motion-capture-orientator
2•optimized75•1h ago•0 comments

The Waffle Shop Downstairs

https://zhenyi.gibber.blog/the-waffle-shop-downstairs
2•zhenyi•1h ago•0 comments

Google caps Meta's Gemini use as AI demand strains capacity

https://www.ft.com/content/c5d52f72-71ef-40bc-bad3-61afdba8b378
3•uxhacker•1h ago•0 comments

A garage-built Alzheimer drug shows how far DIY biotech has come

https://runtimewire.com/article/a-garage-built-alzheimer-drug-shows-how-far-diy-biotech-has-come
3•ryanmerket•1h ago•0 comments

Armadillo – A DNS Server in Gleam for Homelab Use

https://github.com/vshakitskiy/armadillo
2•TheWiggles•1h ago•0 comments

South Korea's FoodNeverComes app helps users feel the rush of making purchases

https://www.fastcompany.com/91560432/dopamine-sites-fake-online-shopping-apps-let-you-pretend-to-...
3•networked•1h ago•0 comments

I wouldn't pay it either

https://www.lrb.co.uk/the-paper/v48/n11/simon-skinner/i-wouldn-t-pay-it-either
4•austinallegro•1h ago•0 comments

Trump Admin Releases Anthropic Mythos

https://techcrunch.com/2026/06/26/trump-admin-releases-anthropic-mythos-to-be-used-by-more-than-1...
4•ameypandey•1h ago•0 comments