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!

Ghost CMS SQL injection flaw exploited in large-scale ClickFix campaign

https://www.bleepingcomputer.com/news/security/ghost-cms-sql-injection-flaw-exploited-in-large-sc...
1•sbulaev•3m ago•0 comments

HN: Silau – AI detects employee burnout"

1•silau•12m ago•2 comments

Army runs secret wargames under central London

https://www.bbc.com/news/articles/c2e2vjl2ry8o
2•Vermin2000•19m ago•1 comments

The Morale of Tech Workers Is Plunging as Layoffs Mount

https://www.nytimes.com/2026/05/19/business/tech-layoffs-blind.html
4•bookofjoe•23m ago•2 comments

Cache – Meal plans from your local store's weekly sales

https://www.cache.fit/
2•blaughlin•23m ago•1 comments

A Unified Theory of Alignment in Layered Systems

https://a-unified-theory-of-alignment-in-layered-systems.tiiny.site/
1•CitizenOfEarth•24m ago•0 comments

The quiet grief of adult friendship

https://timesofindia.indiatimes.com/blogs/civil-irony/the-quiet-grief-of-adult-friendship/
2•crcastle•24m ago•1 comments

Show HN: SaveNeighbor – food delivery through your own personal network

https://www.saveneighbor.com
1•JJonesRatio•26m ago•0 comments

Canonical to shut Ubuntu Pastebin after 18 years of service

https://www.omgubuntu.co.uk/2026/05/canonical-ubuntu-pastebin-shutdown
1•colinprince•28m ago•0 comments

I built an online leather goods store focused on making gift buying less painful

https://www.vintageleather.com.au/
2•vickeycool•30m ago•1 comments

Tfdraw.dev – turn Terraform plan JSON into an editable architecture diagram

https://tfdraw.dev/demo
1•spoosh•30m ago•0 comments

Show HN: The first (free) podcast ad blocker

https://apps.apple.com/us/app/drea-podcast-ad-blocker/id6759070798
1•hamza_q_•39m ago•0 comments

Fatherhood Dramatically Rewires Your Brain

https://www.sciencealert.com/fatherhood-dramatically-rewires-your-brain-scans-reveal
3•Gaishan•40m ago•1 comments

How AI Talks People Out of Conspiracy Theories–and What We Can Learn from That

https://www.wsj.com/tech/ai/ai-debunks-conspiracy-theories-92eff2c5
3•MilnerRoute•51m ago•1 comments

Honopinion

https://honopinion.com
2•mroshani20•56m ago•0 comments

We Built Secure, Scalable Agent Sandbox Infrastructure

https://twitter.com/larsencc/status/2027225210412470668
1•gmays•57m ago•1 comments

Mvm – a fast virtual machine for Go

https://mvm.sh/
1•birdculture•59m ago•0 comments

Teaching Codex to Test a Voice-First Calendar App

https://www.elicited.blog/posts/teaching-codex-to-test-a-voice-first-calendar
1•justanotheratom•1h ago•1 comments

What were your favorite classic iPod games?

1•wompapumpum•1h ago•0 comments

'What Matters Most'–Google Is Changing Your Gmail Inbox

https://www.forbes.com/sites/zakdoffman/2026/05/23/what-matters-most-google-is-changing-your-gmai...
2•healsdata•1h ago•0 comments

Lessons I Learned from Creating Searx

https://hister.org/posts/lessons-i-learned-from-creating-searx
1•xosc•1h ago•0 comments

How Google's Beta Tester Requirement Created a Fiverr Grey Market

https://danunparsed.com/p/googles-beta-tester-requirement
3•sambellll•1h ago•0 comments

The Black Hole Scientists Say Is Growing Too Fast

https://substack.com/profile/512907875-hamza-ashkar/note/c-264627457
2•hamzaashkar•1h ago•0 comments

Agent evals should feel like real work

https://www.zohaib.cc/blog/agent-evals
1•zed_labs_dev•1h ago•0 comments

Verifying a Caliptra Boot-FSM Bug with Mununu

https://marianocerrutti.substack.com/p/verifying-a-caliptra-boot-fsm-bug
1•hasheddan•1h ago•0 comments

The Densest (Urban) Environment in the World

https://oldurbanist.blogspot.com/2011/09/densest-urban-environment-in-world.html
4•Neuronaut•1h ago•1 comments

Poll: Test

1•sillysaurusx•1h ago•0 comments

The Green Side of the Lua

https://arxiv.org/abs/2601.16670
3•radiator•1h ago•0 comments

Star Citizen game has reached $1B in funding

https://robertsspaceindustries.com/en/funding-goals
10•speckx•1h ago•3 comments

Show HN: JavaScript Crossword – a crossword where the clue = eval(answer)

https://lyra.horse/fun/jscrossword/
1•rebane2001•1h ago•0 comments