frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•8mo 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: I made an open-source app to interrupt nail biting

https://github.com/vaitko/stopbitingnails.app
1•vaitko•2m ago•0 comments

The Year in Computer Science

https://www.quantamagazine.org/the-year-in-computer-science-20251216/
1•isaacfrond•3m ago•0 comments

Recovering depth from images using Markov Random Fields

https://nghiaho.com/?page_id=1366
1•vitaelabitur•3m ago•0 comments

GNU Ddrescue 1.30 Released

https://lists.gnu.org/archive/html/info-gnu/2026-01/msg00001.html
2•guiambros•11m ago•0 comments

Why I Cold-Called President Trump at 4:30 in the Morning

https://www.nytimes.com/2026/01/03/insider/trump-interview-venezuela-nyt-reporter.html
1•notmysql_•14m ago•1 comments

A Practical guide to building a parser in Go

https://gagor.pro/2026/01/a-practical-guide-to-building-a-parser-in-go/
1•todsacerdoti•16m ago•0 comments

China Urges United States to Release Venezuelan President Maduro

https://medium.com/@omshree0709/china-urges-united-states-to-release-venezuelan-president-maduro-...
1•OmShree0709•18m ago•0 comments

Show HN: Model2data – generate realistic synthetic data from data models

https://github.com/JB-Analytica/model2data
1•jarichb•25m ago•0 comments

How Twitch Tamed a Million Lines of TypeScript

https://www.joshribakoff.com/blog/lint-snapshots/
1•joshribakoff•27m ago•0 comments

Perp DEXs emerge as crypto's strongest growth story in 2025

https://altcoindesk.com/perspectives/expert-opinions/perp-dexs-emerge-as-cryptos-strongest-growth...
1•AishwaryaTiwari•27m ago•0 comments

How does a president becomes a dictator? By executive order

https://augustafreepress.com/news/john-whitehead-how-does-a-president-becomes-a-dictator-by-execu...
3•allgirl•30m ago•2 comments

Why Simple Everyday Objects Are Impossible to Make [video]

https://www.youtube.com/watch?v=pj0ze8GnBKA
1•areoform•31m ago•0 comments

No-Ham-anuary: a retrospective on reducing my intake of processed meat

https://tomaytotomato.com/no-ham-anuary/
1•tomaytotomato•31m ago•0 comments

NAS file sharing: Why I use both NFS and SMB protocols (2025)

https://www.xda-developers.com/why-use-both-nfs-and-smb-nas-for-file-sharing/
1•sipofwater•32m ago•2 comments

Skimfeed has changed it's url linking

1•markx2•35m ago•0 comments

MCP for a Coffee Machine... Worked!

https://archestra.ai/blog/brew-by-ai
1•motakuk•39m ago•0 comments

TS/JS Type-safe thread pool multithreading using Web Workers

https://github.com/imramkrishna/thready-js
1•handfuloflight•41m ago•0 comments

Show HN: A minimal demo showing coherence collapses when state is transported

https://github.com/jspchp63/rcircuit-phase-engine
1•jspchp63•42m ago•0 comments

I asked an AI to create "Unhackable Code". It gave me this. I'm scared

2•VOIDMAKINA•43m ago•3 comments

Show HN: certgrep – The Certificate Transparency Search Engine

https://certgrep.sh/
2•juxhindb•44m ago•0 comments

AMD Stole Intel's Future: The Untold x86-64 Story [video]

https://www.youtube.com/watch?v=WyX8TO3awfw
1•tosh•45m ago•0 comments

Manifesto claiming responsibility for terror attack on energy infrastructure [D]

https://www.berliner-zeitung.de/news/stromterror-in-berlin-das-bekennerschreiben-im-wortlaut-li.1...
1•FrojoS•45m ago•0 comments

Signal Contingency Plan (DeltaChat)

https://signal-contingency-plan.info/
1•xeonmc•46m ago•2 comments

DeGoogled Phones Reviews

https://tuta.com/blog/degoogled-phones
6•nreece•47m ago•0 comments

Directional Searching for Light Dark Matter with Quantum Sensors [pdf]

https://journals.aps.org/prl/abstract/10.1103/cwx5-2n1y
1•thunderbong•48m ago•0 comments

Show HN: I Built the Redis GUI Tool as an Alternative to RedisInsight - Redimo

https://www.redimo.dev
1•shh6155•54m ago•0 comments

Watching myself say things I would never say. Deepfake menace we must confront

https://www.theguardian.com/commentisfree/2026/jan/05/deepfakes-youtube-menace-yanis-varoufakis
3•defrost•54m ago•1 comments

ECB’s digital euro project faces decisive vote in 2026

https://www.ft.com/content/99a7b61b-c5df-4794-8c5f-2e3acd291333
1•nutjob2•1h ago•0 comments

Decorative Cryptography

https://www.dlp.rip/decorative-cryptography
29•todsacerdoti•1h ago•6 comments

Unifying QFT and GR Through Topologically Protected Gauge Theory

https://www.academia.edu/145737035/The_Renormalization_of_Gravity_Resolving_the_Goroff_Sagnotti_D...
1•MohskiBroskiAI•1h ago•0 comments