frontpage.
newsnewestaskshowjobs

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!

Technological Determinism

https://en.wikipedia.org/wiki/Technological_determinism
1•senor_digimon•41s ago•0 comments

Coldcard Bitcoin Exploit Balloons to $88M as Attackers Keep Draining Wallets

https://decrypt.co/374817/coldcard-bitcoin-exploit-88-million-attackers-draining-wallets
1•chrisjj•4m ago•0 comments

Smoke Forecast

https://firesmoke.ca/forecasts/current/
1•Bender•7m ago•0 comments

Necropolitics

https://en.wikipedia.org/wiki/Necropolitics
2•thunderbong•8m ago•0 comments

Arch Linux disables AUR package adoption to stop malware flood

https://www.bleepingcomputer.com/news/security/arch-linux-disables-aur-package-adoption-to-stop-m...
1•akyuu•10m ago•0 comments

A fresh look at CPU silent data corruption in modern data centers

https://cacm.acm.org/research/revisiting-cpu-silent-data-corruptions-in-modern-datacenters/
1•visha1v•11m ago•0 comments

Show HN: [Target: Humanity] An experimental alternate reality game

https://TargetHumanity.com
2•MaxONeill159•11m ago•0 comments

Nanocodex: Building blocks for frontier OpenAI agents in Rust

https://github.com/gakonst/nanocodex
2•sygma•15m ago•0 comments

An airport search, a wiped phone and a potential test of Fourth Amendment

https://www.cnn.com/2026/08/02/politics/airport-search-left-wing-activist-phone-code-fourth-amend...
1•rawgabbit•16m ago•1 comments

Welcome to Agents Week

https://blog.cloudflare.com/agents-week-welcome/
6•tosh•16m ago•2 comments

How 'salmon' raised in landlocked Xinjiang is netting fans in China

https://www.scmp.com/economy/china-economy/article/3347727/how-salmon-raised-landlocked-xinjiang-...
1•ksec•17m ago•0 comments

SwiftUI After 7 Years: A Story of Mediocrity [video]

https://www.youtube.com/watch?v=3XaHHFOZeJg
2•mpweiher•17m ago•0 comments

North American construction is back–smaller and faster–at OPG's Darlington

https://www.ans.org/news/2026-06-05/article-8047/north-american-construction-is-back-smaller-and-...
1•mpweiher•17m ago•0 comments

The Myth of Snow Leopard

https://www.rubenerd.au/the-myth-of-snow-leopard/
2•speckx•19m ago•0 comments

The Creator Economy Has a New Middle Class

https://www.bloomberg.com/news/articles/2026-07-24/how-tiktok-creators-earn-midlevel-salaries-wit...
1•momentmaker•19m ago•1 comments

Show HN: An interactive in-browser tutorial for MarkoJS V6 with solvable lessons

https://markojs-tutorial.netlify.app/
1•defunkt-dev•20m ago•0 comments

Show HN: Social Hiking App

https://losttrail.app
1•lpeancovschi•22m ago•0 comments

Shelley Is a Coding Agent

https://github.com/boldsoftware/shelley
1•tosh•24m ago•0 comments

Which Countries Think They're on the Right Track?

https://www.visualcapitalist.com/how-people-around-the-world-feel-about-their-countries-in-2026/
1•theanonymousone•26m ago•0 comments

Combinatorial Materials Synthesis(2023) [pdf]

https://gregoire.people.caltech.edu/documents/22843/CombinatorialMaterialsSynthesis_preprint.pdf
1•o4c•26m ago•0 comments

Devtools must be open source

https://blog.exe.dev/devtools-must-be-open-source
2•tosh•26m ago•0 comments

AI and the iPod Test

https://www.psychologytoday.com/us/blog/the-digital-self/202607/ai-and-the-ipod-test
1•speckx•27m ago•0 comments

Show HN: Mapping Jensen Huang's five-layer AI stack to engineering degrees

https://ai-five-layer-map.pages.dev/
1•ithkai92•28m ago•0 comments

Show HN: Mousecrack – Bypass captchas with deep learning

https://github.com/puffinsoft/mousecrack
1•ReactRocks•30m ago•0 comments

I pointed my agent security tool at myself and four of the bugs were mine

https://agentmetry.ai/blog/dogfooding-found-five-bugs
1•blitzcrieg1•30m ago•0 comments

I built a real self-evolving operating system: Fable-OS

https://github.com/robiot/fable-os
2•robiot•33m ago•1 comments

Microsoft Paint used as a monitor to run Doom at up to 35 FPS

https://www.tomshardware.com/video-games/retro-gaming/microsoft-paint-used-as-a-monitor-to-run-do...
2•sbulaev•34m ago•0 comments

An OPML list of (most) blogs participating in Blaugust

https://82mhz.net/posts/2026/08/an-opml-list-of-most-blogs-participating-in-blaugust/
1•speckx•34m ago•0 comments

Show HN: EvoChess – start with 8 pawns, evolve your army

https://penkovsky.github.io/evochess/
3•penkovsky•34m ago•2 comments

Claude for ADHD: The Coding Workflow I Built for My Brain

https://chudi.dev/blog/claude-code-adhd-workflows
1•thenobsta•38m ago•0 comments