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!

Let's compile like it's 1992

https://fabiensanglard.net/Compile_Like_Its_1992/index.php
1•andsoitis•1m ago•0 comments

Open Source DDI Solution (DHCP, DNS, IPAM)

https://github.com/spatiumddi/spatiumddi
1•mzac•3m ago•0 comments

Fake News: a game

1•oldfuture•6m ago•0 comments

Satan's 19th-Century Bank Note

https://www.historytoday.com/miscellanies/satans-19th-century-bank-note
1•Caiero•12m ago•0 comments

The Most Human Technology Ever Made

https://a16z.com/the-most-human-technology-ever-made/
1•kaladin-jasnah•12m ago•0 comments

Net July 23 Starship • Flight 13

https://spaceflightnow.com/launch-schedule/
1•bookmtn•13m ago•0 comments

White Sands National Park and the Birth of the Atomic Bomb [video]

https://www.youtube.com/watch?v=RPPAZhEYtnE
1•fortran77•17m ago•0 comments

New Zealand data centre's water consent concerns engineer

https://www.rnz.co.nz/news/business/750158/massive-southland-data-centre-s-water-consent-concerns...
3•billybuckwheat•17m ago•0 comments

GitHub Outage

https://www.githubstatus.com/incidents/8vfyvq16hzh9
5•rumblefrog•20m ago•1 comments

Ask HN: Where Is Karma Used?

1•haebom•23m ago•1 comments

Average Prototypes

https://goodnameforablog.com/posts/very-average-prototypes/
1•phyzix5761•25m ago•0 comments

6.4x faster than llama.cpp, 3.9x faster than MLX

https://www.basecompute.co/getbasert
2•lukasonedge•29m ago•0 comments

The Anti-Palantir Manifesto

https://nonogra.ph/the-anti-palantir-manifesto-07-20-2026
4•arkhiver•39m ago•0 comments

Website Screen Capture: Recordings Your AI Can Read

https://cbrowser.ai/blog/screen-capture-recordings-your-ai-can-read/
1•alexandriaeden•40m ago•0 comments

History and Scale of the H1B Visa

https://numberstation.fm/the-body-shop/
2•StrageMusik•40m ago•0 comments

The crash that wasn't: debugging CI with AI

https://abbyssoul.github.io/engineering/2026/07/19/the-crash-that-wasnt-debugging-kinjo-ci-with-a...
1•sagevoid•42m ago•0 comments

Open BFME 1

https://github.com/Open-BFME/Open-BFME-1
1•OsrsNeedsf2P•43m ago•0 comments

Why some DVLA digital services don't work at night

https://dafyddvaughan.uk/blog/2025/why-some-dvla-digital-services-dont-work-at-night/
1•herbertl•44m ago•1 comments

A Painter's New York Loft that he Moved into in 1967 [video]

https://www.youtube.com/watch?v=_A_u4N08B9U
1•toomuchtodo•47m ago•0 comments

'Live' World Cup Broadcast Is Not Live

https://www.nytimes.com/2026/07/18/sports/soccer/world-cup-live-tv-delay.html
1•lxm•50m ago•1 comments

Show HN: Quartermaster – self-hosted license server with offline signing key

https://github.com/laudendev/quartermaster
1•laudendev•50m ago•0 comments

Epub.js: Enhanced EBooks in the Browser

https://github.com/futurepress/epub.js/
2•gurjeet•54m ago•0 comments

Unvibe Is Here

https://unvibe.live
1•PrestonSusanto•59m ago•0 comments

Show HN: Headroom – measure your GPU's true bandwidth ceiling for local AI

https://ar5en1c.github.io/headroom/
2•Ar5en1c•59m ago•0 comments

DeKalb deputy charged with Flock camera misuse; more Georgia officers fired

https://www.ajc.com/news/2026/07/3-more-georgia-police-officers-fired-over-alleged-flock-camera-m...
51•pir8life4me•1h ago•22 comments

I've Struggled with Addiction. I'm Staying Away from A.I. Chatbots

https://www.nytimes.com/2026/07/19/opinion/ai-attention-social-media-attachment.html
1•geox•1h ago•0 comments

The SLAP stack is the last server stack you'll ever need

https://blakewatson.com/journal/the-slap-stack-is-the-last-server-stack-youll-ever-need/
1•blakewatson•1h ago•0 comments

Production Deployments to Exe.dev

https://asadjb.com/blog/2026-07-19-production-deployments-to-exe-dev
1•asadjb•1h ago•0 comments

Flock cameras collecting face, clothing,tattoo identifiers

https://www.jalopnik.com/2217154/flock-cameras-collecting-more-than-plate-car-information/
2•pir8life4me•1h ago•3 comments

Freeze-Casting

https://en.wikipedia.org/wiki/Freeze-casting
1•soupspaces•1h ago•0 comments