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!

Most Affordable Cities to Buy a Home

https://wallethub.com/edu/most-affordable-cities-for-home-buyers/121950
2•panny•3m ago•0 comments

Convert your landing pages to powerful visuals for social media

1•umeshmr•4m ago•0 comments

The IPv4 Parser AI Couldn't Have Written

https://extractingcycles.com/blog/the-ipv4-parser-ai-couldnt-have-written/article/
1•csno•6m ago•0 comments

The ERoadBook – Rally-Inspired GPS Device for Riders and Adventurers [video]

https://www.youtube.com/watch?v=1KoQ-l3-tg8
1•arbayi•6m ago•0 comments

The Music Industry is broken (by Drew Gooden) [video]

https://www.youtube.com/watch?v=Yx7baJMQuVA
1•Imustaskforhelp•7m ago•0 comments

Longterm use of intracortical brain–computer interface for speech&cursor control

https://www.nature.com/articles/s41591-026-04414-6
2•bookofjoe•14m ago•0 comments

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
2•plaur782•14m ago•0 comments

How Russia's Skyfall Nuclear-Powered Cruise Missile Works

https://www.twz.com/nuclear/here-how-russias-skyfall-nuclear-powered-cruise-missile-actually-works
2•pcestrada•16m ago•0 comments

Using an iPad Pro as a Laptop

https://justingarrison.com/blog/2026-06-20-ipad-laptop/
2•wrxd•16m ago•0 comments

A 3D cube written in JSX and CSS running natively at 60 FPS on a $3 MCU [video]

https://www.youtube.com/watch?v=pC3kNSWaL18
1•arbayi•18m ago•0 comments

The Early Days: The History of Interactive Computing

https://obsolescence.dev/interactive-computing-history.html
1•rbanffy•20m ago•0 comments

A Microsoft product from June 1979 led to the IBM PC

https://dfarq.homeip.net/how-a-microsoft-product-from-june-1979-led-to-the-ibm-pc/
1•rbanffy•21m ago•0 comments

Scheduled Tasks in ChatGPT

https://help.openai.com/en/articles/10291617-scheduled-tasks-in-chatgpt
1•khutorni•22m ago•0 comments

Show HN: AlphaVibe – AI that reads your DeFi wallet live via DeBank

https://quantarena.xyz/
2•denis4inet•22m ago•0 comments

"China Outpacing Us on AI": Why Musk Bought an Autonomous Coding Startup

https://en.sedaily.com/technology/2026/06/20/china-outpacing-us-on-ai-why-musk-bought-an-autonomous
2•modinfo•23m ago•0 comments

Claude Guillemot Ubisoft Co-Founder Dead in Plane Crash

https://www.thegamer.com/ubisoft-co-founder-claude-guillemot-dead/
3•Animatronio•23m ago•0 comments

Our billing pipeline was suddenly slow. A hidden bottleneck in ClickHouse

https://blog.cloudflare.com/clickhouse-query-plan-contention/
3•tosh•25m ago•0 comments

Acton – A Better Term for the Observer in Quantum Mechanics

1•-Zero•26m ago•0 comments

Show HN: Zero-config session-taste packer for AI agents

https://github.com/dvcoolarun/taste-ai
1•dvcoolarun•28m ago•0 comments

Innovations in the Nordstjernen Web Browser

https://medium.com/@andreasrosdal/innovations-in-the-nordstjernen-web-browser-8c2cf98bcc10
5•roschdal•31m ago•0 comments

South Korea’s experiment with State-Sponsored Romance

https://themagpost.com/post/south-korea-s-blind-date-subsidy-sparks-geopolitical-debate-on-state-...
2•modinfo•32m ago•0 comments

Vibe HN: VocaBowl (how many words do you know?)

https://vocabowl.netlify.app/
2•saulpw•32m ago•1 comments

Pong in S Favicon

https://pong-in-a-favicon.franzai.com/
3•theanonymousone•34m ago•0 comments

SpaceX Loses $600B After Announcing Acquisition of Cursor AI Coding Agent

https://www.forbes.com/sites/tylerroush/2026/06/18/spacex-stock-plunge-wipes-out-600-billion-afte...
3•Adam-Hincu•35m ago•1 comments

Did Anthropic talk its way into an AI export ban?

https://www.ft.com/content/16ace46c-aeac-40c9-8598-3c01fa4481cb
2•uxhacker•35m ago•0 comments

Show HN: Lelu – authorization engine that catches manipulated AI agents

https://github.com/lelu-auth/lelu
3•Abenezer0923•38m ago•0 comments

Loupe – A iOS app that raises awareness about what native apps can see

https://github.com/mysk-research/loupe
3•Cider9986•40m ago•0 comments

New (Old) 3D Golf: Porting PC-9801 and Virtual Boy to Mega Drive

https://blog.gingerbeardman.com/2026/06/19/new-old-3d-golf-porting-pc-9801-and-virtual-boy-to-meg...
2•msephton•43m ago•0 comments

Simulating Airband AM Radios

https://bitbashing.io/am-radio.html
3•sneleig•44m ago•0 comments

Talking to My Terminal with Local Speech-to-Text and Pi Coding Agent

https://www.agenticcodingweekly.com/p/talking-to-my-terminal-with-local-speech-to-text-and-pi-cod...
2•primaprashant•46m ago•0 comments