frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Report company earnings daily (2018)

https://ritholtz.com/2018/08/report-earnings-daily/
1•rwmj•1m ago•0 comments

Skills, 8 MCP tools, 6 runtimes, one memory system that never forgets

https://github.com/EliasOulkadi/shokunin
1•EliasOulkadi•1m ago•0 comments

Why vibe coding is becoming an SEO advantage

https://searchengineland.com/vibe-coding-seo-advantage-477069
1•rustoo•1m ago•0 comments

Is Bitwarden Preparing for a Sale?

https://kevquirk.com/is-bitwarden-preparing-for-a-sale
1•meysamazad•3m ago•0 comments

EISPACK

https://www.netlib.org/eispack/
1•tosh•9m ago•0 comments

My Thoughts on Bun's Rust Rewrite

https://en.liujiacai.net/2026/05/16/bun-rust-port/
1•danborn26•10m ago•0 comments

Bicycle (1981)

https://folklore.org/Bicycle.html
1•tosh•13m ago•0 comments

Matlab and APL: Meeting Cleve Moler (2012)

https://computinged.wordpress.com/2012/06/14/matlab-and-apl-meeting-cleve-moler/
2•tosh•15m ago•0 comments

The End of Refugee Resettlement

https://www.newyorker.com/news/letter-from-jordan/the-end-of-refugee-resettlement
1•rbanffy•15m ago•0 comments

Zero metadata, group descriptions, native audio/video calls and more

https://delta.chat/en/2026-03-31-zero
1•han1•18m ago•1 comments

Show HN: Pop the AI Bubble – A satirical card game mocking AI hype

https://poptheaibubble.com/
1•guigotgit•22m ago•1 comments

A Meta employee gets real about the horror of working there

https://sfstandard.com/pacific-standard-time/2026/05/15/meta-employee-gets-real-horror-working-ri...
4•forrestbrazeal•24m ago•1 comments

Getting fired? Here is what you need to do to get a shit ton of money

https://techwerkers.nl/en/resources/negotiation/
1•zebreus•27m ago•0 comments

Show HN: ThumbAPI – thumbnail generation API for developers

https://thumbapi.dev
1•dinall•32m ago•0 comments

SANA-WM, a 2.6B open-source world model for 1-minute 720p video

https://nvlabs.github.io/Sana/WM/
3•mjgil•37m ago•3 comments

Moving abroad? You may lose access to your accounts

https://twitter.com/alanhamlett/status/2055617308656030173
1•welder•38m ago•0 comments

AI Agents Are Currently Stealing My Job, and Honestly? They Can Have It

https://www.bwanaerp.com/blog/ai-agents-are-currently-stealing-my-job-and-honestly-they-can-have-...
2•instarlaxy•39m ago•0 comments

Y-Zipper: 3D Printing Flexible-Rigid Transitions in One Click [video]

https://www.youtube.com/watch?v=AWig98GVIno
1•anfractuosity•42m ago•0 comments

Optimizing your website for generative AI features on Google Search

https://developers.google.com/search/docs/fundamentals/ai-optimization-guide
2•taubek•46m ago•0 comments

Greek Alphabet Cards

https://labs.randomquark.com/alphabet_cards/
4•ricochet11•51m ago•0 comments

On Road to Canterbury-Reading Dan Simmons Sci-Fi Adaptation of Chaucer's Classic

https://lithub.com/on-the-road-to-canterbury-reading-dan-simmons-sci-fi-adaptation-of-chaucers-cl...
2•pseudolus•52m ago•0 comments

Keepithub – Physical-world geo-referenced memory for AI agents (B2A marketplace)

https://keepithub.com/launch.html`
2•keepithub•52m ago•0 comments

'A' grades are suddenly everywhere since the arrival of ChatGPT

https://www.msn.com/en-us/money/careersandeducation/a-grades-are-suddenly-everywhere-since-the-ar...
6•pseudolus•57m ago•1 comments

Why the US Can't Adopt Ukraine's Innovative Approach to Unmanned Warfare Systems

https://www.techdirt.com/2026/05/15/why-the-us-cant-adopt-ukraines-innovative-approach-to-unmanne...
4•beardyw•58m ago•0 comments

Chatbots' Downward Spiral

https://cacm.acm.org/news/chatbots-downward-spiral/
2•pseudolus•58m ago•0 comments

Prepare for an AI Jobs Apocalypse

https://www.economist.com/leaders/2026/05/14/prepare-for-an-ai-jobs-apocalypse
6•wiseowise•59m ago•0 comments

TokenBBQ – track AI coding token usage across Claude, Codex, Gemini

https://github.com/offbyone1/tokenbbq
2•TokenBBQ•59m ago•0 comments

The Infinite Power Grid Won't Be Built with Today's Lasers FusionEnergy

https://beeble.com/en/blog/the-infinite-power-grid-won-t-be-built-with-today-s-lasers
2•odysseyk•59m ago•0 comments

Europe built sovereign clouds to escape US control. Forgot about the processors

https://www.theregister.com/systems/2026/05/16/europe-built-sovereign-clouds-to-escape-us-control...
41•beardyw•1h ago•26 comments

Show HN: Let's build Claude Code from scratch (tutorial)

https://www.youtube.com/watch?v=8pDfgBEy8bg
3•CohleM•1h ago•0 comments