frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Loopix – Film camera for iPhone, source available (noncommercial)

https://github.com/ts-ign0re/loopix
1•palooka•1m ago•0 comments

How to Block Google Groups Spam Using Rspamd

https://mailmum.io/posts/howto-block-google-groups-spam-in-rspamd/
1•fa11enangel•1m ago•0 comments

Show HN: Gnosis, a knowledge base for what the code can't tell you

https://github.com/skorokithakis/gnosis
2•stavros•2m ago•0 comments

We Will Be Driving Autonomously Long Before Any AI Is Liable for Generated Code

https://qameta.com/posts/ai-liability-vs-autonomous-driving/
1•fa11enangel•2m ago•0 comments

AI's Feeding Frenzy Killed My Sites (2023)

https://thessdguy.com/ais-feeding-frenzy-killed-my-sites/
1•speckx•3m ago•0 comments

You suck at dating apps because you're straight

https://viverricious.substack.com/p/you-suck-at-dating-apps-because-youre
2•eatitraw•4m ago•0 comments

The Work Worth Doing

https://nik.art/the-work-worth-doing/
1•herbertl•5m ago•0 comments

Techno-Optimism Archive

https://technooptimism.org/
1•pmm•5m ago•1 comments

We still don't have a more precise value for "Big G"

https://arstechnica.com/science/2026/04/we-still-dont-have-a-more-precise-value-for-big-g/
1•rbanffy•6m ago•0 comments

Output Isn't Design

https://linear.app/now/output-isn-t-design
1•julian_digital•8m ago•0 comments

We Are Not Language Machines

https://www.shishyko.com/essays/we-are-not-language-machines.html
1•shishy•8m ago•0 comments

Show HN: Groundtruth – Stop hook that blocks Claude Code from saying done

https://github.com/vnmoorthy/groundtruth
1•vnmoorthy•8m ago•0 comments

FTWA – Free the Web Apps

https://ftwa.mathix.dev/why/
1•mathix•9m ago•0 comments

Creation of Canada's first sovereign wealth fund

https://www.cbc.ca/lite/story/9.7178238
1•colinprince•10m ago•0 comments

AI gives back more equality than it takes away

3•Bashkiroff•13m ago•2 comments

The 2 Hour [Marathon] barrier has been smashed

https://stevemagness.substack.com/p/the-2-hour-barrier-has-been-smashed
2•lordleft•14m ago•0 comments

A Tiny Polish Startup Became the Multi-Billion-Dollar Voice of AI

https://www.forbes.com/sites/iainmartin/2025/12/01/how-a-tiny-polish-startup-became-the-multi-bil...
3•Anon84•15m ago•0 comments

Running DOS and Unix on an 8-bit Commodore (2024) [video]

https://archive.fosdem.org/2024/schedule/event/fosdem-2024-2334-running-dos-unix-on-an-8-bit-comm...
4•michalpleban•17m ago•0 comments

17th-century astrolabe heads to London sale with £2.5M estimate

https://www.turkiyetoday.com/culture/17th-century-jaipur-astrolabe-heads-to-london-sale-with-25m-...
3•geox•18m ago•0 comments

AI apathy is a tragedy, falling behind is a crime

https://loworbitsecurity.com/radar/radar-18/
2•7777777phil•19m ago•0 comments

Maybe you should learn something

https://www.marginalia.nu/log/a_135_learn/
2•ingve•21m ago•0 comments

Supabase Feature Preview: RLS Tester

https://github.com/orgs/supabase/discussions/45233
2•siegers•24m ago•0 comments

On the LOC Controversy

https://github.com/garrytan/gstack/blob/main/docs/ON_THE_LOC_CONTROVERSY.md
2•tie-in•24m ago•0 comments

China orders Meta to unwind $2B buy of AI startup Manus

https://www.reuters.com/world/asia-pacific/china-blocks-foreign-acquisition-ai-startup-manus-2026...
3•kilroy123•25m ago•1 comments

Make Europe the Electro Union

https://www.norrsken.org/goodnews/make-europe-the-electro-union
2•imartin2k•25m ago•0 comments

Why QVC's Operational Excellence Became Its Undoing

https://gadallon.substack.com/p/the-inflexible-stack-why-qvcs-operational
3•JumpCrisscross•28m ago•0 comments

The Iran war is hitting the AI supply chain where it hurts

https://thenextweb.com/news/iran-war-pcb-supply-chain-sabic
3•skeledrew•29m ago•0 comments

Securing AI Agents and MCP at the network layer with Tailscale and Highflame

https://www.businesswire.com/news/home/20260403439638/en/Highflame-and-Tailscale-Partner-to-Secur...
3•grumblemumble•31m ago•1 comments

LogMeIn – Instant Login Links, No Password Sharing

https://logmein.today
2•imkost•33m ago•1 comments

Corporate America Is Minting Money–and Not Just in Tech and Finance

https://www.wsj.com/business/earnings/corporate-america-is-minting-moneyand-not-just-in-tech-and-...
2•JumpCrisscross•36m ago•0 comments