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!

USDA canceled $300M in farm grants, citing fraud. Did it make up the evidence?

https://grist.org/accountability/usda-canceled-land-access-grants-fraud-evidence/
1•speckx•40s ago•0 comments

My open source privacy focused USB drive

https://github.com/o7-machinehum/phantomdrive
1•machinehum•1m ago•0 comments

The Trouble with AI

https://blog.jakobschwichtenberg.com/p/the-trouble-with-ai
1•unknown1111•2m ago•0 comments

Zig president bans AI code contributions: 'invariably garbage'

https://www.businessinsider.com/zig-programming-language-ai-rules-2026-5
3•ttctciyf•3m ago•0 comments

Show HN: A CSS 3D Engine (no WebGL)

https://github.com/LayoutitStudio/polycss
1•rofko•3m ago•0 comments

Learn Languages from YouTube Through Listening and Writing Practice

https://github.com/imAbdelhadi/listenwrite-english
1•djafer•3m ago•0 comments

Factorio 2.1 Plan

https://factorio.com/blog/post/fff-440
2•ibobev•4m ago•0 comments

My Biggest Gripe with YouTube

https://jslegenddev.substack.com/p/my-biggest-gripe-with-youtube
1•ibobev•5m ago•0 comments

Nvidia and Microsoft Reinvent Windows PCs for the Age of Personal AI

https://investor.nvidia.com/news/press-release-details/2026/NVIDIA-and-Microsoft-Reinvent-Windows...
1•Anon84•6m ago•0 comments

Intel AI GPU: Up to 480 GB of LPDDR5X

https://www.tomshardware.com/pc-components/gpus/intel-details-long-awaited-crescent-island-ai-gpu...
1•tosh•7m ago•1 comments

AMD brings back Ryzen 7 5800X3D

https://www.tomshardware.com/pc-components/cpus/amd-brings-back-ryzen-7-5800x3d-launches-ryzen-7-...
2•tosh•7m ago•0 comments

The Social Contract of Writing

https://jola.dev/posts/the-social-contract-of-writing
1•shintoist•8m ago•0 comments

First Looking into Jax

https://www.gilesthomas.com/2026/05/on-first-looking-into-jax
1•ibobev•8m ago•0 comments

Mellum2 Goes Open Source: A Fast Model for AI Workflows

https://blog.jetbrains.com/ai/2026/06/mellum2-goes-open-source-a-fast-model-for-ai-workflows/
1•chillax•9m ago•0 comments

Understanding Age Assurance Accuracy

https://educatedguesswork.org/posts/age-assurance-accuracy/
1•ekr____•10m ago•0 comments

Sysadmining Like It's 2009

https://lambdacreate.com/posts/sysadmining-like-its-2009
3•yacin•11m ago•0 comments

Discovery vs. Tokenmaxxing

https://cezarbabin.com/notes/discovery-vs-tokenmaxxing.html
1•nibab•12m ago•0 comments

Show HN: Voice control coding agents on your machine via smartwatch / CarPlay

https://dashvox.ai
2•Zante•19m ago•0 comments

Show Faith by Works Digital Dragnet – Untitledsource

https://untitledsource.substack.com/p/show-faith-by-works-digital-dragnet
1•untiledsource•20m ago•0 comments

Email from 10k Feet

https://maneeshaxyz.substack.com/p/email-from-10000-feet
1•maneeshaxyz•20m ago•0 comments

NIS2 Email Security: Mapping Article 21 Controls to DMARC, MTA-STS, and Dane

https://dmarcguard.io/blog/nis2-email-security/
2•meysamazad•20m ago•0 comments

Are blue zones real? Answering that question is harder then ever

https://www.statnews.com/2026/05/04/are-blue-zones-real-new-scrutiny-longevity-hot-spots/
2•mfld•21m ago•0 comments

Free IoT security scorecard mapped to ETSI EN 303 645 and EU CRA

https://tangibles-book.com/tools/iot-security-scorecard
1•yoelf22•21m ago•0 comments

I hired 5 people to sit behind me and make me productive for a month (2023)

https://www.lesswrong.com/posts/gp9pmgSX3BXnhv8pJ/i-hired-5-people-to-sit-behind-me-and-make-me-p...
5•LorenDB•21m ago•0 comments

Radxa Dragon Q8B: A Laptop Cosplaying as an SBC?

https://bret.dk/radxa-dragon-q8b-a-laptop-cosplaying-as-an-sbc/
2•gainsurier•21m ago•0 comments

ToolPix – Free Online Image, PDF, Coding and AI Tools

https://toolpix.pythonanywhere.com/
1•uthakkan•23m ago•0 comments

RFC 2119 for Agents.md: Make Your Agent Rules Compact and Strict

https://fertsch-roever.com/blog/rfc-2119-for-agents-md-make-your-agent-rules-compact-and-strict/
1•And-y•23m ago•0 comments

Governing a Codebase as a Commons

https://b-erdem.github.io/2026/06/01/governing-a-codebase-as-a-commons.html
1•baris_erdem•23m ago•0 comments

WhatsKept: Local agent-queryable WhatsApp from iOS encrypted backup

https://github.com/alkait/WhatsKept
1•tenthead•23m ago•0 comments

Virtual Memory: Page Tables, TLBs, and Linux Internals

https://blog.codingconfessions.com/p/virtual-memory
1•ibobev•25m ago•0 comments