Fa

Fast and Quality Code Chunking with Chonkie

Hacker News

Fast and Quality Code Chunking with Chonkie

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!

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
87%87% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: model, models, context · Missing: mac, agents, macos
83%83% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: open source, io · Missing: https docs, excited, just released
50%50% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: host · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
39%39% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Strong signals: training · Missing: arr, mrr, revenue
13%13% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: smart · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

MP
MPL Plotter – Publication Quality Plots49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MPL Plotter – Publication Quality Plots

Hacker News3
Codexable
Codexable54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Build faster without sacrificing code quality.

Indie Hackerscommitment-side-project
Di
Discohash – a fast and quality hash in 120 lines55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Discohash – a fast and quality hash in 120 lines

Hacker News1
Ho
How to ensure code quality of Vue.js app50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How to ensure code quality of Vue.js app

Hacker News5
Co
CodeQuality for Jira Quantify Code Quality45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

CodeQuality for Jira Quantify Code Quality

Hacker News4
Ho
How to ensure JavaScript code quality53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

How to ensure JavaScript code quality

Hacker News83
Codelingo
Codelingo47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Code quality that scales

Indie Hackerscommitment-full-time
Py
Pyspark and Snowpark and Pandas data quality45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pyspark and Snowpark and Pandas data quality

Hacker News2
El
Eliza DQ – Data Quality lib that outperforms Soda and Pandera32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Eliza DQ – Data Quality lib that outperforms Soda and Pandera

Hacker News1
Fi
Find It Fast60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find It Fast

Hacker News2