frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Docker Offload

https://www.docker.com/blog/docker-offload-now-generally-available-the-full-power-of-docker-for-e...
1•redbell•3m ago•0 comments

WebHarmonium: Play harmonium online with the original Rajaraman Iyer key map

https://webharmonium.top
1•BOS1980•5m ago•1 comments

All 477 power plants in Iran

https://openinframap.org/stats/area/Iran/plants
1•JumpCrisscross•8m ago•0 comments

Show HN: Beautiful intuitive weather forecasts that don't rely on numbers/units

https://weather-sense.leftium.com
2•Leftium•9m ago•0 comments

Show HN: Fetch Reliability Arena – Compare HTTP clients under chaos

https://fetch-kit.github.io/ffetch-demo/
1•gkoos•11m ago•0 comments

More Americans Are Breaking into the Upper Middle Class

https://www.wsj.com/economy/more-americans-are-breaking-into-the-upper-middle-class-bf8b7cb2
2•JumpCrisscross•15m ago•0 comments

US commandos rescue downed F-15 airman in daring raid deep inside Iran

https://www.timesofisrael.com/we-got-him-us-commandos-rescue-downed-f-15-airman-in-daring-raid-de...
2•mhb•16m ago•0 comments

How do social media platforms trap users in networks they would rather leave?

https://www.technology.org/2026/04/04/how-do-social-media-platforms-trap-users-in-networks-they-w...
1•Noaidi•16m ago•2 comments

For Everyone

https://en.wikipedia.org/wiki/This_Is_for_Everyone
1•teleforce•17m ago•0 comments

Right to repair: Why the US military can't fix much of its own equipment

https://taskandpurpose.com/tech-tactics/us-military-right-to-repair/
1•scythe•19m ago•0 comments

Your data, your choice: Solid project by Tim Berners-Lee

https://solidproject.org/
1•teleforce•19m ago•0 comments

Show HN: 1B Embeddings

3•INVARIAN•21m ago•0 comments

Show HN: I built a $9 Ahrefs alternative because raw SEO data is cheap

https://idiotproofseo.com/
1•harryfelio•21m ago•0 comments

The Domain Harness: Trust Aggregation at Community Scale

https://www.mountaineagle.net/articles/display/the-domain-harness-trust-aggregation-at-community-...
1•uswn•22m ago•0 comments

What is this and Why is it here?

https://olano.dev/blog/why/
1•facundo_olano•23m ago•0 comments

Open Source Malaria Lab Notebook

https://mynotebook.labarchives.com/login
1•eamag•24m ago•0 comments

Thoughts for the Weekend

https://www.youtube.com/playlist?list=PLcs1ZorNr2uTGPZPZnBa408qLVHjbMTzT
1•mvelbaum•24m ago•0 comments

Uber and Trial Lawyers Spar over New Yorkers' Auto Insurance Premiums

https://www.nytimes.com/2026/04/05/nyregion/lawyers-uber-auto-insurance.html
1•JumpCrisscross•24m ago•0 comments

The Todd Group: Open-Source Drug Discovery

https://todd-lers.github.io/about/
1•eamag•26m ago•0 comments

Show HN: I built a free web tool to convert PNG/SVG files to 3D printable STLs

https://omnvert.com/en/tools/png-svg-to-stl
1•kaant•28m ago•0 comments

It turns out Fortnite isn't the forever game after all

https://www.gamesindustry.biz/it-turns-out-fortnite-isnt-the-forever-game-after-all-opinion
2•haunter•29m ago•0 comments

Ubuntu now requires more RAM than Windows 11

https://www.howtogeek.com/ubuntu-now-requires-more-ram-than-windows-11/
20•jnord•29m ago•4 comments

Common drug tests lead to tens of thousands wrongful arrests a year

https://www.cnn.com/2026/04/05/us/colorado-field-drug-test-law
1•rawgabbit•32m ago•0 comments

Yellow Flags on Team Culture

https://blog.prat0318.com/2026/04/6-yellow-flags-on-team-culture-and-how.html
1•prat0318•34m ago•0 comments

RazorRenderer

https://github.com/lstevens297/RazorRenderer
1•lstevens14•35m ago•1 comments

In Defense of Comments

https://www.nklswbr.com/blog/comments
1•nklswbr•37m ago•3 comments

Sad Story of My Google Workspace Account Suspension

https://zencapital.substack.com/p/sad-story-of-my-google-workspace
9•zenincognito•38m ago•0 comments

Center This Div – A CSS centering game with a 0.0001px threshold

https://center-this-div.vercel.app
1•raxxo•39m ago•0 comments

Wandering Journeyman

https://en.wikipedia.org/wiki/Wandering_journeyman
3•akyuu•44m ago•0 comments

Neovim 0.12: What's New [video]

https://www.youtube.com/watch?v=xSiQP23ZZhI
2•davidkunz•45m ago•0 comments