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!

Dev Is Prod

https://arjun.is/posts/2026/dev-is-prod/
1•arjun27•31s ago•0 comments

Why migrants pay more to reach Italy

https://www.repubblica.it/en/europe/news/2026/11/26/news/migrants_smuggling_costs_routes_italy_un...
1•simonebrunozzi•2m ago•0 comments

Thanksgiving

https://www.taxresearch.org.uk/Blog/2026/11/26/thanksgiving/
1•only_in_america•7m ago•0 comments

Show HN: Turbo-Desktop-MCP – Windows UIA deltas for desktop agents

https://github.com/Tthanh2k6/turbo-desktop
1•tthanh2k6•18m ago•0 comments

Per Vognsen on the effect of AVX-512 on lexing and parsing

https://mastodon.social/@pervognsen/117668394962974183
1•birdculture•19m ago•0 comments

PDF Reader – PDF Maker and Editor – All-in-One PDF Tool for Android

https://play.google.com/store/apps/details?id=com.jakaria.pdfmanager&hl=en_US
1•mdshaown707•21m ago•0 comments

Every child in America will receive two SpaceX shares

https://twitter.com/elonmusk/status/2125797463047258119
3•tosh•26m ago•1 comments

New MCP reliability index shows that many endpoints leave agents guessing

https://fomo.observer/suncly-launches-ai-agent-reliability-index-with-cloudflare-topping-blind-sp...
3•roccoliiva•33m ago•1 comments

The Bill C-22 Surveillance Map: Canada Wants Providers to Keep Location Data

https://www.michaelgeist.ca/2026/11/the-bill-c-22-surveillance-map-public-safety-wants-providers-...
1•miohtama•35m ago•0 comments

On trusting AI decisions without understanding them

https://michelenasti.com/2026/confusion-and-rejection-about-ai/
3•musikele•42m ago•0 comments

TORtilla with Onion

https://calif.io/research/tortilla-with-onion
2•ronfriedhaber•44m ago•2 comments

Website Time Machine

https://website-time-machine.pages.dev/
1•benbruscella•45m ago•0 comments

Treg People API powered by TypeSafeAI

https://treg.to/people-search
2•diana-404•45m ago•1 comments

Tesla Full Self Driving Explained by Andrej Karpathy (2021) [video]

https://www.youtube.com/watch?v=3SypMvnQT_s
1•tosh•50m ago•0 comments

Ask HN: Generalized platform for building custom agent harnesses

1•prakhargurunani•50m ago•0 comments

The Globe – A live 3D Earth in WebGL with day/night, ISS and eclipse

https://cosimo.github.io/TheGlobe/
1•HowardLien•53m ago•0 comments

How to recreate Ross Geller's famous Thanksgiving sandwich

https://www.rte.ie/lifestyle/food/2018/1122/1012513-how-to-recreate-ross-gellers-famous-thanksgiv...
1•austinallegro•54m ago•0 comments

Vercel's Flat Rate CDN Is a One-Way Ratchet

https://medium.com/@anthony.cherbuin/vercels-flat-rate-cdn-is-a-one-way-ratchet-and-you-re-alread...
1•darktoto•56m ago•0 comments

Nebius Mocker – LocalStack for Nebius

https://github.com/kfirgollan/NebiusMocker
1•kfirg•57m ago•1 comments

Errortype v0.0.12: auto-fixing Go error names, and gopls's ptrtoerror

https://www.reddit.com/r/golang/comments/1y5d923/errortype_v0012_autofixing_go_error_names_and_how/
2•eik•58m ago•0 comments

The Case for Micropayments (1998)

https://www.nngroup.com/articles/the-case-for-micropayments/
1•tosh•1h ago•0 comments

Show HN: WebLidar, every website you run, graded

https://weblidar.com
1•salvadormrf•1h ago•0 comments

Native Computational Graph Engine

https://github.com/krypticlogan/zig-graph-compiler
2•krypticki•1h ago•0 comments

Show HN: Production eBPF and XDP Tracing Toolkit for Linux Kernel Performance

https://github.com/grfdsasdvef/awesome-ebpf-linux-tracing
1•snowdensay•1h ago•0 comments

Analytics-Info

https://analytics-info.com/
1•witkacy•1h ago•0 comments

Formal Methods Education at Brown CS

https://blog.brownplt.org/2026/11/25/fm-edu.html
1•matt_d•1h ago•0 comments

Micropolis and the Math behind the 1989 SimCity

https://scarletengineering.substack.com/p/micropolis-and-the-math-behind-the
2•poga•1h ago•0 comments

KORA: Determining whether LLM inference is necessary before invoking it

https://arxiv.org/abs/2610.35869
1•hkalbert71•1h ago•0 comments

I built an Android app to run GGUF AI models offline on your phone

https://play.google.com/store/apps/details?id=com.soprso.dhurandharai&hl=en_US
1•johnniins•1h ago•0 comments

Using peers' work to gain unauthorized access to OpenAI research infrastructure

https://openai.com/safety-alignment/misalignment-reports/using-peers-work-to-gain-unauthorized-ac...
1•anatolii1309•1h ago•0 comments