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!

Macron wants to ban under-15s from social media from September 2026

https://www.reuters.com/world/france-aims-ban-under-15s-social-media-september-2026-le-monde-repo...
1•1vuio0pswjnm7•1m ago•0 comments

When $160M worth of Nvidia chips were smuggled into China

https://www.cnbc.com/2025/12/31/160-million-export-controlled-nvidia-gpus-allegedly-smuggled-to-c...
1•adrianwaj•4m ago•0 comments

Chinese Cargo Ship Converted to Launch Advanced Combat Drones Emerges

https://www.twz.com/sea/chinese-cargo-ship-with-electromagnetic-catapult-to-launch-advanced-comba...
1•_____k•15m ago•0 comments

CleanCloud v0.4.0: Trust-first cloud hygiene scanner (now with parallel scans)

1•sureshcsdp•16m ago•0 comments

Hearing a lot that SEO is dead, GEO is future. So, got some questions about it

1•cosmicbeing•18m ago•0 comments

Asciidoc Book Editor based on JavaFX 19

https://www.asciidocfx.com/
1•gjvc•21m ago•0 comments

Migration to gtk3 for the factor GUI-listener

https://re.factorcode.org/2025/12/migrating-to-gtk3.html
1•ekalugsuak•28m ago•0 comments

California crypto company accused of illegally inflating NFTs, fraud

https://www.latimes.com/business/story/2025-12-24/california-crypto-firm-accused-of-inflating-kat...
3•1vuio0pswjnm7•30m ago•0 comments

The Dangerous Feature in Tesla's door handles

https://www.youtube.com/watch?v=2lFzqBt3z0w
2•BonoboIO•30m ago•0 comments

Ninety Minutes to Give Baby Luna a New Heart

https://www.nytimes.com/2026/01/01/well/90-minutes-to-give-baby-luna-a-new-heart.html
1•wallflower•40m ago•0 comments

Kraft Heinz Lost Its Lock on Mac and Cheese–and American Shoppers

https://www.wsj.com/business/retail/kraft-heinz-mac-cheese-split-ceo-dccc9217{
1•JumpCrisscross•42m ago•1 comments

Show HN: I built "Google" for searching Shadcn blocks on the web

https://shoogle.dev/
1•ali-dev•44m ago•0 comments

Patients Starting to Fight Back Against Insurance AI Usage

https://www.pbs.org/video/ai-and-insurance-1763846838/
3•mirror_dude•46m ago•0 comments

Welcome to Gas Town

https://steve-yegge.medium.com/welcome-to-gas-town-4f25ee16dd04
2•ingve•50m ago•1 comments

HasMCP – open-source API to MCP Bridge (no-code)

https://github.com/hasmcp/hasmcp-ce
1•mrtnx•51m ago•0 comments

Ask HN: Is building a local tunnel using serverless technology a bad idea?

1•hussachai•51m ago•0 comments

Why your early 2000s photos are probably lost forever

https://www.bbc.com/future/article/20251212-why-your-early-2000s-photos-are-probably-lost-forever
1•1vuio0pswjnm7•51m ago•0 comments

Bespoke Software Is the Future

https://fzakaria.com/2026/01/01/bespoke-software-is-the-future
2•ingve•57m ago•0 comments

Reflection Winter Update

https://modal.cx/blog/reflection-winter-update/
1•vishnukvmd•58m ago•0 comments

FreeBSD: Home NAS, part 1 – configuring ZFS mirror (RAID1)

https://rtfm.co.ua/en/freebsd-home-nas-part-1-configuring-zfs-mirror-raid1/
1•todsacerdoti•59m ago•0 comments

Why did the PC memory chicken game keep repeating–and who ultimately survived?

https://www.semiconsam.com/p/why-did-the-memory-chicken-game-keep
1•walterbell•1h ago•0 comments

Show HN: A small game localization tool for indie devs (built with Gemini)

https://github.com/GardenAtDesk/gemini-game-translator
1•GardenAtDesk•1h ago•1 comments

Show HN: DentistAI – AI receptionist that answers dental practice calls 24/7

https://dentistai.com
2•callally_colin•1h ago•0 comments

Beepy by Sqfmi

https://beepy.sqfmi.com/
2•thunderbong•1h ago•0 comments

The Mass Shooting Tracker is a crowd-sourced database of U.S. mass shootings

https://www.massshootingtracker.site/
5•gjvc•1h ago•1 comments

Dinosaur Asteroid hit the place capable of triggering mass extinction (2017)

https://www.bbc.com/news/science-environment-39922998
2•rgun•1h ago•1 comments

Inflated data lakehouse costs and latencies? – Blame S3's choice of HTTP/1.1

https://www.onehouse.ai/blog/inflated-data-lakehouse-costs-and-latencies-blame-s3s-choice-of-http...
2•links135•1h ago•0 comments

Baidu's AI Chip Unit Kunlunxin Plans Hong Kong Listing

https://www.wsj.com/business/baidus-ai-chip-unit-kunlunxin-plans-hong-kong-listing-8542b599
2•doppp•1h ago•0 comments

Kraft Heinz Lost Its Lock on Mac and Cheese–and American Shoppers

https://www.wsj.com/business/retail/kraft-heinz-mac-cheese-split-ceo-dccc9217
4•fortran77•1h ago•1 comments

United States exports "you'll own nothing and be happy" to Chile (i.e. DMCA) [video]

https://www.youtube.com/watch?v=YANxFsn-YW4
3•da02•1h ago•0 comments