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!

Analysis finds anytime electricity from solar available as battery costs plummet

https://pv-magazine-usa.com/2025/12/12/analysis-finds-anytime-electricity-from-solar-available-as...
1•Matrixik•2m ago•0 comments

Using Nvi as a Minimal and Fast Text Editor

https://git.sr.ht/~r1w1s1/code-notes/blob/main/notes/NVI_Editor_Guide.txt
1•todsacerdoti•2m ago•0 comments

Problem: Why 32-Bit Systems Will Fail Like Y2K [video]

https://www.youtube.com/watch?v=yYY7V2CGT0g
1•senfiaj•3m ago•0 comments

MCP Security Scanner

https://github.com/Teycir/Mcpwn
1•teycirb•4m ago•1 comments

The Emerging Market for Intelligence: Pricing, Supply, and Demand for LLMs

https://twitter.com/AndreyFradkin/status/1999630104004329940
1•anecon2•6m ago•2 comments

Why Your AI Wakes Up Every Morning with No Memory (and How to Fix It)

https://lakshminp.substack.com/p/why-your-ai-wakes-up-every-morning
1•gmays•12m ago•0 comments

Young men are now being out-earned by seniors

https://thehub.ca/podcast/video/they-have-not-received-a-raise-in-25-years-young-men-are-now-bein...
2•Teever•14m ago•0 comments

Standard Notes 2025 update: What's new and what's next

https://standardnotes.com/blog/2025-update
1•janpio•15m ago•0 comments

Visualizing real-time LLM latency metrics

https://metrik-dashboard.vercel.app/
1•meh_bouassamii•16m ago•0 comments

Natural Emergent Misalignment from Reward Hacking in Production RL [pdf]

https://assets.anthropic.com/m/74342f2c96095771/original/Natural-emergent-misalignment-from-rewar...
1•samlinnfer•16m ago•0 comments

Efficient BASIC coding for the ZX Spectrum (2020)

https://blog.jafma.net/2020/02/24/efficient-basic-coding-for-the-zx-spectrum/
1•elvis70•18m ago•0 comments

How big tech is force-feeding us AI

https://www.bloodinthemachine.com/p/how-big-tech-is-force-feeding-us
1•nothrowaways•19m ago•0 comments

Bitcoin creator Satoshi disappeared on this day 15 years ago

https://www.tomshardware.com/tech-industry/cryptocurrency/bitcoin-creator-satoshi-disappeared-on-...
2•pseudolus•20m ago•1 comments

Sen. WHITEHOUSE: We are moving to file a bipartisan Section 230 repeal

https://bsky.app/profile/judiciarydems.senate.gov/post/3m7sjbvhbms2z
3•tguvot•21m ago•3 comments

Show HN: Habbitses – habit tracker build on top of GitHub

https://github.com/roboslone/habbitses
3•roboslone•21m ago•0 comments

Modern SID chip substitutes [video]

https://www.youtube.com/watch?v=nooPmXxO6K0
1•ingve•31m ago•0 comments

Ask HN: What's your workflow for handling many Git repos locally?

1•iam_pbk•31m ago•0 comments

VoxCSS – CSS voxel engine for the DOM

https://voxcss.com
1•eustoria•31m ago•0 comments

About the security content of iOS 26.2 and iPadOS 26.2

https://support.apple.com/en-us/125884
1•l2dy•32m ago•0 comments

Phreeli – Privacy by Design Wireless

https://www.phreeli.com/
1•eustoria•34m ago•0 comments

I Tried Gleam for Advent of Code, and I Get the Hype

https://blog.tymscar.com/posts/gleamaoc2025/
13•tymscar•34m ago•0 comments

Fiber-type artificial muscles outperform biological muscles

https://techxplore.com/news/2025-12-mimicry-fiber-artificial-muscles-outperform.html
1•geox•35m ago•0 comments

An Empirical Study in Stealing from Thieves While Maintaining Moral Superiority

https://tv.vynx.cc/about
2•tariky•35m ago•0 comments

University of Illinois Biological Computer Laboratory, 1958-1976

https://bclillinois.vercel.app/
1•jdcampolargo•36m ago•0 comments

Reasoning with Sampling: Your Base Model Is Smarter Than You Think

https://arxiv.org/abs/2510.14901
1•gmays•37m ago•0 comments

Poor mental health linked to dark web use

https://phys.org/news/2025-12-poor-mental-health-linked-dark.html
2•PaulHoule•41m ago•0 comments

First monolithic 3D chip built in a U.S. foundry

https://news.stanford.edu/stories/2025/12/monolithic-3d-chip-foundry-breakthrough-ai
1•giuliomagnifico•42m ago•0 comments

Aging Out of Fucks: The Neuroscience of Why You Suddenly Can't Pretend Anymore

https://www.blog.lifebranches.com/p/aging-out-of-fucks-the-neuroscience
5•mikestew•43m ago•0 comments

Why drawing rectangles instantly on a design job interview is a red flag

https://mikajovicic.com/writing/research-first-then-move-to-solution/
1•violinar•44m ago•0 comments

Show HN: Production-ready VS Code Extension boilerplate using React 19

https://github.com/kiran7893/vscode-extension-react-boilerplate
1•Kiran7893•46m ago•0 comments