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!

Show HN: Free AI headshots from one selfie, no signup

https://freeheadshot.org
1•alshanty•1m ago•0 comments

Show HN: Synthra – I got tired of gluing config sources together in Go

https://github.com/gopherly/synthra
1•atkrad•2m ago•0 comments

Huawei zero-day attack behind last years crash of Luxembourgs telecoms network

https://therecord.media/huawei-zero-day-behind-last-year-luxembourg-telecom-outage
1•DavideNL•3m ago•0 comments

Show HN: DSCode – A VS Code-compatible editor built as a kit of Rust crates

https://github.com/dipankar/dscode
1•ticktockten•5m ago•0 comments

Russians Fear Ukraine "Slaughterbot" Drones Are Head-Hunting Them

https://www.forbes.com/sites/davidhambling/2026/05/19/slaughterbots-now-ukraines-head-hunting-dro...
1•dist-epoch•6m ago•1 comments

Scientists reveal how seven days of fasting transforms the human body

https://www.sciencedaily.com/releases/2026/05/260517030404.htm
1•PaulHoule•6m ago•0 comments

Yearslong fight over users' right to tweak smart TV software heads to trial

https://arstechnica.com/gadgets/2026/05/inside-the-fight-to-force-vizio-to-share-linux-based-sour...
2•sohkamyung•7m ago•0 comments

PromptVC, version control for prompts in production

https://www.promptvc.io/blog/introducing-promptvc
1•justicea83•7m ago•0 comments

Active Graph: event-sourced reactive graph runtime for long-running agents

https://twitter.com/yoheinakajima/status/2057099245430222926
1•yoheinakajima•8m ago•0 comments

Suggest Google Antigravity Alternative

1•Pallavimdb•8m ago•0 comments

Swap tables, flash-friendly swap, swap_ops, and more

https://lwn.net/SubscriberLink/1072657/394b87abd7cc215e/
1•mkesper•11m ago•0 comments

SemOpenAlex: Scholarly RDF Knowledge Graph

https://semopenalex.org/resource/semopenalex:UniversalSearch
1•cernocky•11m ago•0 comments

Vulcan Brands – e-commerce store for rigging and cargo control hardware

https://vulcanbrands.com/
1•techyouknow•12m ago•0 comments

$15 Script. $0.41/Day System. Full Stack Going Open Source

https://alanscottencinas.medium.com/how-i-turned-one-15-python-file-into-a-0-41-day-5b43914a226b
1•encinas88•12m ago•0 comments

Flows vs. Tests: Per-Test Billing Broke QA

https://medium.com/@kkhaag/flows-vs-tests-per-test-billing-broke-qa-720fbfc3b899
1•k4224•13m ago•0 comments

Former congressman Barney Frank has died

https://www.nbcnews.com/news/us-news/former-rep-barney-frank-champion-wall-street-reform-lgbtq-tr...
3•lode•15m ago•0 comments

Google Universal Cart

https://twitter.com/Google/status/2056798395377832214
1•tzury•15m ago•0 comments

Reconciling Enterprise AI Revenue

https://philippdubach.com/posts/reconciling-enterprise-ai-revenue/
1•7777777phil•16m ago•0 comments

The Bipolar Lisp Programmer (2007)

https://www.marktarver.com/bipolar.html
1•caminanteblanco•17m ago•0 comments

A Machine to Confess To

https://alexlys.dev/blog/ai-confessional/
1•alexlysdev•17m ago•0 comments

TokenScale – AI API pricing in words you know (The Hobbit = $0.06)

https://tokenscale.dev
2•willbilton•17m ago•0 comments

I Cut AWS CloudWatch Costs by 50%

https://medium.com/@srinu-n/how-i-cut-aws-cloudwatch-costs-by-50-a-vpc-flow-logs-case-study-5b147...
1•nallerooth•20m ago•0 comments

Can a Mediterranean Island Nation Turn AI into a Basic Public Right?

https://beeble.com/en/blog/can-a-mediterranean-island-nation-turn-ai-into-a-basic-public-right
1•Akamant•20m ago•0 comments

Silent Semantic Drift

https://normalphd.substack.com/p/silent-semantic-drift-inter-agent
1•dooku0721•21m ago•0 comments

I Don't Read My Own Specs Anymore

https://medium.com/@dparkmit/i-dont-read-my-own-specs-anymore-ade29a6cc063
1•dparkmit•22m ago•0 comments

Replay-based regression testing for ROS 2

https://github.com/Kaedim/perception-replay-ci
1•mbradber•23m ago•1 comments

I Caught ChatGPT for Finance Making Up a Transaction [video]

https://www.youtube.com/watch?v=-b1FNCAVXKU
1•bachmeier•24m ago•1 comments

Convicted Felon Gets $1M in Tax Money a Year to Sell Obsolete Internet Service

https://www.propublica.org/article/alaska-telecom-subsidies-roger-shoffstall
1•hn_acker•25m ago•1 comments

Ollama Doesn't Know Its GPU Is on Another Machine

https://loopholelabs.io/blog/ollama-remote-gpu
1•shivanshvij•26m ago•1 comments

Show HN: Sticky Icky – a ditherpunk sticker designer for the Zebra LP2844

https://github.com/nastronot/sticky-icky
3•sigspec•28m ago•0 comments