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!

Susan Kare:Designing Icons and Graphics for the Original Mac [video]

https://www.youtube.com/watch?v=YEvLKzsEwMw
1•dhruv3006•1m ago•0 comments

It's the Little Things

https://www.vinoth.net/littlethings
1•avinoth•1m ago•0 comments

Data inaccessible on Microsoft 365 for nonprofits

https://www.reddit.com/r/nonprofit/comments/1ub52pt/data_inaccessible_on_microsoft_365_for_nonpro...
1•petethomas•1m ago•0 comments

Ask HN: Software Design resources on the lower/class/module level

1•needfish•4m ago•0 comments

ZEON – A token-efficient data format for LLMs

https://zeon-eight.vercel.app/
1•Schicksal•6m ago•0 comments

Our summer fastest-growing vendors list just dropped

https://twitter.com/brexHQ/status/2089412872094773735
1•porridgeraisin•8m ago•0 comments

Designing AI with character: what we learned building Berd

https://block.xyz/inside/designing-ai-with-character-what-we-learned-building-berd
1•thm•8m ago•0 comments

"Hill-climbing" is Silicon Valley's latest bit of shit jargon

https://nudged.himynamesdave.com/musings/hill-climbing-is-silicon-valleys-latest-bit-of-shit-jargon/
1•panoramas4good•9m ago•0 comments

Get feedback on your AI slop. no accounts

https://slopornot.simplicated.dev
1•karenimnotkaren•10m ago•0 comments

Show HN: AnswerRank – AEO Tool for online businesses

https://answerrank.so/
1•not_wowinter14•12m ago•0 comments

Show HN: Online Bubble Level

https://abubblelevel.com/
1•artiomyak•14m ago•0 comments

Ask HN: Cloudflare Smart Placement

1•bansalvip•17m ago•0 comments

AI Stock Research Assistant · Streamlit

https://ai-stock-research-kiaan.streamlit.app
1•KiaanKothari•17m ago•1 comments

Looking for an ArXiv Endorser – AI / Computer Science

https://github.com/paibyun9/EGA-V9
1•lcm3•19m ago•2 comments

BYOKs for an LLM with a Brain

https://alicebraincore.web.app
1•kindsocial•19m ago•0 comments

The DuckDB MySQL engine at 500 GB

https://www.percona.com/blog/the-duckdb-mysql-engine-at-500-gb/
2•theanonymousone•23m ago•0 comments

Penn State cocaine trafficking ring involved 2 fraternities, authorities say

https://abcnews.com/US/wireStory/penn-state-cocaine-trafficking-ring-involved-2-fraternities-1357...
2•vinni2•23m ago•0 comments

Deft – an authentic human writing model

https://deftwriting.com
1•andrewlin247•37m ago•0 comments

Neuroscience is in big trouble [video]

https://www.youtube.com/watch?v=jHGx7HBB-J4
2•thelastgallon•39m ago•0 comments

A new era of biohacking in a retro medium

https://elasticstage.com/36n9/releases/36n9-genetics-audiotransduction-album
1•jollydragonroge•41m ago•0 comments

More screen time since childhood associated with better cognitive processing

https://www.jyu.fi/en/news/more-screen-time-since-childhood-associated-with-better-cognitive-proc...
1•jv22222•41m ago•0 comments

Google Drive outage – at what point is slow, down?

https://www.google.com/appsstatus/dashboard/incidents/sjDiph2NXGAfkYYLfK7T
2•chi_features•42m ago•2 comments

Show HN: I made a comic series explaining Claude – Chat, Cowork, and Code

https://github.com/Fake4d/claude-school
1•Fake4d•43m ago•0 comments

BloxStack: The professional network for Roblox creators

https://bloxstack.app/
2•hotshotqq•46m ago•0 comments

Nanvix: A Multikernel OS Design for High-Density Serverless Deployments

https://arxiv.org/abs/2604.11669
1•handfuloflight•49m ago•0 comments

Opus 5 doesn't use em-dashes in code comments

https://lalitm.com/post/code-comments-are-a-model-fingerprint/
1•lalitmaganti•51m ago•0 comments

Running Anachronistic Demakes on Vintage Atari VCS Hardware

http://deater.net/weave/vmwprod/myst_vcs/e7_cart.html
2•bananaboy•51m ago•1 comments

There's No Reason to Buy a New Phone Anymore

https://www.theatlantic.com/technology/2026/08/secondhand-tech-boom/688309/
6•annzabelle•1h ago•0 comments

Millions of Ukrainian Men Are Fleeing a Cruel Conscription System

https://www.thenation.com/article/world/ukraine-military-conscription-draft-dodgers/
5•petethomas•1h ago•0 comments

US moves to open tracts of pristine forests to logging

https://www.france24.com/en/live-news/20260818-us-moves-to-open-vast-tracts-of-pristine-forests-t...
4•geox•1h ago•0 comments