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!

Models finding vulnerabilities is not the primary source of cybersecurity risk

https://www.lesswrong.com/posts/gutiw8MBrYDiD2u5z/models-finding-software-vulnerabilities-is-not-...
1•alentodorov•2m ago•0 comments

Show HN: Thuki – local Al overlay for macOS (double-tap Control, no API key)

https://www.thuki.app
1•logan_ng•6m ago•0 comments

Don't Outsource the Learning

https://twitter.com/addyosmani/status/2056078124346228860
1•pretext•6m ago•0 comments

Chrome iOS Broken on HN etc.

1•alphaomegacode•8m ago•0 comments

Open-Source, Plugin-Driven Geospatial Intelligence Engine

https://github.com/silvertakana/worldwideview
1•huragok•8m ago•0 comments

The two oldest printing presses

https://museumplantinmoretus.be/en/worlds-two-oldest-printing-presses
1•janpot•8m ago•0 comments

Michael Jackson returns to Billboard Hot 100

https://liveclip.substack.com/p/michael-jackson-returns-to-top-20-billboard
1•firasd•9m ago•0 comments

Show HN: Maravel-Framework v20.0-RC – Extends Benchmark Lead over Laravel/Lumen

https://github.com/macropay-solutions/maravelith/releases/tag/20.0.0-RC7
1•marius-ciclistu•9m ago•0 comments

New Design For The FreeBSD Website

https://www.freebsd.org/
1•signa11•14m ago•0 comments

The Gentle Singularity; the Fast Takeoff

https://www.prinzai.com/p/the-gentle-singularity-the-fast-takeoff
1•pretext•14m ago•0 comments

MouseClaw – a pixel-art desktop AI pet for macOS (hold to speak)

https://edwin-hao-ai.github.io/MouseClaw/
2•edwinhao•19m ago•0 comments

Can we cite Wikipedia? What if it was more reliable than its detractors? (2025)

https://arxiv.org/abs/2509.02462
1•Glitch752•20m ago•0 comments

Zdroid: Zed Editor Ported to Android

https://github.com/Dylanmurzello/zed-android-port
2•goodburb•24m ago•0 comments

3months ago, I predicted OpenClaw wouldn't uninstall cleanly and prepared for it

https://github.com/oswarld/openshears
1•haebom•27m ago•2 comments

Semantic IDs for finding vulnerable code at scale

https://shrikar.com/writing/semantic-ids-for-vulnerable-code
1•shrikar•29m ago•0 comments

Étienne Ghys: The Shape of Letters: From Leonardo da Vinci to Donald Knuth

https://www.youtube.com/watch?v=1OIxzewWilc
4•tzury•31m ago•0 comments

Ask HN: Why we use Git wrong?

1•modinfo•33m ago•0 comments

The Aussie gov just screwed startup founders. my musings

https://ghuntley.com/livid/
2•ghuntley•36m ago•0 comments

Blockchain for beginners: a brief explainer with demo

https://www.seangoedecke.com/blockchain-for-beginners/
1•argee•37m ago•1 comments

Is the Weight-Loss Drug Revolution Causing a Frailty Epidemic?

https://www.wsj.com/health/pharma/glp-1-weight-muscle-loss-frailty-ca277a24
1•0in•38m ago•0 comments

Freelang – a Libc-free, direct sys/kernel call language with weird concurrency

https://freelang.dev
10•keepamovin•38m ago•5 comments

MemEye: A Visual-Centric Evaluation Framework for Multimodal Agent Memory

https://huggingface.co/papers/2605.15128
1•maxloh•40m ago•0 comments

Review: Sylve on FreeBSD, one big security hole

https://distrowatch.com/weekly-mobile.php?issue=20260518#sylve
1•jandeboevrie•41m ago•0 comments

YouTube, Snap and TikTok settle school district's social media addiction claims

https://www.reuters.com/world/us/youtube-snap-settle-school-districts-social-media-addiction-clai...
1•1vuio0pswjnm7•42m ago•0 comments

The CEO Agenda 2025

https://www.oliverwymanforum.com/ceo-agenda/how-ceos-navigate-geopolitics-trade-technology-people...
1•1vuio0pswjnm7•44m ago•0 comments

Ex-Google CEO Eric Schmidt Fails to Read Room on AI, Gets Booed into Oblivion

https://gizmodo.com/ex-google-ceo-eric-schmidt-fails-to-read-room-on-ai-gets-booed-to-oblivion-20...
2•imichael•44m ago•1 comments

Usual implementation of attention transformers (SDPA) is kind of bad, actually

https://gist.github.com/celoyd/6bf10122c3f5f7e64b0c684704e4ffb2
1•teleforce•46m ago•0 comments

Apple Is Making Hit Products and High Profits from Imperfect Chips

https://www.wsj.com/tech/apple-is-making-hit-products-and-high-profits-from-imperfect-chips-d32c21d8
1•ryan_j_naughton•47m ago•0 comments

Meta Defeated as EU Backs Publishers in Content Pay Dispute

https://www.law.com/international-edition/2026/05/17/meta-defeated-as-eu-backs-publishers-in-cont...
1•1vuio0pswjnm7•47m ago•0 comments

Neovim sweetspot between trad coding and AI coding

https://github.com/cachebag/jumpy
1•cachebag•54m ago•0 comments