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!

FOSS book: learn Lisp with fewer parentheses in a day

https://www.draketo.de/software/programming-basics-wisp
1•ArneBab•1m ago•0 comments

We're All One Crisis Away from Taking Unlicensed Research Peptides

https://asteriskmag.com/issues/14/we-re-all-one-crisis-away-from-taking-unlicensed-research-peptides
1•maxall4•1m ago•0 comments

Kalshi asks paid influencers to delete posts sowing doubts over LA election

https://www.semafor.com/article/06/05/2026/kalshi-asks-paid-influencers-to-delete-posts-on-la-may...
1•thm•3m ago•0 comments

I led the U.S. CDC response to the 2014 Ebola epidemic

https://www.statnews.com/2026/06/06/ebola-outbreak-us-aid-response-tom-frieden-action-plan/
1•maxall4•4m ago•0 comments

J9.7

https://code.jsoftware.com/wiki/System/ReleaseNotes/J9.7
1•tosh•7m ago•0 comments

An open standard for production agents – with runnable security checks

https://github.com/Moai-Team-LLC/agentic-product-standard
1•AlexDuch•7m ago•0 comments

Cross-platform desktop automation through accessibility APIs

https://crowecawcaw.github.io/general/2026/05/30/accessibility-for-computer-use.html
1•lukastyrychtr•7m ago•0 comments

Software Is Hard (2007)

http://gamearchitect.net/Articles/SoftwareIsHard.html
1•downbad_•9m ago•0 comments

Found the most useful app of 2026

https://play.google.com/store/apps/details?id=com.pragya.personalai&hl=en_US
1•kshitij_dubey15•11m ago•1 comments

Concurrent, atomic MSI hash tables

https://nullprogram.com/blog/2026/05/06/
1•signa11•17m ago•0 comments

Tool to convert technical PDFs into RAG-ready chunks and Obsidian vaults

https://pdf-knowledge-extractor.onrender.com
1•jmagom24•17m ago•0 comments

Sawtooth – An async, multi-tiered memory framework for LLM agents

https://github.com/HtooTayZa/sawtooth-memory
1•Jackmann_01•17m ago•0 comments

Running infinite context lengths on 8GB GPU without ever hitting Out Of Memory

https://github.com/JeevanJoshi2061/titan_engine_core
1•Jeevan_Joshi•18m ago•0 comments

Show HN: Tech Dependency Calculator

https://tech-dependency.statichost.page/
1•fgdhtt•20m ago•0 comments

Async Rust: deep dive into cooperative scheduling and Tokio's architecture

https://kerkour.com/async-rust-cooperative-scheduling-tokio
1•vinhnx•21m ago•0 comments

Memory safety is a matter of life and death

https://joshlf.com/posts/memory-safety-life-and-death/
1•vinhnx•22m ago•0 comments

Tell HN: Pearl's "useful" PoW AI mining is vaporware

2•secondary_op•25m ago•1 comments

GrapheneOS user reported to authorities for using GrapheneOS

https://discuss.grapheneos.org/d/36134-grapheneos-user-reported-to-authorities-for-using-grapheneos
7•Cider9986•26m ago•1 comments

Zig Zen Update

https://codeberg.org/ziglang/zig/commit/621844bde551ee1a9b8142d7d146d1fa804247a2
1•tosh•32m ago•0 comments

Important security update for UpdraftPlus and UpdraftCentral users

https://teamupdraft.com/blog/important-security-update-for-updraftplus-and-updraftcentral-users/
1•chmars•37m ago•0 comments

NASA readies mission to reverse the Swift observatory's skyfall

https://aerospaceamerica.aiaa.org/nasa-readies-mission-to-reverse-the-swift-observatorys-skyfall/
2•rbanffy•42m ago•0 comments

Let us replace community with AI

https://marketplace.visualstudio.com/items?itemName=christianalfoni.stackoverflow-ai
2•christianalfoni•45m ago•2 comments

Jury finds for Star Trek legend's family in wrongful death lawsuit

https://redshirtsalwaysdie.com/star-trek-nichelle-nichols-wrongful-death-lawsuit-13-million-award
2•pseudolus•48m ago•0 comments

AI is a Meteor. Don't be a Dinosaur

https://windowsontheory.org/2026/05/30/ai-is-a-meteor-dont-be-a-dinosaur/
1•vinhnx•48m ago•0 comments

Trump's suddenly softened new green card policy

https://www.washingtonpost.com/business/2026/06/05/how-big-business-tech-ai-softened-trump-new-gr...
3•andsoitis•57m ago•3 comments

Staffing and procurement strategies for fast flow

https://www.youtube.com/watch?v=ECA0E7hdmYM
1•RebootStr•58m ago•0 comments

Update on Meteorra AI – Just Shipped YouTube Video Analyser

https://www.indiehackers.com/post/i-built-an-ai-that-tells-creators-who-will-watch-their-content-...
1•MeteorraAI•59m ago•1 comments

Built GoPeek for Firefox

https://addons.mozilla.org/en-US/firefox/addon/gopeek/
1•guptalog•59m ago•0 comments

Granite Libraries and Project Granite Switch – IBM Research

https://research.ibm.com/blog/granite-libraries-project-switch
2•shallow-mind•1h ago•0 comments

A new YC tool promises "your code never leaves your machine." It does

https://twitter.com/intcyberdigest/status/2063026347522539754
3•porridgeraisin•1h ago•0 comments