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!

Why do systems stay coherent even as they lose connection to reality?

https://therealitydrift.substack.com/p/semantic-fidelity-the-missing-constraint
1•realitydrift•1m ago•0 comments

The Ghost of Microgravity in Astronauts' Brains

https://nautil.us/the-ghost-of-microgravity-in-astronauts-brains-1280028
1•Brajeshwar•2m ago•0 comments

Show HN: I built a blogging platform (5 years in, struggling with distribution)

https://blogmaker.app/
1•octobereleven•2m ago•0 comments

BeiDou GPS should be allowed on US civilian devices like Galileo and GLONASS

https://warontherocks.com/a-signal-point-of-failure-integrating-beidou-into-u-s-positioning-navig...
1•ck2•2m ago•1 comments

Show HN: I made a quiz to help people learn Claude Code features (with macOS UI)

https://slashquiz.org/
1•cjbarber•3m ago•0 comments

Collaborative code editor implementation is harder than you expect

https://medium.com/@growth_9158/building-a-reliable-collaborative-code-editor-lessons-from-shippi...
1•tomodachiprep•6m ago•0 comments

Show HN: Stet – PostScript Level 3 interpreter and PDF toolkit in Rust

https://andycappdev.github.io/stet/
1•AndyCappDev•6m ago•0 comments

My University Hired a Terrorist

https://www.facultyleaks.com/p/my-university-hired-terrorist
2•johndcook•6m ago•0 comments

•7m ago

Addressing the Harassment

https://drewdevault.com/blog/Addressing-harassment/
1•Tomte•7m ago•0 comments

Show HN: LemmaScript, a verification toolchain for TypeScript via Dafny

https://github.com/midspiral/LemmaScript
1•namin•8m ago•0 comments

Show HN: GoModel – an open-source AI gateway in Go; 44x lighter than LiteLLM

https://github.com/ENTERPILOT/GOModel/
1•santiago-pl•8m ago•0 comments

The Internet Is Real Life

https://www.a16z.news/p/the-internet-is-real-life
1•7777777phil•9m ago•0 comments

The Oil Shock Is About to Hit America [video][25mins]

https://www.youtube.com/watch?v=f353QO5Dgus
1•Bender•9m ago•0 comments

NASA's Curiosity rover finds organic molecules on Mars

https://www.theguardian.com/science/2026/apr/21/nasa-curiosity-rover-finds-organic-molecules-mars
1•skor•10m ago•0 comments

Return of the Saturday Night Special, Courtesy of the SEC

https://clsbluesky.law.columbia.edu/2026/04/21/return-of-the-saturday-night-special-courtesy-of-t...
1•petethomas•11m ago•0 comments

Request Tracking: Lessons from Card Payments and HTTP/2

https://madflojo.dev/posts/in-flight-request-tracking-in-asynchronous-systems/
1•madflojo•12m ago•0 comments

GitHub has stopped accepting new Copilot individual subscriptions

https://www.theregister.com/2026/04/20/microsofts_github_grounds_copilot_account/
1•Betelbuddy•12m ago•1 comments

A Century of Chaos in a Single Emoji

https://jenniferdaniel.substack.com/p/a-century-of-chaos-in-a-single-emoji
1•ChrisArchitect•12m ago•0 comments

AppWatch – Track Itch.io, Steam, App Store and Google Play in One Dashboard

https://appwatch.dev
1•ranguita•12m ago•2 comments

An LLM invented a feature by hijacking my tool schema

https://ratnotes.substack.com/p/i-thought-i-had-a-bug
1•mtrifonov•13m ago•0 comments

Cocaine pollution alters the movement and space use of Atlantic salmon

https://www.cell.com/current-biology/fulltext/S0960-9822(26)00315-5
1•ajay-d•14m ago•1 comments

Zelensky says failure of US envoys to visit Kyiv is 'disrespectful'

https://www.bbc.com/news/articles/cd9v420y190o
8•Betelbuddy•14m ago•1 comments

Abusing PostHog's setup wizard to get free Claude access

https://techstackups.com/articles/i-abused-posthogs-setup-wizard-to-get-free-claude-access/
1•ritzaco•15m ago•0 comments

Neurobiologists Hack Brain Circuits Tied to Placebo Pain Relief

https://today.ucsd.edu/story/neurobiologists-hack-brain-circuits-tied-to-placebo-pain-relief
1•gmays•15m ago•0 comments

AES 128 is just fine in a post-quantum world

https://arstechnica.com/security/2026/04/contrary-to-popular-superstition-aes-128-is-just-fine-in...
1•mmwelt•15m ago•0 comments

The Kuleshov Effect

https://en.wikipedia.org/wiki/Kuleshov_effect
1•janandonly•16m ago•0 comments

The Forgotten History of Hershey's Electric Railway (1916) in Cuba

https://spectrum.ieee.org/hershey-electric-railway-cuba
1•defrost•16m ago•0 comments

Design isn't dying. It's shifting left

https://microsoft.design/articles/design-isnt-dying-its-shifting-left/
1•djurgardensif•17m ago•0 comments

Agentic memory with passive recall and citations as trust graph

https://github.com/Kromatic-Innovation/athenaeum
1•TristanKromer•17m ago•1 comments