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!

Railway Blocked by Google Cloud

https://status.railway.com/?date=20260519
3•aarondf•7m ago•2 comments

Google's First AI Smart Glasses Launching This Fall with iPhone Support

https://www.macrumors.com/2026/05/19/google-ai-smart-glasses-iphone-support/
1•mikhael•9m ago•0 comments

I made an App that uses local LLMs to monitor your screen

1•roy3838•10m ago•0 comments

Show HN: The user agents crawling HN today

https://ai.realhackers.org/user_agents.txt
1•Bender•11m ago•1 comments

Show HN: Export Webflow sites and CMS content

https://www.webflowexport.com/
1•happyyeti•13m ago•1 comments

Generative art collection based on human interpretation

https://www.mixedmessages.fyi/auction
1•knownquantity_•14m ago•2 comments

WhatsApp Web Became Facebook

https://old.reddit.com/r/whatsapp/comments/1ti3qxf/whatsapp_web_became_facebook/
3•Crier1002•20m ago•0 comments

Railway Currently Down

https://twitter.com/Railway/status/2056873075401007338
1•kristianc•22m ago•1 comments

El Niño is coming. The last time ocean temp. looked like this, millions died

https://respublicamgz.substack.com/p/a-super-el-nino-is-coming-the-last
4•ResPublica•25m ago•0 comments

50-year WHO/CDC Ebola outbreak pipeline in a weekend

https://github.com/vrsabha/outbreak-tracker
1•hn_career•27m ago•1 comments

Tell HN: Google banned Railway's account. Everything down

5•sergiotapia•27m ago•4 comments

GitHub is investigating unauthorized access to their internal repositories

https://twitter.com/github/status/2056884788179726685
12•splenditer•30m ago•4 comments

N display of stupid, secret CISA credentials found in public GitHub rep

https://arstechnica.com/information-technology/2026/05/in-stunning-display-of-stupid-secret-cisa-...
2•sbulaev•32m ago•1 comments

Google Cloud suspends Railway account causing major outage

https://twitter.com/Railway/status/2056883076496789854
5•sincinnatusc•33m ago•0 comments

Age Shapes the Adoption of New Technologies

https://insight.kellogg.northwestern.edu/article/swipe-or-tap-how-age-shapes-the-adoption-of-new-...
1•PopAlongKid•33m ago•1 comments

Google's AI Studio now lets anyone build Android apps in minutes

https://techcrunch.com/2026/05/19/googles-ai-studio-now-lets-anyone-build-android-apps-in-minutes/
1•cpncrunch•36m ago•0 comments

Heads, Trump Wins ( Tails, he still wins)

https://www.theatlantic.com/newsletters/2026/05/trump-corruption-irs-fund/687227/
1•KnuthIsGod•41m ago•0 comments

My Arduino spins faster when Claude burns more tokens

https://terminalbytes.com/arduino-claude-code-activity-meter/
1•mtlynch•41m ago•1 comments

HTML-in-Canvas Demos

https://github.com/GoogleChromeLabs/css-web-ui-demos/blob/main/html-in-canvas/awesome-html-in-can...
1•simonpure•42m ago•0 comments

Language Registries Are Unstable by Default

https://nesbitt.io/2026/05/15/language-registries-are-unstable-by-default.html
1•teddyh•42m ago•0 comments

Gemini Omni: where Gemini's ability to reason meets the ability to create

https://www.youtube.com/watch?v=KUyRq7szZsM
1•doener•42m ago•0 comments

CFTC sues to block Minnesota's first-in-nation ban on prediction markets

https://www.reuters.com/world/us-cftc-sues-minnesota-block-law-related-prediction-market-2026-05-19/
4•petethomas•44m ago•0 comments

Show HN: Capframe – capability tokens for AI agent tool calls

https://capframe.ai
1•euan21•44m ago•2 comments

Widening the Conversation on Frontier AI

https://www.anthropic.com/news/widening-conversation-ai
1•surprisetalk•45m ago•0 comments

Show HN: RTFRA - A Humble Proposal [RFC]

1•stgr_codes•46m ago•0 comments

Paul Schrader Had an 'AI Girlfriend' Who 'Terminated Our Conversation'

https://variety.com/2026/film/news/paul-schrader-ai-girlfriend-ended-relationship-1236753609/
1•Michelangelo11•46m ago•0 comments

Join a group chat with 30 random people that is locked forever

https://isle31.com/
2•vincentlenoach•47m ago•0 comments

ServiceNow wants to be the kill switch for AI agents that delete your database

https://fortune.com/2026/05/06/servicenow-kill-switch-ai-agents-bill-mcdermott/
1•ErystelaThevale•47m ago•1 comments

Ask HN: How are you handling the identity sprawl in your company/startup?

2•awaisras•48m ago•2 comments

Show HN: MediaMolder – A Modern Rewrite of FFmpeg

https://github.com/MediaMolder/mediamolder
2•streaming•49m ago•0 comments