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!

Paywall-Free News Aggregator

https://freepress.today/
1•niraj-agarwal•2m ago•1 comments

Show HN: a Rust, Wayland, Vulkan 3D CRT, screencast application, retroarch cores

https://github.com/andrewfader/crtulum
1•androsynth89•10m ago•0 comments

India cuts internet, then demands removal of bitchat's code

https://korben.info/en/india-cuts-internet-demands-removal-bitchat-code.html
2•sakumen•14m ago•1 comments

Improving Terminal Ergonomics

https://aiex7.github.io/blog/articles/improving-terminal-ergonomics/
1•harr01•14m ago•0 comments

Why Lean is faster than Rust

https://kim-em.github.io/blog/2026-7-24-why-lean-is-faster-than-rust/
1•replatformradar•14m ago•0 comments

Renaissance Man: imago ex machina

https://github.com/willswire/renaissance-man
1•willswire•20m ago•0 comments

Genvap – Turn a screen recording into a cinematic app showcase video

https://genvap.com/
1•equinnt•24m ago•1 comments

What breaks in production AI workflows?

https://www.indiehackers.com/post/weve-reproduced-30-real-ai-runtime-failures-over-the-past-week-...
2•doodlebyte•25m ago•0 comments

Show HN: Static MCP – publish MCP tools as static files, run them sandboxed

https://github.com/MauricioPerera/mcpwasm
1•rckflr•29m ago•0 comments

I got tired of deleting tracking parameters from URLs

1•hexcode_•29m ago•0 comments

Can uBlock Origin Block WebRTC?

https://www.justus.pw/posts/2026-07-27-can-ublock-origin-block-webrtc.html
1•justusw•35m ago•2 comments

Buzz: where humans and agents work together

https://block.xyz/inside/introducing-buzz-where-humans-and-agents-work-together
1•foruhar•36m ago•0 comments

Buzz from Block: where humans and agents work together

https://buzz.xyz
2•foruhar•37m ago•0 comments

'Skynet Day' is now shorthand for OpenAI's agent going rogue

https://fortune.com/2026/07/26/james-cameron-terminator-skynet-day-openai-ai-agent-hack-hugging-f...
2•CharlesW•40m ago•0 comments

Voice Orchestration Benchmarks

https://benchmarks.cekura.ai
1•tash_2s•40m ago•0 comments

Show HN: Rogg – I built a Rust BGP speaker and run a live AS on DN42

https://github.com/roggnetwork/rogg
2•stockkid•42m ago•1 comments

Universe Splitter

https://www.aerfish.com/universe-splitter
3•e-dant•50m ago•0 comments

Dataland

https://www.wallpaper.com/art/exhibitions-shows/dataland-the-museum-of-ai-arts-los-angeles-review
1•andsoitis•50m ago•0 comments

Making Referential Stability a Type

https://jovidecroock.com/blog/referential-stability-types/
2•acmnrs•51m ago•0 comments

Show HN: I built a static verifier for OpenCode to stop unsafe AI tool calls

https://github.com/albertjoseph0/opencode-plugin-guardians
1•abj908•51m ago•0 comments

(Life) Advice From The Creator of C++ [video]

https://www.youtube.com/watch?v=-QxI-RP6-HM
1•amarbirsingh•51m ago•0 comments

The Economics of Responsibility

https://abacus2007ac1.io/blog/20260727-economics_of_responsibility/
1•weakened_malloc•54m ago•0 comments

3blue1brown: How a Mandelbrot set arises from Newton's work

https://www.3blue1brown.com/?topic=fractals&lesson=holomorphic-dynamics
1•ninju•58m ago•0 comments

The Rise of the Deserving Rich

https://www.economist.com/finance-and-economics/2026/07/23/the-rise-of-the-deserving-rich
1•Jiahang•59m ago•0 comments

Show HN: Taetype 1.0 – decode, subset, shape, rasterize fonts, zero unsafe

https://github.com/silly-tae/taetype
1•silly-tae•1h ago•0 comments

How Dubai, New York, Paris and Shenzhen are building their flying-taxi networks

https://monocle.com/business/transport/which-cities-flying-taxis-companies/
1•andsoitis•1h ago•0 comments

Modeling Facts and Reactions with Domain Events

https://deniskyashif.com/2026/07/25/modeling-facts-and-reactions-with-domain-events/
2•thunderbong•1h ago•0 comments

Show HN: Neubook – An ePub reader with reading focus features

https://neubook.app/
1•bibin765•1h ago•0 comments

The old-school way of keeping the summer heat out of your home

https://monocle.com/design/architecture/keeping-your-home-cool-without-air-conditioning/
3•andsoitis•1h ago•4 comments

The 3F Bell Designer

https://msp.ucsd.edu/ideas/2020.06.05.bell-designer/README.htm
1•jruohonen•1h ago•0 comments