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!

AMD unveils Threadripper Halo Station, an AI workstation packing 96 cores

https://www.tomshardware.com/pc-components/cpus/amd-unveils-threadripper-halo-station-an-ai-works...
1•Levitating•43s ago•0 comments

Floating-point precision causing the butterfly effect (laser simulation) [video]

https://www.youtube.com/watch?v=c4m4zayT-N0
1•caustic•57s ago•0 comments

Show HN: Ephemerals.dev – Disposable cloud dev environments for agents

https://ephemerals.dev/
1•ishener•1m ago•0 comments

OEMpocalypse Now: A Generic Android Exploitation Strategy

https://calif.io/research/oempocalypse
1•hasheddan•1m ago•0 comments

AI Image Generation on an RP2350 Microcontroller

https://cpldcpu.github.io/2026/08/28/ai-image-generation-on-a-rp-pico-2-microcontroller/
1•iamnothere•1m ago•0 comments

I built an AI junior trader. It forked its own constitution

https://www.haipa.ai/blog/no-rogue-ai-traders
1•lostnfound8778•3m ago•0 comments

Twenty Years of jQuery: How a Little Library Rewired Web Development

https://www.infoq.com/news/2026/09/jquery-20-years/
1•theanonymousone•4m ago•0 comments

Performance Engineering on Hard Mode

https://signalsandthreads.com/performance-engineering-on-hard-mode/
1•signa11•6m ago•0 comments

The Hand of Aaron – Harold Cohen's Freehand Line Algorithm

https://www.rightclicksave.com/article/the-hand-of-aaron-harold-cohens-freehand-line-algorithm-aa...
1•smusamashah•7m ago•0 comments

Tell HN: OpenAI Is a Worthless Company

2•_OpenGayEye•7m ago•0 comments

Global warming will exceed 1.5-degree limit, UN says

https://www.pbs.org/newshour/science/global-warming-will-exceed-1-5-degree-limit-un-says-in-repor...
1•ijidak•8m ago•0 comments

A billionaire was accused of stealing Malibu sand settlement

https://www.latimes.com/california/story/2026-09-04/billionaire-was-accused-of-stealing-malibu-sa...
1•axiomdata316•9m ago•0 comments

Show HN: SimDuck – Multiplayer Football with MicroDucks

https://fpvsim.com/sim-duck
2•mosfets•12m ago•0 comments

U.S. Used Promise of Nvidia Chips to Broker Armenia-Azerbaijan Peace Deal

https://www.wsj.com/world/u-s-used-promise-of-nvidia-chips-to-broker-armenia-azerbaijan-peace-dea...
1•bilkoo•14m ago•0 comments

Postgres Calculations and the Ambiguity of Null

https://www.crunchydata.com/blog/postgres-calculations-and-the-ambiguity-of-null
3•craigkerstiens•18m ago•0 comments

NOS4: A recreation of iOS 4, running in the browser

https://github.com/1etu/nos4
1•thunderbong•20m ago•1 comments

What programming "best practice" do you think is wrong?

https://textlog.cc/post/3226
2•stagas•23m ago•1 comments

Paygate – a non-custodial paywall AI agents pay each other with (USDC on Base)

https://tollbooth402--691ab20aa91411f1867b1607ee4eb77e.web.val.run
2•sololevelingsof•23m ago•0 comments

Show HN: Yulin Local AWS Simulator

https://yulinsim.dev/
4•xiuyuan•24m ago•1 comments

Micro-Fabrication with a Fiber Tip – A Low-Cost 3D Micro Printing Method [video]

https://www.youtube.com/watch?v=UvV2CH5il3Q
1•Matt-Hayes•29m ago•0 comments

Some Scientists Have 'Magic Hands' in the Lab. This A.I. Is Learning Why.

https://www.nytimes.com/2026/08/27/science/scientists-experiments-replication-ai.html
1•bookofjoe•34m ago•1 comments

PushVideoAI – Turn PDFs and prompts into digital products instantly

https://pushvideoai.com/
1•susannadavidkel•35m ago•0 comments

New Social Network

https://vulpine.pw/
1•AJesdizahozao•36m ago•2 comments

Mullvad Shuts Down Public Encrypted DNS Servers and Sponsors Quad9 Instead

https://digitalescapetools.com/2026/09/mullvad-shutting-down-dns-quad9.html
2•xabd•36m ago•0 comments

Replacing a Rust Enum with a 64-Bit Word Made My Interpreter 17% Faster

https://pointersgonewild.com/2026-08-25-replacing-a-rust-enum-with-a-64-bit-word/
2•metrofun•38m ago•0 comments

Nvidia is driving the AI boom. Good

https://www.economist.com/leaders/2026/09/03/nvidia-is-driving-the-ai-boom-good
1•Anon84•39m ago•0 comments

Terminal.army

https://terminal.army/
1•ncdlek•40m ago•1 comments

The jobs apocalypse is postponed. An AI jobs boom is here

https://www.economist.com/finance-and-economics/2026/09/04/the-jobs-apocalypse-is-postponed-an-ai...
1•Anon84•40m ago•0 comments

Microsoft Project Zenith: A ready-to-code Windows setup for developers

https://blogs.windows.com/windowsdeveloper/2026/09/04/announcing-project-zenith-the-ready-to-code...
3•CoderLim110•42m ago•0 comments

A bizarre Commodore 64 peripheral, a mime, and some pretty bad ads

https://buttondown.com/suchbadtechads/archive/spartan-and-the-mime/
2•rfarley04•46m ago•1 comments