frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•7mo 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!

Show HN: OnlyRecipe 2.0 – I added all features HN requested – 4 years later

https://onlyrecipeapp.com/?url=https://www.allrecipes.com/turkish-pasta-recipe-8754903
1•AwkwardPanda•3m ago•1 comments

Handling the Cloudflare outage with infrastructure as code in 10 minutes

https://www.carneiro.pt/blog/2025-cloudflare-outage/
1•mig4ng•6m ago•1 comments

Autonomous Observability at Pinterest

https://medium.com/pinterest-engineering/autonomous-observability-at-pinterest-part-1-of-2-eb0ada...
1•meysamazad•7m ago•0 comments

What's the best way to expand the US electricity grid?

https://news.mit.edu/2025/best-way-to-expand-us-electricity-grid-1204
1•meysamazad•8m ago•0 comments

Minimum Viable Benchmark

https://blog.nilenso.com/blog/2025/11/28/minimum-viable-benchmark/
1•ath_ray•9m ago•0 comments

My First ProductHunt Launch Flopped: 11 Upvotes, 800 Visitors

https://meysam.io/blog/first-producthunt-launch-flopped/
1•meysamazad•9m ago•0 comments

Warning to lawyers helping LiP who submitted AI-generated authorities

https://www.lawgazette.co.uk/news/warning-to-lawyers-helping-lip-with-ai-generated-authorities/51...
2•ColinWright•12m ago•0 comments

Illusion of Consensus

https://bigthinkmedia.substack.com/p/the-illusion-of-consensus-is-powerful
1•fbn79•14m ago•0 comments

A VLA That Learns from Experience

https://www.pi.website/blog/pistar06
1•thunderbong•14m ago•0 comments

Show HN: Intrepid – A Visual Behavior Builder for Real Robotics Code

https://intrepid.ai/product/
1•frag•14m ago•0 comments

Duck Store for Hackers – New Modern Vulnerable Web App

https://duck-store.escape.tech
1•alexxxchr•15m ago•0 comments

Coupongogo: Remote-Controlled Crypto Stealer Targeting Developers on GitHub

https://www.rastersec.com/blog/coupongogo-cryptostealer
2•stnby•15m ago•0 comments

President Donald Trump Appears to Approve Kei Cars for the USA

https://www.roadandtrack.com/news/a69623655/president-donald-trump-kei-cars-usa/
2•eatonphil•16m ago•0 comments

Cursed circuits #2: switched capacitor lowpass

https://lcamtuf.substack.com/p/cursed-circuits-2-switched-capacitor
1•hasheddan•16m ago•0 comments

Inventing a new programming language for web development was a mistake

https://twitter.com/MatijaSosic/status/1996576283447480624
2•matijash•19m ago•0 comments

Spoon Bending

https://grantgumina.notion.site/Spoon-Bending-2bc8eeba3c2d80109957d0d28b66e559
2•gum_ina_package•20m ago•0 comments

Whence the Force of F = ma? I: Culture Shock

https://physicstoday.aip.org/opinion/whence-the-force-of-f-ma-i-culture-shock
2•o4c•20m ago•0 comments

A perspective on friction interventions to curb the spread of misinformation

https://www.nature.com/articles/s44260-025-00051-1
1•PaulHoule•22m ago•0 comments

Sugars, 'Gum,' Stardust Found in NASA's Asteroid Bennu Samples

https://www.nasa.gov/missions/osiris-rex/sugars-gum-stardust-found-in-nasas-asteroid-bennu-samples/
2•eatonphil•23m ago•0 comments

Do we need MCPs? Reverse-engineered Slack and Linear API for training and evals

https://www.agentdiff.dev/
5•hubertmarek•23m ago•1 comments

The Web Runs on Tolerance

https://shkspr.mobi/blog/2025/12/the-web-runs-on-tolerance/
2•speckx•24m ago•1 comments

Community Paper Contributions

https://philpapers.org/rec/WISLIM
1•DavidWishengrad•25m ago•1 comments

gRPC_GraphQL_gateway

https://github.com/Protocol-Lattice/grpc_graphql_gateway
1•raezil12•25m ago•1 comments

Backpack v7 Is Launched – See What's New

https://laravel-news.com/backpack-v7-is-launched-see-whats-new
1•amalinovic•26m ago•0 comments

React2shell

https://react2shell.com/
2•chillax•26m ago•0 comments

Creating a Custom Mobile Integration for a Board Game Using Ruby on Rails

https://hashrocket.com/blog/posts/creating-a-custom-mobile-integration-for-a-board-game-using-rub...
1•unripe_syntax•27m ago•0 comments

Humanoid Robot Walks 66 Miles Non‑Stop, Swaps Batteries Mid‑Stride

https://modernengineeringmarvels.com/2025/12/03/humanoid-robot-walks-66-miles-non-stop-swaps-batt...
1•Brajeshwar•27m ago•1 comments

New discovery sets humanity up to image "alien Earth"

https://bigthink.com/starts-with-a-bang/new-discovery-imaging-alien-earth/
1•Brajeshwar•27m ago•0 comments

Daxa: Vulkan-powered GPU abstraction purpose-built for modern graphics cards

https://github.com/Ipotrick/Daxa
1•klaussilveira•27m ago•0 comments

Sayash Kapoor on X: "CORE-Bench is solved (using Opus 4.5 with Claude Code)"

https://twitter.com/sayashk/status/1996334941832089732
2•janpio•28m ago•0 comments