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!

GitHub Copilot's metered billing: the wake-up call we needed (but didn't want)

https://www.eliostruyf.com/metered-billing-github-copilot-shift/
1•rlv-dan•1m ago•0 comments

Will OSS that does not use AI disappear?

https://ai-coding.info/reports/articles/20260603
1•kotauchisunsun•3m ago•0 comments

Reverse engineered Tesla's new dashcam encryption

https://github.com/XGxF3/tesla-dashcam-decrypt
2•xif•4m ago•0 comments

Zeugma and Syllepsis

https://en.wikipedia.org/wiki/Zeugma_and_syllepsis
1•the-mitr•8m ago•0 comments

'Our Pool Is Bigger Than Skyscrapers': Amid war, Trump touts Washington projects

https://www.france24.com/en/live-news/20260604-our-pool-is-bigger-than-skyscrapers-amid-war-trump...
1•ludicrousdispla•10m ago•2 comments

Running an Air Purifier on Batteries

https://www.lesswrong.com/posts/ftexKEAtz5w9Ys9Pu/running-an-air-purifier-on-batteries
1•mhb•15m ago•0 comments

Show HN: X402-express. Pay-per-call HTTP 402 middleware for AI agents on Base L2

https://github.com/Evozim/m2mcent-sdk
1•m2mcent•17m ago•0 comments

Show HN: Apertis – OpenAI-compatible API gateway for 470 AI models

https://apertis.ai/
1•thequert•20m ago•0 comments

Trump signs AI order asking companies to give government early access to models

https://www.cnbc.com/2026/06/02/trump-executive-order-ai.html
2•personjerry•20m ago•1 comments

One NFS Most Wanted Feature Was So Controversial, It Drove Developers to Quit

https://www.thedrive.com/news/one-nfs-most-wanted-feature-was-so-controversial-it-drove-developer...
1•cf100clunk•21m ago•1 comments

DokuWiki Markdown Support

https://www.patreon.com/posts/dokuwiki-support-158080793
3•nogajun•22m ago•0 comments

The EU Cloud and AI Development Act: What It Gets Right, and What It Still Needs

https://www.suse.com/c/eu-cloud-ai-development-act-open-source-first/
1•Tomte•27m ago•0 comments

Introducing alint

https://alint.org/blog/introducing-alint/
1•aleqs•29m ago•0 comments

Florida is now OpenAI's biggest problem in red America

https://www.politico.com/news/2026/06/02/florida-ai-openai-regulations-tech-00946021
1•1vuio0pswjnm7•30m ago•0 comments

Open and closed models are on different exponentials

https://www.interconnects.ai/p/open-and-closed-models-are-on-different
2•gmays•32m ago•0 comments

Sam Altman has a proposition for startup founders: AI tokens for equity

https://www.businessinsider.com/sam-altman-openai-offer-tokens-for-startup-equity-y-combinator-20...
3•mgh2•33m ago•1 comments

Tell HN: Max messenger app removed from App Store

2•secondary_op•33m ago•1 comments

How Lawsuits Alleging Social Media Harms Threaten Big Tech

https://www.bloomberg.com/news/articles/2026-06-02/how-lawsuits-alleging-social-media-harms-threa...
1•1vuio0pswjnm7•34m ago•0 comments

Donald Trump's Superficiality Is Bone-Deep

https://www.theatlantic.com/ideas/2026/06/trump-superficiality/687413/
4•KnuthIsGod•35m ago•0 comments

Show HN: Suture – a reverse proxy that repairs truncated JSON in LLM streams

https://github.com/tensorhq/suture-stream-repair
1•nabucodonosor•38m ago•0 comments

Strategic agreements to supply lithium for next-generation fusion systems

https://www.moltensaltsolutions.com/post/first-commercial-supply-agreements
1•mooreds•39m ago•0 comments

The True Story Behind the "El Cap Kindergartener" Ascent

https://www.climbing.com/news/joey-danger-evermore-7-year-old-on-el-cap/?scope=anon
1•carabiner•40m ago•1 comments

QuadRF

https://moonrf.com/updates/
2•tripdout•42m ago•1 comments

Behind the Dashboard: Part 1 Privacy Concerns – Ford Ranger

https://www.fortifylabs.io/information/connected%20vehicles/vehicles/privacy/ford%20ranger/2025/1...
1•spiderspider•45m ago•0 comments

Beware of infinite loops when using AI

https://github.com/shaftoe/pi-coding-agent-action/pull/260
1•knocte•48m ago•0 comments

Meta's Metaverse lead left 4 months ago

https://www.businessinsider.com/top-metaverse-exec-quietly-left-four-months-ago-2026-6
1•1vuio0pswjnm7•51m ago•2 comments

Container Speed. VM-Level Security

https://edera.dev
1•kjok•52m ago•1 comments

Jailbreaking the Lululemon Mirror [video]

https://www.youtube.com/watch?v=_0gtiMi5AzI
1•JMiao•53m ago•0 comments

State of Memory in Agent Harness

https://twitter.com/mem0ai/status/2061822612398014782
1•gmays•55m ago•0 comments

Evolution of the Spreadsheet Interface

https://prabros.com/bean/blog/spreadsheet-as-a-tool-for-thought-1
4•prathyvsh•57m ago•0 comments