frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Entasis

https://en.wikipedia.org/wiki/Entasis
1•nomilk•2m ago•0 comments

How the Bitcoin protocol works (2013)

https://michaelnielsen.org/ddi/how-the-bitcoin-protocol-actually-works/
1•downbad_•2m ago•0 comments

The first graffiti wall (online)

https://freestencilmaker.com/the-wall
1•superluvdub•4m ago•1 comments

Chinese Electrotech Is the Big Winner in the Iran War

https://paulkrugman.substack.com/p/chinese-electrotech-is-the-big-winner
1•MaysonL•10m ago•0 comments

Pentagon Approaches Automakers, Manufacturers to Boost Weapons Production

https://www.wsj.com/politics/national-security/pentagon-approaches-automakers-manufacturers-to-bo...
1•cwwc•12m ago•0 comments

WebODM – Free and open source drone mapping software

https://webodm.org
1•alligray•21m ago•0 comments

Treasury Secretary Scott Bessent is preparing banks to collect citizenship data

https://www.cnbc.com/2026/04/15/banks-citizenship-data-collection-customer-accounts.html
5•pseudolus•25m ago•0 comments

The Universal Constraint Engine: Neuromorphic Computing Without Neural Networks

https://zenodo.org/records/19600206
2•skinney_uce•26m ago•0 comments

Shares in Allbirds surge after maker of wool sneakers announces pivot to AI

https://www.theguardian.com/business/2026/apr/15/allbirds-stock-ai-pivot
3•i7l•28m ago•1 comments

Tirith – Track your AI API spend with one CLI import

https://github.com/joedaviesio/tirith
1•joedaviesio•29m ago•0 comments

Show HN: The RUM Conjecture Explained [video]

https://www.youtube.com/watch?v=DGoI6T3SGfY
2•rcron•31m ago•0 comments

Amazon worker dies on warehouse floor. Workers told to keep going

https://finance.yahoo.com/sectors/healthcare/articles/just-dont-look-amazon-worker-170000180.html
9•latexr•31m ago•1 comments

YouTube now lets you turn off Shorts

https://www.theverge.com/streaming/912898/youtube-shorts-feed-limit-zero-minutes
24•pentagrama•31m ago•2 comments

Ants Find Food (2003)

https://mute-net.sourceforge.net/howAnts.shtml
1•downbad_•34m ago•3 comments

Substrate Independent

https://github.com/Technologicat/substrate-independent
1•skeledrew•34m ago•0 comments

Zappa: An AI Powered Mitmproxy

https://geohot.github.io//blog/jekyll/update/2026/04/15/zappa-mitmproxy.html
2•__cayenne__•35m ago•0 comments

Anthropic: Stop Shipping. Seriously.

https://www.reddit.com/r/ClaudeAI/s/C9WM4DHtqt
2•IndignantTyrant•37m ago•0 comments

The TL;DR on MCP: Why context matters and how to put it to work

https://www.figma.com/blog/the-tldr-on-mcp/
2•salkahfi•38m ago•0 comments

TruffleRuby 34: Ruby 3.4 Compatibility, 23% Faster Parsing, New 20x Faster

https://truffleruby.dev/blog/truffleruby-34-is-released
1•birdculture•38m ago•0 comments

Atlassian defends firing engineer for suggesting CEO is 'rich jerk'

https://www.afr.com/technology/atlassian-defends-firing-engineer-for-suggesting-ceo-is-rich-jerk-...
15•jamesfinlayson•42m ago•3 comments

Docker Hodgepodge Images

https://www.chainguard.dev/unchained/docker-hodgepodge-images
2•prdonahue•49m ago•0 comments

Bonafide.Work a platform for contractors to launch a website, manage bookings

https://bonafide.work/
1•fullstacking•49m ago•0 comments

Elegant D

https://www.youtube.com/watch?v=-kYM7ue7pqc
1•MikeShah•50m ago•1 comments

Switch: Faster, smarter AI audio conversion

https://www.nch.com.au/pad/switch.xml
1•NCHSoftware•53m ago•0 comments

Nginx 1.30.0

https://github.com/nginx/nginx/releases/tag/release-1.30.0
3•thunderbong•54m ago•0 comments

Come scegliere un developer freelance Laravel per il tuo progetto

https://donatodelpeschio.it/blog/come-scegliere-developer-freelance-laravel
1•donnyBlanko•54m ago•0 comments

For quantum computing, different qubits are better together

https://www.darpa.mil/news/2026/quantum-computing-different-qubits-better-together
1•bookofjoe•56m ago•0 comments

Gay Talese on a Writer's Life

https://www.realclearpolitics.com/articles/2026/04/15/gay_talese_on_a_writers_life_154037.html
2•RickJWagner•58m ago•0 comments

Repos.. 2M+ scanned.. most Google OAuth implementations key on email not sub

https://neelagiri65.github.io/gmail-oauth-research/
1•Srinathprasanna•1h ago•0 comments

Google shoehorned Rust into Pixel 10 modem to make legacy code safer

https://arstechnica.com/gadgets/2026/04/google-shoehorned-rust-into-pixel-10-modem-to-make-legacy...
8•snackoverflow•1h ago•0 comments