frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•11mo 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!

Show HN: I made a clicker game about the PKM rabbit hole

https://viermal.be/cortex/
1•viermalbe•53s ago•0 comments

Meta must face youth addiction lawsuit by Massachusetts, court rules

https://www.reuters.com/world/meta-must-face-youth-addiction-lawsuit-by-massachusetts-court-rules...
1•1vuio0pswjnm7•2m ago•0 comments

Void Linux: Enterprise Edition

https://voidlinux.org/news/2025/04/enterprise.html
1•kouosi•2m ago•0 comments

Chip Can Project Video the Size of a Grain of Sand

https://spectrum.ieee.org/mems-photonics
1•Brajeshwar•2m ago•0 comments

You can't trust macOS Privacy and Security settings

https://eclecticlight.co/2026/04/10/why-you-cant-trust-privacy-security/
2•zdw•5m ago•0 comments

Is SpaceX Worth $2T?

https://www.profgmedia.com/p/is-spacex-really-worth-2-trillion
2•JumpCrisscross•6m ago•0 comments

Federal Court Denies Anthropic's Motion to Lift 'Supply Chain Risk' Label

https://www.nytimes.com/2026/04/08/technology/anthropic-pentagon-risk-circuit-court.html
2•1vuio0pswjnm7•9m ago•0 comments

Show HN: BNNR – a closed-loop pipeline for improving vision models

1•dominka•9m ago•0 comments

Names and faces of those killed by Israel in its April 8 massacre

https://today.lorientlejour.com/article/1502922/names-and-faces-of-those-killed-by-israel-in-its-...
13•johnbarron•10m ago•1 comments

You're Looking at the Wrong Pretext Demo

https://denodell.com/blog/youre-looking-at-the-wrong-pretext-demo
1•speckx•10m ago•0 comments

Rolling your own crypto can make sense (sometimes)

https://blog.m0dex.eu/posts/rolling-your-own-crypto/
1•M0dEx•10m ago•0 comments

Show HN: Haven – persistent SSH sessions without tmux

https://haventerminal.com/
4•christiansafka•11m ago•1 comments

Status: Tariff Refunds

https://asiaviewnews.com/gigabots/threads?p=100055
1•mark336•11m ago•2 comments

I gave every train in New York an instrument

https://www.trainjazz.com/
2•joshuawolk•12m ago•0 comments

France to ditch Windows for Linux to reduce reliance on US tech

https://techcrunch.com/2026/04/10/france-to-ditch-windows-for-linux-to-reduce-reliance-on-us-tech/
8•Teever•13m ago•0 comments

Show HN: Figma for Coding Agents

https://getdesign.md
2•omeraplak•13m ago•0 comments

Show HN: I built a project board where AI agents join as real teammates

https://is.team
3•datahover•13m ago•0 comments

eBPF-based PostgreSQL wait event tracer using hardware watchpoints

https://github.com/DmitryNFomin/pg_wait_tracer
1•tanelpoder•14m ago•0 comments

Physics stippling with headless simulation and batched rendering [video]

https://www.youtube.com/watch?v=4pfAlYC9Ydw
1•Rayterex•15m ago•1 comments

Will Lower Courts Find Ways Around Cox vs. Sony? You Betcha

https://blog.ericgoldman.org/archives/2026/04/will-lower-courts-find-ways-around-cox-v-sony-you-b...
1•hn_acker•16m ago•0 comments

Florida AG launches investigation into OpenAI

https://www.axios.com/2026/04/09/florida-ag-launches-investigation-openai
1•1vuio0pswjnm7•16m ago•0 comments

Writer Survey: 60% of Companies Plan to Lay Off Employees Who Won't Adopt AI

https://writer.com/blog/enterprise-ai-adoption-survey-results-press-release/
1•louiereederson•18m ago•0 comments

Show HN: Skilldeck – Desktop app to manage AI agent skill files across tools

https://github.com/ali-erfan-dev/skilldeck
1•alierfan•19m ago•0 comments

We analyzed 5M App Store rankings – here's what moves the needle

https://appstorestatistics.com/
1•tkrenn06•19m ago•0 comments

Yikes, Encryption's Y2K Moment Is Coming Years Early

https://www.eff.org/deeplinks/2026/04/yikes-encryptions-y2k-moment-coming-years-early
2•Brajeshwar•21m ago•0 comments

RemembrallMCP – persistent memory and code graph for AI agents

https://github.com/cdnsteve/remembrallmcp
2•cdnsteve•22m ago•0 comments

What does it mean to create with AI?

https://cjauvin.github.io/posts/creating-with-ai/
1•cjauvin•22m ago•0 comments

Wisconsin city passes nation's first anti-data center referendum

https://www.politico.com/news/2026/04/08/wisconsin-city-passes-nations-first-anti-data-center-ref...
1•1vuio0pswjnm7•22m ago•0 comments

The Gentle Seduction [pdf]

https://eyeofmidas.com/scifi/Stiegler_GentleSeduction.pdf
1•JumpCrisscross•24m ago•0 comments

Framework founder says that 'personal computing as we know it is dead'

https://www.tomshardware.com/tech-industry/big-tech/framework-founder-says-that-personal-computin...
1•speckx•25m ago•2 comments