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!

AI Is Making Digital Fraud Easier, Faster and Harder to Stop

https://www.bloomberg.com/graphics/2026-ai-identity-theft-scams/
1•elsewhen•1m ago•0 comments

I made rust's cargo copy but for CPP

https://github.com/user-with-username/crow
1•anybodyy•2m ago•0 comments

Owl Alpha – A free model for agentic workloads (prompts logged / closed-source)

https://openrouter.ai/openrouter/owl-alpha
1•webninja•3m ago•0 comments

Codebook of 450k+ unique words and phrases acts as a text compressor

https://i.postimg.cc/WpBcB4HK/IMG-20260510-103853.jpg
1•smalltorch•4m ago•1 comments

AI Agent Passport – an open identity standard for AI agents

https://github.com/StacyStarchum/Ai-agent-passport-
1•Stacy_Starchum•7m ago•0 comments

What if the browser was the server?

https://arthurcornil.com/blog/ship-it-to-the-user/
2•thunderbong•8m ago•0 comments

Taxpayers May Be Eligible for Significant Tax Refunds – If They Act by July 10

https://www.taxpayeradvocate.irs.gov/news/nta-blog/tens-of-millions-of-taxpayers-may-be-eligible-...
3•goldfishgold•9m ago•0 comments

Show HN: Headstart – Command pallet and start page for efficient browsing

https://useheadstart.app/
1•powerpurple•9m ago•0 comments

Defence sovereignty: Europe races to build the low-cost weapons of future

https://www.theguardian.com/world/2026/may/10/defence-sovereignty-europe-builds-low-cost-weapons-...
2•beardyw•11m ago•0 comments

Designing, Refining, and Maintaining Agent Skills at Perplexity

https://research.perplexity.ai/articles/designing-refining-and-maintaining-agent-skills-at-perple...
1•gmays•13m ago•0 comments

Chindogu: Weird and Useless Japanese Inventions

https://rarehistoricalphotos.com/weird-japanese-inventions/
3•ethanpil•13m ago•0 comments

Cancelling Claude subscription renewal immediately revokes Design access

1•o10449366•16m ago•0 comments

Memory godboxes could offer relief from the RAMpocalypse

https://www.theregister.com/systems/2026/05/10/memory-godboxes-could-offer-relief-from-the-rampoc...
1•beardyw•17m ago•0 comments

Nayuta Space Is Building Bellyflopping Rocket Boosters

https://www.china-in-space.com/p/nayuta-space-is-actually-building
1•JPLeRouzic•19m ago•0 comments

We asked 72 AI models which brands are best

https://peaktoken.ai/
1•svensauleau•21m ago•0 comments

Could Contact-Tracing Apps Help with the Hantavirus? Not

https://www.wired.com/story/could-contact-tracing-apps-help-with-the-hantavirus-not-really/
2•Brajeshwar•25m ago•0 comments

Fixing Dynamic Resolution Switching in Docker-steam-headless

https://blog.dera.page/posts/steam-headless-adaptive-resolution/
1•Aelorius•26m ago•0 comments

Train your AI code review instincts

https://siftly.dev/announcement
1•svensauleau•27m ago•1 comments

Want to track the apocalypse? One theory: Follow the billionaires' jets

https://www.yahoo.com/news/articles/want-track-apocalypse-one-theory-173133903.html
4•ari-burshell•27m ago•0 comments

Ranking 1k ShowHN posts by estimated merit using an LLM judge and TrueSkill

https://github.com/kouhxp/showhn-rank
1•mrkn1•31m ago•0 comments

A Deeper Dive into the Proxima Centauri Swarm

https://www.centauri-dreams.org/2026/05/09/a-deeper-dive-into-the-proxima-centauri-swarm/
1•JPLeRouzic•32m ago•0 comments

Use Boring Languages with LLMs

https://jry.io/writing/use-boring-languages-with-llms/
1•jryio•33m ago•0 comments

Oil-price bets ahead of Iran war news totalled $7B, reporting shows

https://www.reuters.com/sustainability/boards-policy-regulation/oil-price-bets-ahead-iran-war-new...
2•geox•37m ago•0 comments

WebRTC vs. MoQ by Use Case

https://webrtchacks.com/webrtc-vs-moq-by-use-case/
2•boruto•37m ago•0 comments

Ask HN: Is this the SWE workflow of the future?

6•mc-0•42m ago•1 comments

My Marstek B2500-D battery sends telemetry over plain HTTP

https://luca-becker.me/blog/marstek-b2500-cloud-crypto-broken/
1•sunbury•43m ago•0 comments

Show HN: All 55,256 Slides of the WAR.GOV/UFO Files Searchable and Linkable

https://hypergrid.systems/war.gov-ufo-viewer/?item=095-dow-uap-pr38-unresolved-uap-report-middle-...
2•keepamovin•45m ago•0 comments

A boilerplate to create a 1990s Geocities-themed website

https://github.com/sugardaddyapp/geocities-boilerplate
3•whatsupdog•45m ago•1 comments

Is There a There in Cyberspace

https://www.eff.org/pages/there-there-cyberspace
1•andsoitis•49m ago•0 comments

How to use a spreadsheet for creativity

https://www.nair.sh/guides-and-opinions/communicating-your-expertise/how-to-use-a-spreadsheet-for...
1•nilirl•49m ago•0 comments