frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Crystal Now Has Official Linux ARM64 Builds

https://crystal-lang.org/2026/04/07/official-linux-arm64-builds/
1•TheWiggles•1m ago•0 comments

The AI revolution – spamming 680PRs in 442 GitHub repos in 21 days in April

https://github.com/SAY-5
1•ddorian43•3m ago•1 comments

The first neural interface that transforms your thoughts into text

https://sabi.com/
1•filippofinke•8m ago•0 comments

Indent Is All You Need

https://blog.est.im/2026/stdin-11
1•est•11m ago•0 comments

The arrogant superbanker whose hubris brought Britain to its knees

https://inews.co.uk/opinion/arrogant-superbanker-hubris-brought-britain-knees-4331457
1•robtherobber•12m ago•0 comments

Making the Rails Default Job Queue Fiber-Based

https://paolino.me/solid-queue-doesnt-need-a-thread-per-job/
1•earcar•13m ago•0 comments

The Dirty Little Secret of AI (On a 1979 PDP-11) [video]

https://www.youtube.com/watch?v=OUE3FSIk46g
1•KnuthIsGod•18m ago•0 comments

HappyHorse AI – AI-Powered Equestrian Training

https://www.runhappyhorse.net
1•danielmateo773•19m ago•1 comments

Master of chaos wins $3M math prize for 'blowing up' equations

https://www.scientificamerican.com/article/master-of-chaos-wins-usd3m-math-prize-for-blowing-up-e...
1•signa11•19m ago•0 comments

Why the Original Task Manager Was Under 80K and Insanely Fast [video]

https://www.youtube.com/watch?v=OyN4LGyPwxc
2•KnuthIsGod•19m ago•0 comments

Influencers Are Spinning Nicotine as a 'Natural' Health Hack

https://www.nytimes.com/2026/04/20/well/nicotine-health-maha.html
2•SockThief•20m ago•2 comments

Details that make interfaces feel better

https://jakub.kr/writing/details-that-make-interfaces-feel-better
1•dg-ac•21m ago•0 comments

Watch a 200 Pound, 14" Drive from the 80s Boot Unix [video]

https://www.youtube.com/watch?v=kpC_9EmStAE
1•KnuthIsGod•21m ago•0 comments

My billing system, it could be useful to some

https://github.com/peterretief/billing-v2
2•peter_retief•23m ago•1 comments

ConvertHook – White-label widget that shows where brands rank in ChatGPT

https://converthook.com
1•joefromcomkey•25m ago•0 comments

Palantir manifesto reads like the ramblings of a comic book villain

https://www.engadget.com/big-tech/palantir-posted-a-manifesto-that-reads-like-the-ramblings-of-a-...
1•robtherobber•25m ago•0 comments

SUSE and Nvidia reveal a turnkey AI factory for sovereign enterprise workloads

https://thenewstack.io/suse-nvidia-ai-factory/
1•CrankyBear•25m ago•0 comments

Curlew conservation scheme makes breakthrough in Fermanagh

https://www.rte.ie/news/ireland/2026/0421/1569263-curlew-conservation/
1•austinallegro•26m ago•0 comments

Modern Front end Complexity: essential or accidental?

https://binaryigor.com/modern-frontend-complexity.html
1•birdculture•28m ago•0 comments

Show HN: WeTransfer Alternative for Developers

https://dlvr.sh/
3•mariusbolik•34m ago•0 comments

Keeping code quality high with AI agents

https://locastic.com/blog/keeping-code-quality-high-with-ai-agents
1•locastica•35m ago•0 comments

The MACL Extended Attribute

https://eclecticlight.co/2026/04/21/the-macl-extended-attribute/
1•frizlab•37m ago•0 comments

Mother Earth Mother Board

https://efdn.notion.site/Mother-Earth-Mother-Board-WIRED-a8ff97e460bc4ac1b4a7b87f3503a55c
1•thunderbong•39m ago•0 comments

US recession probabilities implied by the yield curve

https://www.stlouisfed.org/on-the-economy/2023/sep/what-probability-recession-message-yield-spreads
1•latentframe•44m ago•1 comments

Show HN: AnyHabit – A minimalist habit tracker for Raspberry Pi and Docker

https://github.com/Sparths/AnyHabit
1•bebedi•46m ago•0 comments

Highlights from Git 2.54

https://github.blog/open-source/git/highlights-from-git-2-54/
1•tux3•48m ago•0 comments

Enhancing Sporting Organisation Efficiency with Generative AI

https://sinankprn.com/posts/enhancing-sporting-organisation-efficiency-with-generative-ai/
1•sminchev•49m ago•0 comments

Reconstructing a Vue and Three.js app from a single Webpack bundle

1•YufanZhang•49m ago•0 comments

Show HN: Tiltbump – another game in a single HTML file

https://tiagosimoes.github.io/tiltbump/
2•eropatori•51m ago•0 comments

WebP to PNG Converter – Convert WebP to PNG Online Free

https://www.wps.com/tools/webp-to-png/
2•morganglow•57m ago•1 comments