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!

Show HN: Find out how ChatGPT describes your brand, then fix it

https://pallix.in
1•not_wowinter14•1m ago•0 comments

Python Package Comparison for Webcrawlers and Website Mirroring

https://inventwithpython.com/blog/python-webcrawler-package-comparison-aug-2026.html
1•gregsadetsky•1m ago•0 comments

ChatGPT / Codex Reset on Monday

https://xcancel.com/thsottiaux/status/2086189414292865249
1•sscaryterry•2m ago•0 comments

Hyper-Markdown – Markdown for knowledge graphs

https://hyper-markdown.org/
2•divingstar•6m ago•1 comments

I aggregated tracker SDKs and permissions across 300 open-source Android apps

https://apptizo.com/reports/app-trackers-permissions/
1•jkircas•7m ago•0 comments

The Internet Is in Crisis

https://www.theatlantic.com/culture/2026/08/perez-hilton-livestream/688223/
1•paulpauper•8m ago•0 comments

Switzerland is a neutral nation but has more nuclear bunkers than any country

https://www.npr.org/2026/08/08/g-s1-137635/switzerland-nuclear-bunkers
1•andsoitis•10m ago•0 comments

James Bond, not Bond James: why scientific publishing must respect name order

https://www.nature.com/articles/d41586-026-01772-6
2•paulpauper•12m ago•0 comments

What's New in Inkdrop v6

https://forum.inkdrop.app/t/whats-new-in-v6/5570
2•dgavrilov•21m ago•0 comments

Coldcard hardware wallet firmware flaw sees 2k BTC (~$130M) drained

https://www.web3isgoinggreat.com/?id=coldcard-hardware-wallet-flaw
3•ilamont•24m ago•1 comments

Wikipedia's founder on his life's work: "A propaganda tool"

https://nordictimes.com/world/wikipedias-founder-on-his-lifes-work-a-propaganda-tool/
2•thisislife2•24m ago•0 comments

Time Series Observing Itself

https://timeseriesofindia.com/meta/
2•prtk25•27m ago•0 comments

Show HN: Fullscreener // borderless fullscreen for any window (Windows only)

https://github.com/carlos-menezes/fullscreener
1•carlos-menezes•28m ago•0 comments

AI Music Debate Is Missing Half the Money

https://justwordz.medium.com/the-ai-music-debate-is-missing-half-the-money-ffb714924aaa
1•samspenc•28m ago•0 comments

Leibniz's Treatise Disputatio metaphysica de principio individui

https://ojs.tnkul.pl/index.php/rf/article/view/12197
1•Bluestein•29m ago•0 comments

Use Claude Code to make synced video edits to a song

https://github.com/ZiadAbdelkarim/beat-synced-edit
1•iwasastreamer•31m ago•0 comments

Am I the problem? Interviewing another team to find out

https://www.macchaffee.com/blog/2026/am-i-the-problem/
1•signa11•36m ago•0 comments

What We Talk About When We Talk About Bruce Lee

https://decodingvibes.com/blog/what-we-talk-about-when-we-talk-about-bruce-lee/
1•altmanaltman•36m ago•0 comments

Shadow AI is a hidden risk to your business

https://proton.me/business/blog/shadow-ai
3•devonnull•39m ago•0 comments

I build the Tinder to choose food

https://beta.platetale.com/
1•anhyourdream•39m ago•0 comments

Anthropic Economic Index

https://www.anthropic.com/economic-index
4•ronfriedhaber•40m ago•0 comments

Swift-Gigatoken

https://github.com/1amageek/swift-gigatoken
1•frizlab•46m ago•1 comments

The Idea of an Immutable Social Media

https://citizendot.github.io/articles/the-idea-of-immutable-social-media/
4•CITIZENDOT•52m ago•1 comments

Maryland Closes More of Cunningham Falls State Park After Second Beaver Attack

https://news.maryland.gov/dnr/2026/08/05/dnr-closes-additional-areas-of-cunningham-falls-state-pa...
24•bookofjoe•52m ago•9 comments

Pneumatic tube mail in New York City

https://en.wikipedia.org/wiki/Pneumatic_tube_mail_in_New_York_City
4•gkaemmer•55m ago•0 comments

MacGregor the Bridge Builder

https://www.astralcodexten.com/p/macgregor-the-bridge-builder
1•Ariarule•57m ago•0 comments

I gave Claude complete ownership over a website

https://freebot.dev/
2•BenediktHolm•58m ago•2 comments

Attack Techniques: Fake Captive Portals

https://textslashplain.com/2026/08/03/attack-techniques-fake-captive-portals/
2•rowbin•1h ago•0 comments

Improving Heuristics

https://www.redblobgames.com/pathfinding/heuristics/differential.html
2•ingve•1h ago•0 comments

Microsoft Tells Engineers 'Tokenmaxxing Is Not What We Are Optimizing For'

https://www.404media.co/microsoft-tells-engineers-tokenmaxxing-is-not-what-we-are-optimizing-for/
4•doener•1h ago•0 comments