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!

FieldRobin – AI-native field service software for small service businesses

https://fieldrobin.com
1•pdgrg•1m ago•1 comments

Counterstrike 1969 TV Series

https://archive.org/details/counterstrike-1969-tv-series
2•petethomas•6m ago•0 comments

Trump orders aircraft carrier redesign to use steam catapults to launch jets

https://www.theguardian.com/us-news/2026/aug/13/trump-aircraft-carriers-steam-catapults
2•decimalenough•6m ago•0 comments

Users of psychedelics narratively turn bad trips into valuable experiences

https://www.sciencedirect.com/science/article/pii/S0955395920303352#bib0056
1•MrJagil•9m ago•0 comments

The Making of Cursor's Icons

https://www.minoradventures.co/blog/the-making-of-cursors-icons
1•duck•10m ago•0 comments

Definium says LSD-based pill reduces anxiety in late-stage study

https://www.reuters.com/business/healthcare-pharmaceuticals/definium-says-lsd-based-pill-reduces-...
1•oliverulerich•11m ago•0 comments

Cicada.os, Graphene.os for Your Laptop

https://kpres12.github.io/Cicada.OS/
1•kpres62•16m ago•1 comments

How Claude's watermarking (probably) works

https://johnjwang.com/post/2026/08/12/how-claude-watermarking-probably-works/
1•882542F3884314B•20m ago•0 comments

Infodump about Monkey Island

https://pants.fishing
2•dmarinus•21m ago•0 comments

User reports show problems with LinkedIn

https://downdetector.com.au/status/linkedin/
1•hahahaa•22m ago•0 comments

Border blaster

https://en.wikipedia.org/wiki/Border_blaster
4•petethomas•31m ago•0 comments

Programing language faster than Python for ML (Jaithon 3.1)

https://github.com/abhiramasonny/jaithon
1•AbhiramaVS•32m ago•2 comments

Elon Musk is suing California over an AI law. Here's why transparency matters

https://www.sfchronicle.com/opinion/openforum/article/ai-data-law-california-22382698.php
2•newsomix9xl•33m ago•0 comments

Portable Doom (Shareware) in a Single 6MB HTML File via WASM

https://wasi-doom.netlify.app/
1•badfox•33m ago•1 comments

Show HN: A 3-page information-theoretic lower bound on random TSP

https://zenodo.org/records/21911759
1•Dori_Lee•33m ago•0 comments

Show HN: Liferay Stylebook token generator CLI (NPM)

https://www.npmjs.com/package/stylebook-token-generator
1•jay__proto•36m ago•0 comments

The Future of Libraries in BPF

https://lwn.net/Articles/1084869/
1•pykello•37m ago•0 comments

Aluminum Frame PC Fan Corsi-Rosenthal Build (2023)

https://itsairborne.com/aluminum-frame-pc-fan-corsi-rosenthal-build-c28aa7ca8927
1•walterbell•42m ago•0 comments

Anthropic Is not worth much at all

https://s-1.vercel.app/posts/why-openrouter-can-be-the-next-great/
1•Taikhoom10•42m ago•5 comments

Executable SOAR playbook dataset – AI agents pay per record via HTTP 402

https://lateos.ai/soar/
1•leochong•45m ago•0 comments

The Infinite Policeman – A Crookery

https://medium.com/luminasticity/the-infinite-policeman-chapter-3-d3e8e30a6969
1•bryanrasmussen•47m ago•0 comments

Show HN: Curl Stock Research

https://stockchat.sh/cli
1•netless•49m ago•0 comments

Flock puts new 'guardrails' on license-plate cameras. Critics skeptical

https://www.sfchronicle.com/crime/article/flock-cameras-ceo-surveillance-policy-22384139.php
4•newsomix9xl•52m ago•1 comments

Openleaf: Overleaf's workflow. Obsidian's interface. None of the cloud

https://github.com/vicky157/openleaf
1•vikashjohn2505•52m ago•0 comments

The Jobless Boom Has Arrived

https://www.wsj.com/economy/jobs/the-jobless-boom-has-arrived-41361a06
5•petethomas•55m ago•0 comments

Daily driving PostmarketOS (Summer 2026)

https://blog.senderolinux.com/daily-driving-postmarketos-summer-2026/
2•WhyNotHugo•55m ago•1 comments

Air Purifiers as White Noise Machines

https://www.jefftk.com/p/air-purifiers-as-white-noise-machines
1•luu•56m ago•2 comments

End-to-end encrypted .env sharing

https://github.com/p-arndt/shenv
1•kermatt•57m ago•0 comments

How AI engines cite brands?

https://www.leapd.ai/blog/ai-visibility/how-chatgpt-google-ai-overviews-and-perplexity-source-inf...
2•Angelbirth1369•59m ago•1 comments

Ask HN: How are you preventing brainrot?

4•flyingcoder•59m ago•4 comments