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!

Show HN: Built an ADK graph to auto-ship new levels and promos to live games

https://stagenator-mission.web.app
1•indest•27s ago•0 comments

PyScript is entering maintenance mod

https://gist.github.com/WebReflection/37cd8ff649ffa336782fec9d28646fae
1•runningmike•1m ago•1 comments

Fine particles from aircraft exhaust become more harmful over time

https://www.unibas.ch/en/News-Events/News/Uni-Research/aircraft-exhaust-fine-particles-toxicity-a...
1•croes•1m ago•1 comments

I Become a Millionaire

https://www.howibecomeamillionaire.net
1•daisyjin•1m ago•0 comments

AI made the lean startup more important

https://jgothelf.substack.com/p/ai-made-the-lean-startup-even-more
1•flail•1m ago•0 comments

Was the HuggingFace hacking incident scheming?

https://vkrakovna.wordpress.com/2026/10/18/was-the-huggingface-hacking-incident-scheming/
2•tokepi•3m ago•0 comments

I Built a Drone with Only One Motor [video]

https://www.youtube.com/watch?v=Ndftcft6XhU
2•hakonjdjohnsen•8m ago•0 comments

Show HN: Panel Font-AI Manga Translator

https://www.panelfont.com/
1•machinetree•9m ago•0 comments

When France gave away terminals, and a dozen email services bloomed

https://buttondown.com/blog/minitel-email
1•maguay•11m ago•0 comments

A Simple Guide to Europe's Complicated Cloud Provider Landscape

https://arcentry.com/blog/a-simple-guide-to-europes-complicated-cloud-provider-landscape/
1•wolframhempel•17m ago•0 comments

Show HN: Truth Firewall – Check whether Codex finished a task

https://github.com/aldi949/truth-firewall
1•Aldi949•20m ago•0 comments

Imaging Processing with FPGA

https://www.hackster.io/adam-taylor/arducam-mini-meets-the-fpga-a-pure-logic-vhdl-solution-720cac
1•signalhound•24m ago•0 comments

Americans Are Losing the Long Game

https://www.noemamag.com/americans-are-losing-the-long-game/
1•littlexsparkee•25m ago•1 comments

Show HN: AI decision model plays Mortal Kombat II

https://github.com/aipdv/fightbench
1•pradachan•28m ago•0 comments

Show HN: Cirqmon – quantum circuits that don't feel like a research paper

https://www.cirqmon.dev/
1•decodeaditya•32m ago•0 comments

CVE-2026-108707 PoC?

https://www.patchcve.com/reference/cve/CVE-2026-108707
1•PatchCVE•33m ago•1 comments

JEP 546: Adaptive Heap Sizing for ZGC

https://openjdk.org/jeps/546
1•lichtenberger•33m ago•0 comments

Show HN: A Mojo Script Language Container for the Exasol Database

https://github.com/exasol-labs/language-container-mojo
1•ROSEDOLA•35m ago•0 comments

Website Is Now Made in Swift

https://sindresorhus.com/blog/swift-website
2•theanonymousone•35m ago•0 comments

CacheVerifier, check if verifying LLM cache hits helps your traffic

https://github.com/imxinchengyou/cacheverifier-python
1•ChengyouXin•36m ago•0 comments

The Decoherence Trap

https://maevyn.codes/decoherence
1•cassianoleal•37m ago•0 comments

Schipkau Gicon Wind Turbine

https://en.wikipedia.org/wiki/Schipkau_GICON_Wind_Turbine
1•patall•44m ago•0 comments

Build or Surrender

https://twitter.com/arthurmensch/status/2110990492930314712
2•pretext•44m ago•0 comments

Pcodec is awesome! 15% smaller and 2x faster than ClickHouse's DoubleDelta

https://tomalard.github.io/posts/pcodec-is-awesome/
1•TomAlard•47m ago•0 comments

What Makes the Marlboro Red Box Impossible to Mistake

https://vipnewportshort.com/
1•RigsbeeArko•47m ago•0 comments

Codes and you LLM will speak just insert files from zenodo an watch

https://zenodo.org/records/23441596
1•xx47•50m ago•0 comments

Postmortem: Sweden's citizenship law shipped with no migration path

https://eric.pe/terson/writes/a-postmortem-on-swedens-citizenship-law/
3•robtherobber•53m ago•1 comments

Experience an ultra-low-density luxury lifestyle at Aditya Rosemont Residency

1•cemaljustime•54m ago•0 comments

Leaving Logseq for Obsidian: what I lost, what I gained

https://michelenasti.com/2026/logseq-to-obsidian/
1•musikele•59m ago•0 comments

From Aurora to DynamoDB: Cutting Database Costs by 90% with DynamoDB and S3

https://medium.com/@butkovic/from-aurora-to-dynamodb-cutting-database-costs-by-90-with-dynamodb-a...
1•typek_pb•1h ago•0 comments