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!

Phaistos Disc

https://en.wikipedia.org/wiki/Phaistos_Disc
1•hypertexthero•2m ago•0 comments

Git rebase -I is not that scary

https://cachebag.sh/journal/interactive-rebasing/
1•vinhnx•4m ago•0 comments

Everything Is a File

https://en.wikipedia.org/wiki/Everything_is_a_file
1•iacguy•4m ago•0 comments

Systems and Delays

https://martin.janiczek.cz/2026/07/24/systems-and-delays.html
1•vinhnx•4m ago•0 comments

Inflect-Micro-v2: complete voice in 9.36M parameters

https://huggingface.co/owensong/Inflect-Micro-v2
1•nateb2022•5m ago•0 comments

Zig by Example

https://zigbyexample.neocities.org/
1•vinhnx•6m ago•0 comments

Open-Weight Déjà Vu

https://peteridah.substack.com/p/open-weight-deja-vu
1•peteridah•8m ago•0 comments

SEC acquiring AI agents to monitor phone locations, social media, credit headers

https://jackpoulson.substack.com/p/securities-and-exchange-commission
1•iamnothere•10m ago•0 comments

PGSync adds semantic search without data leaving your infrastructure

https://pgsync.com/pro/
1•toluaina•11m ago•0 comments

George Hotz talk at AMD Advancing AI 2026 [video]

https://www.youtube.com/watch?v=QyrQeeDZUG4
2•chrsw•21m ago•0 comments

GNU Hurd gets 9pfs, OpenNTPD, dynamic /dev/ entries, and more

https://www.osnews.com/story/145603/the-hurd-gets-9pfs-openntpd-dynamic-dev-entries-and-more/
14•iamnothere•22m ago•2 comments

Personal AI Assistant, Anywhere

https://www.heysolin.com/
1•GreenKeewi•24m ago•0 comments

The real mathematics is the one that we dream – David Bessis

https://davidbessis.substack.com/p/the-real-mathematics-is-the-one-that
2•lioeters•32m ago•0 comments

Silicon Valley Splits over Closing the Borders to Chinese A.I

https://www.nytimes.com/2026/07/25/technology/open-source-silicon-valley-china.html
5•dkobia•32m ago•1 comments

Nepo – the largest database of nepotism and nepo babies

https://www.nepodb.com/
3•poppypetalmask•39m ago•1 comments

Triton: DirectX 11 driver for QEMU

https://blog.getutm.app/2026/introducing-triton-directx-11-driver-for-qemu/
1•generichuman•39m ago•0 comments

Show HN: Houhou – Resilience Policies Package for TypeScript Async Functions

https://hou2.vercel.app/
1•smokeeaasd•41m ago•0 comments

Stinkpot: SQLite-Backed Shell History

https://tangled.org/oppi.li/stinkpot
2•birdculture•46m ago•0 comments

Claude Usage Public Leaderboard

https://www.claudeusage.com/leaderboard
1•bazarkua•47m ago•0 comments

How the World Cup impacted global health?

https://ouraring.com/blog/2026-world-cup-data-story/
1•jenthoven•48m ago•0 comments

Books can't piss me off

3•emerongi•50m ago•2 comments

Should you use AI for a task? Here's a simple way to decide

https://www.theguardian.com/commentisfree/2026/jul/24/should-you-use-ai
2•flopsamjetsam•54m ago•2 comments

Brazil denies visas to U.S. officials who aimed to impugn electoral system

https://www.washingtonpost.com/world/2026/07/24/us-sending-envoys-question-brazilian-electoral-sy...
4•matheusmoreira•1h ago•2 comments

Dht-spy – BitTorrent DHT telemetry

https://dhtspy.net/
2•ogurechny•1h ago•1 comments

Show HN: Desktui – a remote desktop client for your terminal

https://github.com/mishushakov/desktui
4•ushakov•1h ago•0 comments

DeepSeek pause fundraise after comments on compute gap to US leaked (transcript) [pdf]

https://github.com/demo-zexuan/liang-wenfeng-investor-meeting-2026-7-22/blob/master/%E6%A2%81%E6%...
19•oliculipolicula•1h ago•5 comments

Htmx 4: The Game

https://swag.htmx.org/products/htmx-4-the-game
3•geophph•1h ago•0 comments

Show HN: Routeveil – Shared-element and page transitions engine for React Router

https://www.routeveil.dev/lab/shared-elements
2•milkeviich•1h ago•0 comments

The Assumption of Maria (near future sci-fi)

https://www.lightspeedmagazine.com/fiction/the-assumption-of-maria/
5•swernli•1h ago•0 comments

The Dundee Time Capsule

https://www.greatwardundee.com/the-home-front/the-dundee-time-capsule/
1•xg15•1h ago•0 comments