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!

The Golden Age

https://dark.ronacher.eu/2026/10/31/golden-age/
1•droidjj•25s ago•0 comments

Surviving "The Graduate"

https://www.newyorker.com/culture/the-weekend-essay/dustin-hoffman-on-surviving-the-graduate
2•samizdis•8m ago•0 comments

HackerTube: YouTube built from videos recommended by HN

https://karpathy.bearblog.dev/hacker-tube/
2•karpathy•13m ago•1 comments

Toit. Language for ESP32

https://toit.io/
1•wiradikusuma•14m ago•0 comments

LocalASO – App Store keyword research in 52 countries, on your Mac

https://localaso.com
1•gianmaurice•15m ago•0 comments

The Linux Command Line

https://linuxcommand.org/tlcl.php
1•kristianp•15m ago•0 comments

Show HN: Read your Character.AI data export in the browser, nothing uploaded

https://github.com/anima-universe/character-ai-export-viewer
1•Amavie•17m ago•0 comments

A Surveilled Country Is Not a Free Country

https://brownstone.org/articles/a-surveilled-country-is-not-a-free-country/
2•CGMthrowaway•20m ago•0 comments

Bub 0.6.0

https://github.com/bubbuild/bub/releases/tag/0.6.0
2•chojanshang•23m ago•0 comments

Evolving Agent Teams

https://arxiv.org/abs/2610.36848
1•anigbrowl•24m ago•0 comments

Automate the setup and configuration of your Windows development environment

https://github.com/microsoft/WindowsDeveloperConfig/
1•gjvc•27m ago•0 comments

Anthropic: Scaling Misuse Detection with Self-Assessment of Chats

https://twitter.com/AnthropicAI/status/2115871889549865429
6•cft•30m ago•0 comments

Anthropic blocks users for anything touching training larger models

https://twitter.com/jiahaoshao1/status/2116475922190922088
7•pretext•31m ago•0 comments

Hackers broke into four of Canada's top law firms

https://www.theglobeandmail.com/business/article-law-firms-hackers-how-did-it-happen-client-files...
5•Teever•32m ago•0 comments

Expert Knowledge and the Conditions of Its Validity: The Limits of Judgment

https://medium.com/@smoking2man/expert-knowledge-and-the-conditions-of-its-validity-the-limits-of...
2•Aldus551•35m ago•0 comments

Show HN: Aruma – clean-room self-hosted backend for the official Firebase SDKs

https://github.com/arumadev/aruma
3•osama200•35m ago•1 comments

Video on scroll: why scrubbing an MP4 stutters (and what to do instead)

https://beta.scrollsequence.com/blog/video-on-scroll-why-scrubbing-stutters-mp4-vs-image-sequence
1•hellofromalki•37m ago•0 comments

Retrospective: Running a Minimal Homelab Whilst Living with the In-Laws

https://dickingwithdocker.com/posts/minimal-homelab-a-retrospective/
2•glitchcrab•38m ago•0 comments

UPlayer – MPEG-DASH playback using native AVPlayer

https://github.com/MaximKomlev/UPlayer
1•maxkomleu•39m ago•0 comments

Tangled, hire a front-end accessibility expert

https://dbushell.com/2026/11/01/tangled-accessibility/
3•Destiner•39m ago•0 comments

Show HN: Castov – Open-source dev tools and AI secret shield with zero telemetry

https://castov.com
2•castov•40m ago•0 comments

Fifty Years of the Selfish Gene

https://www.theguardian.com/commentisfree/2026/oct/30/the-guardian-view-on-50-years-of-the-selfis...
3•bloak•42m ago•0 comments

OpenCiv3 Dutch 2 now available

https://forums.civfanatics.com/threads/release-openciv3-dutch-2-now-available.705287/
1•Alpi•44m ago•1 comments

Cisco gives engineer unlimited AI tokens to rewrite company's legacy code

https://www.tomshardware.com/tech-industry/big-tech/cisco-gives-27-year-old-engineer-unlimited-ai...
1•runwithdata•45m ago•0 comments

How wise do our mentors need to be?

https://www.autodidacts.io/how-wise-do-our-mentors-need-to-be/
3•Curiositry•48m ago•0 comments

Half-Life – Nintendo 64 Port [video]

https://www.youtube.com/watch?v=jcmNEaTzHOU
1•usernameis42•49m ago•1 comments

Show HN: NES Contra (1987) port (ASM –> C and then C –> WebAssembly)

https://epoyraz.github.io/nes-contra-us/
5•tevlon•52m ago•1 comments

Show HN: [Pulse] Thanks to C, I have a project with which I am happy

2•xerrs•53m ago•0 comments

Inference engine in game scripting language using macros

https://dasllama.io/articles/2026-10-28-the-need-for-speed.html
2•BorisTheOptimiz•53m ago•0 comments

TCP Use-After-Free: CVE-2026-98432 / CVSS 9.8

https://atlasum.net/blog/cve-2026-98432-linux-ipv4-tcp-uaf
40•oger•54m ago•18 comments