frontpage.
newsnewestaskshowjobs

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!

LeanDB a strongly Typed SQL front end

https://theoric.com/blog/drafts/leandb_a_strongly_typed_sql_frontend/
1•hargup•1m ago•1 comments

Show HN: A 70x faster and 5x smaller XSS sanitizer than DOMPurify

https://github.com/ppmpreetham/DOMOxide
1•ppmpreetham•3m ago•0 comments

Traders brought Central American cacao to Georgia 1k years ago

https://arstechnica.com/science/2026/08/traders-brought-central-american-cacao-to-georgia-1000-ye...
1•pseudolus•5m ago•0 comments

Show HN: Get your app online in seconds

https://instapods.com/
1•not_wowinter13•7m ago•0 comments

Only 33 days left in project online retirement

https://onplana.com/migration/project-online-estate-assessment
1•Onplana•7m ago•1 comments

Accessible by default: writing a book like software

https://ben.balter.com/2026/08/27/accessible-by-default/
1•chmaynard•7m ago•0 comments

Lexicon: Manipulate DNS records in a standardized way in Python

https://github.com/dns-lexicon/dns-lexicon
1•gregsadetsky•8m ago•0 comments

Show HN: SvGrid – a Svelte 5 data grid an AI can drive to build a full app

https://github.com/sv-grid/sv-grid
1•boikom•9m ago•0 comments

Show HN: Rosebed – A Minecraft beta 1.7.3 reimplementation in Zig

https://mdmrk.github.io/rosebed/
1•talentedRed•10m ago•0 comments

Canada Hires 48 Scholars Away from Top U.S. Universities

https://www.nytimes.com/2026/08/27/world/canada/canada-universities-hire-us-researchers.html
2•mykowebhn•12m ago•0 comments

Just Some Generative Art

https://number-garden.com/?114336224149876@THLP@
1•unitX•12m ago•0 comments

$900M paid out to end wind farm project going to firm run by Mar-a-Lago neighbor

https://www.independent.co.uk/news/world/americas/us-politics/trump-windfarm-money-neighbors-flor...
2•pseudolus•13m ago•0 comments

The Frictions That Make AI Forecasting Hard

https://twitter.com/AnneliesGamble/status/2087259132667810162
2•gmays•14m ago•0 comments

China's humanoid robots aren't smart enough to take your job – yet

https://www.reuters.com/investigations/chinas-humanoid-robots-arent-smart-enough-take-your-job-ye...
2•YeGoblynQueenne•14m ago•0 comments

Pydantic AI

https://pydantic.dev/docs/ai/overview/
3•monneyboi•15m ago•0 comments

Meta Paid $17B – Gets to Write Safety Rules for Other SocMedia Platform

https://www.techdirt.com/2026/08/26/meta-just-paid-nearly-17-billion-to-make-sure-it-gets-to-writ...
9•ano-ther•16m ago•1 comments

Alleged Russian assassination plot uncovers 'The Sims 3' (2022)

https://www.washingtonpost.com/video-games/2022/04/26/russian-assassination-sims-3/
3•latexr•16m ago•0 comments

There Is No Consensus on Biological Sex

https://onlinelibrary.wiley.com/doi/10.1111/ele.70350
5•doener•16m ago•1 comments

libBeresta – cross-platform C library for generating PDF files

https://github.com/libBeresta/libBeresta
2•smartmic•17m ago•0 comments

De-slop the text you shouldn't be writing anyway

https://blog.stephenturner.us/p/deslop
3•epistasis•17m ago•0 comments

Agentic engineering: a practical guide to reliable coding agents

https://scottspence.com/posts/agentic-engineering-practical-guide
3•mellosouls•19m ago•0 comments

Police Are Spending Opioid Settlement Funds on Flock Cameras

https://www.motherjones.com/politics/2026/08/police-opioid-funding-flock-alpr-camera-surveillance...
3•cdrnsf•19m ago•0 comments

Nuisance-call blocker fined £190k for being a nuisance caller

https://www.theregister.com/security/2026/08/27/nuisance-call-blocker-fined-190k-for-being-a-nuis...
2•joebuckwilliams•19m ago•0 comments

Watch the temperature of the moon during the eclipse tonight

https://moontemperature.com/
2•axolve•21m ago•1 comments

Omarchy distro gains serious backing

https://www.theregister.com/os-platforms/2026/08/27/omarchy-distro-gains-serious-backing/5293026
4•joebuckwilliams•21m ago•1 comments

Placemark is now open source

https://macwright.com/2026/08/25/placemark-fully-open-source
2•leephillips•21m ago•0 comments

Google Search Trend for Human

https://trends.google.com/explore
3•impjohn•22m ago•0 comments

Former Twitter lawyer launches Twitter.now

https://trademarklawyermagazine.com/former-twitter-lawyer-launches-twitter-now-as-trademark-battl...
5•tevrede•22m ago•1 comments

The Flakiness.io Analytics Engine

https://blog.flakiness.io/posts/2026/engine/
1•aslushnikov•22m ago•0 comments

Vercel WebGPU library, designed for agents

https://vgpu.sh
2•hugodan•24m ago•0 comments