frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

SwiftUI Is a Disaster

https://ben1777.substack.com/p/swiftui-is-a-disaster
1•bentocorp•3m ago•0 comments

Harvey's Legal Agent Benchmark

https://www.harvey.ai/blog/introducing-harveys-legal-agent-benchmark
1•gmays•6m ago•0 comments

The Ten Commands of the Nine Divines

https://en.uesp.net/wiki/Lore:Ten_Commands:_Nine_Divines
1•alhazrod•7m ago•0 comments

ICE may be at World Cup matches in U.S.

https://www.nbcnews.com/sports/soccer/ice-may-world-cup-matches-us-rcna344797
2•mgh2•8m ago•0 comments

Meta launches WhatsApp 'incognito' mode to address privacy concerns for AI chats

https://apnews.com/article/whatsapp-meta-ai-chatbot-privacy-9a5f7565c969cbf04cf150dfc318cfae
3•devonnull•8m ago•0 comments

Google reports first known real-world AI-crafted zero-day exploit

https://cloud.google.com/blog/topics/threat-intelligence/ai-vulnerability-exploitation-initial-ac...
1•JoheyDev888•9m ago•0 comments

US citizen convicted of running secret Chinese 'police station' in NYC

https://www.bbc.com/news/articles/cy72yy7z1dyo
2•tartoran•13m ago•0 comments

59,000-year-old tooth offers a glimpse into how Neanderthals handled dentistry

https://www.cnn.com/2026/05/13/science/neanderthal-dentistry-stone-drill
1•breve•13m ago•0 comments

Oppositional Federalism: A Taxonomy of State Constitutional Postures Under

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6416178
1•hkhn•14m ago•0 comments

Alberta judge throws out petition seeking for the province separation

https://www.bbc.com/news/articles/clypn8py4zwo
4•tartoran•14m ago•0 comments

New in Claude Code: ‎`/goal` for autonomous dev loops

https://code.claude.com/docs/en/goal
1•Lwrless•15m ago•0 comments

BYD eyes Stellantis EU plant takeover as EV demand spikes

https://electrek.co/2026/05/13/byd-eyes-stellantis-eu-plant-ev-sales-surge-others-too/
3•breve•17m ago•0 comments

Live Design of ABS (2007)

https://web.archive.org/web/20071011040948/http://www.albinoblacksheep.com/livedesign/
1•arm32•17m ago•0 comments

Cerebras prices IPO at $185 per share to raise $5.55B

https://www.reuters.com/legal/government/cerebras-prices-ipo-185-per-share-raise-555-billion-sour...
3•laixintao•21m ago•0 comments

BYD surpasses Tesla as world’s top energy storage deployer

https://electrek.co/2026/05/13/byd-surpasses-tesla-energy-storage-bess-benchmark-2025/
2•breve•22m ago•0 comments

Federalism for Anti-Fascists

https://medium.com/@carmitage/federalism-for-anti-fascists-e83fb20c6fc2
3•hkhn•24m ago•0 comments

Perl versus Java – The Moving Finger (2025)

https://rant.li/ashwin/perl-versus-java
2•pkaeding•25m ago•0 comments

How Bribery Became Legal

https://medium.com/@carmitage/how-bribery-became-legal-b28dbdf0a41c
2•hkhn•27m ago•1 comments

Show HN: Nibble

https://github.com/glouw/nibble
1•glouwbug•27m ago•0 comments

Feedback Welcome – Feline Finder – explainable AI matching for adoptable cats

https://www.felinefinder.info/
1•gregoryew•27m ago•0 comments

Sound Mode: Can TypeScript Type Checking Be Stricter?

https://tsz.dev/sound-mode/
4•mohsen1•29m ago•0 comments

Cisco Workforce Reductions

https://blogs.cisco.com/news/our-path-forward
4•ahmedomran8•36m ago•0 comments

The inventor hoping to fix your washing machine to stop microplastics

https://www.theguardian.com/environment/2026/may/13/you-have-to-be-where-the-pollution-is-the-inv...
3•thunderbong•46m ago•0 comments

China moves to regulate digital humans - Reuters

https://www.reuters.com/world/china/china-moves-regulate-digital-humans-bans-addictive-services-c...
2•Baljhin•46m ago•2 comments

Dungeons & Desktops: Building a Roguelike with GitHub Copilot CLI

https://github.blog/ai-and-ml/github-copilot/dungeons-desktops-building-a-procedurally-generated-...
1•lee337•49m ago•0 comments

Dungeons & Desktops: 10 open source roguelikes that never die

https://github.blog/open-source/gaming/dungeons-desktops-10-roguelikes-that-never-die-because-the...
2•lee337•51m ago•0 comments

Dmitry.gr: Projects

https://dmitry.gr/
1•gurjeet•54m ago•0 comments

delta time

https://www.deltatime.life/
2•mxfh•58m ago•0 comments

Vibe, A single-header lock-free networking library for Linux

https://github.com/xtellect/vibe
3•enduku•1h ago•0 comments

Avoiding and reducing microplastic false positives from dry glove contact

https://pubs.rsc.org/en/content/articlelanding/2026/ay/d5ay01801c
2•efavdb•1h ago•0 comments