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!

NASA Ad Astra Initiative

https://science.nasa.gov/astrophysics/programs/physics-of-the-cosmos/community/ad-astra/
1•xqcgrek2•1m ago•0 comments

Sum types in Go, or how to model events the compiler can check

https://viviersoft.com/blog/ddd-go-1-sum-types/
1•lanath•3m ago•0 comments

Farmed Salmon May Not Be as Nutritious as It Once Was, New Research Suggests

https://insideclimatenews.org/news/04092026/farmed-salmon-losing-healthy-fatty-acids/
1•Alephinitesimal•3m ago•0 comments

Customer Support Is Broken. VoraDesk Is Building a Better Way

https://substack.com/profile/206275102-akanmu-akinkunmi/note/c-331801194
1•PetrJoe•6m ago•0 comments

Customizing my Compaq MX-11800 keyboard

https://blog.webb.page/WM-102
3•NetOpWibby•7m ago•0 comments

Gmail/Google Docs Down?

2•kappi•8m ago•0 comments

Tesla touts European supervised self-driving safety data ahead of EU vote

https://www.reuters.com/business/autos-transportation/tesla-touts-european-supervised-self-drivin...
1•tosh•9m ago•0 comments

CampRoo – Free Camping Spots

https://camproo.com
1•aziz10101•9m ago•0 comments

FSD Supervised now approved in Slovenia

https://twitter.com/teslaeurope/status/2097007168939593780
1•tosh•9m ago•0 comments

San Francisco institution 'heartbroken and furious' after erasure of public art

https://www.sfgate.com/local/article/clarion-alley-murals-erased-22420365.php
2•mikhael•10m ago•0 comments

The auto-formalization of mathematics versus law

https://lexifina.com/blog/auto-formalisation-of-law
2•alansaber•12m ago•0 comments

SnapFire FSR: Write TypeScript. Run Rust. Ditch Node.js

https://snapfirers.com/
1•excsn•15m ago•1 comments

A fast client only protein viewer

https://github.com/buyukakyuz/protein-foldspace
2•replaski16•15m ago•0 comments

The Aviation Herald was sued – July 31st 2026

https://avherald.com/h?article=53c8958a
2•embedding-shape•15m ago•0 comments

Ancient cave art suggests first known humans in Ireland walked over from Wales

https://www.bbc.com/news/articles/c5y75dl0jpko
1•bookofjoe•16m ago•1 comments

Humpback whales are interrupting orca hunts to rescue different species

https://spacedaily.com/k-humpback-whales-are-interrupting-orca-hunts-to-rescue-completely-differe...
2•cobbzilla•17m ago•0 comments

VDN Vai Dar Namoro

https://vaidarnamoroonline.netlify.app
1•gabrielantonio•20m ago•0 comments

Bun rewrite and FLT formalization had nearly identical resource usage

2•Zsfe510asG•21m ago•1 comments

Show HN: Raw Screen Recordings into Cinematic Apple-Style Product Demos

https://isolate.video/
5•vignesh_warar•22m ago•0 comments

YC Demo Day This Thursday

https://www.neweconomies.co/p/y-combinator-summer-26-batch
1•ollieforsyth•23m ago•0 comments

Russia opens first road bridge with North Korea

https://www.dw.com/en/russia-opens-first-road-bridge-with-north-korea/a-79142595
3•everybodyknows•25m ago•0 comments

Can the U.S. afford a major war? Not with this deficit

https://www.washingtonpost.com/opinions/interactive/2026/09/07/deficit-is-biggest-threat-us-natio...
2•moat•25m ago•1 comments

Show HN: Isle – managed application environments for computer-use agents

https://www.tryisle.com
4•sxhivs•27m ago•1 comments

Show HN: Security and JSON tools that run in the browser

https://sentrint.com/tools
3•xEcho•28m ago•0 comments

The Download: the hunt for underground hydrogen and more rogue OpenAI agents

https://www.technologyreview.com/2026/09/07/1143592/the-download-underground-hydrogen-search-rogu...
3•joozio•28m ago•0 comments

Root cause analysis of the Liquid network split and 3,998.67 BTC peg-out theft

https://gist.github.com/1440000bytes/211ac92dd4433bb1a2e674bf0ff7db2e
2•binyu•29m ago•0 comments

Can AI Replace a Nevada Brothel Sex Worker?

https://brothelnevada.com/2026/09/05/ai-replace-sex-workers/
1•Teever•30m ago•0 comments

PostgreSQL 19 Interactive Tour

https://victoriametrics.com/blog/postgres-19/index.html
3•valyala•31m ago•0 comments

Bitcoin sidechain Liquid hacked for ~4k BTC

https://nehanarula.org/2026/09/07/liquid-hack.html
4•nehan•32m ago•1 comments

$70 Open Source Brain-Computer Interface Octopus 16 by PiEEG

https://www.indiegogo.com/en/projects/pieeg/pieeg_octopus
1•Christiangmer•32m ago•0 comments