frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Caltech Researchers Claim Compression of High-Fidelity AI Models

https://www.wsj.com/cio-journal/caltech-researchers-claim-radical-compression-of-high-fidelity-ai...
4•gmays•7m ago•0 comments

Wikidata for Developers

https://www.wikidata.org/wiki/Wikidata:For_developers
3•matthberg•11m ago•0 comments

Show HN: SoulForge, graph-powered coding agent CLI that runs headless

https://github.com/ProxySoul/soulforge
2•proxysoul•12m ago•0 comments

Vermin Supreme: When I'm President Everyone Gets a Free Pony [video]

https://www.youtube.com/watch?v=4d_FvgQ1csE
2•nomilk•12m ago•1 comments

A CLI that forces LLMs to defend their answers

https://deepwiki.com/grainulation/wheat
2•volatilityfund•13m ago•0 comments

CBP Facility Codes Sure Seem to Have Leaked via Online Flashcards

https://www.wired.com/story/cbp-facility-codes-sure-seem-to-have-leaked-via-online-flashcards/
4•couchand•13m ago•0 comments

Landdown – Simple sandboxing for shell scripts

https://git.sr.ht/~marcc/landdown
2•birdculture•13m ago•0 comments

Access Advance vs. Avanci Video: How the Streaming Programs Calculate Royalties

https://streaminglearningcenter.com/articles/access-advance-vs-avanci-video-how-the-streaming-pro...
2•breve•14m ago•0 comments

Company Records and Publishes Zoom Meetings

https://www.schneier.com/blog/archives/2026/04/company-that-secretly-records-and-publishes-zoom-m...
2•walterbell•15m ago•0 comments

Chiles v. Salazar: The Supreme Court Issues a Bad Good First Amendment Decision

https://www.techdirt.com/2026/04/03/in-chiles-v-salazar-the-supreme-court-issues-a-bad-good-first...
1•hn_acker•16m ago•1 comments

US targets Chinese chipmaking with proposed export restrictions

https://www.reuters.com/world/china/us-targets-chinese-chipmaking-with-proposed-export-restrictio...
2•abdelhousni•17m ago•0 comments

Trump's ballroom fight sheds new light on an underground White House bunker

https://www.npr.org/2026/04/03/nx-s1-5772665/trump-ballroom-underground-military-bunker
5•alamortsubite•21m ago•0 comments

SiteDialect – Make any website multilingual with one script tag

https://sitedialect.com/
1•xLFCx•26m ago•0 comments

OpenRazer 3.12.1 Enables Two More Razer Devices Under Linux

https://www.phoronix.com/news/OpenRazer-3.12.1-Released
1•doener•27m ago•0 comments

The FAA "Temporary" Drone Restriction Blatant Attempt to Criminalize Filming ICE

https://www.eff.org/deeplinks/2026/04/faas-temporary-flight-restriction-drones-blatant-attempt-cr...
18•detaro•30m ago•0 comments

Half of planned US data center builds have been delayed or cancelled

https://www.tomshardware.com/tech-industry/artificial-intelligence/half-of-planned-us-data-center...
6•jnord•31m ago•0 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
2•wrxd•34m ago•0 comments

Linux Gaming Got an Upgrade

https://www.youtube.com/watch?v=Jyjwi4vhLtI
2•doener•35m ago•0 comments

Open Source Routing Machine

https://project-osrm.org/
2•omnibrain•35m ago•0 comments

Some victims of deadly Tahoe avalanche wore airbags that never inflated

https://www.sfgate.com/bayarea/article/deadly-tahoe-avalanche-report-22187407.php
2•randycupertino•36m ago•0 comments

Ask HN: What’s missing in this chat app (90% LLM cost savings)?

https://github.com/20centAI/20centai
2•20centAI•37m ago•0 comments

Anthropic just cut off Claude subscriptions for OpenClaw

2•stosssik•40m ago•1 comments

Claude Code Found a Linux Vulnerability Hidden for 23 Years

https://mtlynch.io/claude-code-found-linux-vulnerability/
4•eichin•40m ago•3 comments

Dragonbane is a classic fantasy tabletop roleplaying game

https://freeleaguepublishing.com/games/dragonbane/
1•doener•44m ago•0 comments

Tomorrow 12pm PT, Claude subscriptions no longer cover third-party tools

https://twitter.com/bcherny/status/2040206440556826908
2•empressplay•51m ago•1 comments

ENiGMA½ BBS Software

https://github.com/NuSkooler/enigma-bbs/
1•NuSkooler•53m ago•1 comments

Kids groups say they didn't know OpenAI was behind their child safety coalition

https://sfstandard.com/2026/04/01/openai-ai-kids-safety-coalition/
7•heavyset_go•54m ago•0 comments

Outdated language obscures the risks of autonomous weapons

https://thebulletin.org/2026/04/outdated-language-obscures-the-risks-of-autonomous-weapons/
3•jonbaer•56m ago•1 comments

No-AI code analysis found issue in HF tokenizers

https://zenodo.org/records/19409933
1•promptfluid•56m ago•0 comments

Flattening the Duck Curve: batteries reach 44% of evening demand in California

https://reneweconomy.com.au/grid-batteries-reach-stunning-new-peak-of-44-pct-of-evening-demand-in...
7•bronson•57m ago•0 comments