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!

I built my own sovereign AI infrastructure (Nexus/Forge/Nercel)

https://github.com/Aissamohammedi88/narcel-v15-forge/tree/main
1•Aissamohammedi8•4m ago•0 comments

Chez Scheme from a Clojurian Perspective

https://get-aksh.com/blog/chez-from-a-clojurian-perspective
1•pushpankar•5m ago•0 comments

Costa Rica detains UN Special Rapporteur Albanese over alleged 'terror alert'

https://thecradle.co/articles-id/41319
1•0x54MUR41•5m ago•0 comments

Multilingualism protects against accelerated aging

https://www.nature.com/articles/s43587-025-01000-2
1•geox•7m ago•0 comments

Ask HN: Why bother with new programming languages?

1•avilay•12m ago•1 comments

Safe, automated bug discovery and fixing with Prospero

https://nullprogram.com/blog/2026/11/27/
1•ibobev•19m ago•0 comments

C++ String Benchmark: STL vs. ATL vs. Custom Pool Allocator

https://giodicanio.com/2026/11/15/c-plus-plus-string-benchmark-stl-vs-atl-vs-custom-pool-allocato...
1•ibobev•19m ago•0 comments

Benchmarking ImageOptim Settings

https://harrisonbroadbent.com/blog/compress-images-imageoptim/
1•hbroadbent•19m ago•1 comments

Yakov Perelman – Physics Can Be Fun (1975)

https://archive.org/details/yakov-perelman-physics-can-be-fun-mir-1975
1•the-mitr•21m ago•0 comments

The Perils of `sudo vim`

https://ohaodha.ie/blog/the-perils-of-sudo-vim/
1•ohaodha•22m ago•0 comments

X implements parental controls for teen users

https://mashable.com/tech/x-twitter-elon-musk-parental-controls-teens
1•extasetoi12•22m ago•0 comments

Show HN: Interactive model benchmarks from routing real development work

https://oreshkin-model-atlas.cybertest.workers.dev/
1•vedmed•28m ago•0 comments

Learning Smalltalk with AI after reading a 1981 paper

https://www.cs.virginia.edu/~evans/cs655/readings/smalltalk.html
1•g_host56•30m ago•1 comments

Show HN: Wwwet – web based webauthn and SSH and et client

https://github.com/blmarket/wwwet
1•blmarket•50m ago•0 comments

Hacker Laws

https://github.com/dwmkerr/hacker-laws
2•Olshansky•53m ago•0 comments

Jagex, creators of RuneScape, detected unauthorised access to systems

https://support.runescape.com/hc/en-gb/articles/53510390987409--28-NOV-Downtime
2•sikozu•54m ago•0 comments

"Sigh my Google account got banned" [for using Gemini Neon/Antigravity]

https://twitter.com/itsnoahd/status/2126815531189596363
3•gadtfly•1h ago•4 comments

The US trade gap more than doubled in the last 12 months

https://www.independent.co.uk/news/world/americas/us-politics/trump-economy-loser-trade-tariffs-p...
8•mandeepj•1h ago•1 comments

What Puri reveals about safer urban water systems in India

https://www.weforum.org/stories/food-water-and-clean-air/what-puri-reveals-about-safer-urban-wate...
1•vismit2000•1h ago•0 comments

SoCal has over 80 aftershocks after a 5.0 earthquake earlier today

https://l.facebook.com/l.php?u=https%3A%2F%2Fabc7.la%2FwEBPYM%3Ffbclid%3DIwZXh0bgNhZW0CMTAAcGRvZg...
1•illidan1000•1h ago•1 comments

Unconventional resistivity reduction in NbP semimetal nanoribbons

https://www.nature.com/articles/s41586-026-11288-8
1•droidjj•1h ago•0 comments

Mean: A Brainfuck equivalent for Lean proofs

https://github.com/0hq/mean
1•fredrickd•1h ago•1 comments

Speculative Encoding: Many-to-Many Cache Translation

https://twitter.com/RampLabs/status/2125625946229064118
2•gmays•1h ago•0 comments

I Built a Library for Car Parts Nobody Makes Anymore [video]

https://www.youtube.com/watch?v=2RGvYjgwxGs
2•walterbell•1h ago•0 comments

Programming Languages Are for Humans

https://fzakaria.com/2026/11/27/programming-languages-are-for-humans
3•Brajeshwar•1h ago•3 comments

Keeps – Your Internet, Curated

https://apps.apple.com/in/app/keeps-your-internet-curated/id6759448141
1•niteshk770•1h ago•1 comments

The Front Page · Nov 27, 2026

https://hndocs.org/t/the-front-page-nov-27-2026/
1•lusob•1h ago•0 comments

Claude Sandbagged my Local Inference Kernels – An engineering breakdown

https://twitter.com/WinterCharmVT/status/2126820958627664204
3•wintercharm•1h ago•2 comments

Show HN: WebBrain – Open-source browser agent for local LLMs (Ollama, llama.cpp)

https://github.com/webbrain-one/webbrain
13•webbrain-one•1h ago•11 comments

AI enthusiast deletes Linux for a 24KB OS that boots in 74 ms

https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-enthusiast-deletes-linux-to...
6•qtqtqt•1h ago•1 comments