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!

Colorado Amended SB051 (Age Verification Bill) to Exclude Open Source Projects

https://legiscan.com/CO/bill/SB051/2026
1•ki4jgt•1m ago•0 comments

OpenAI Guaranteed Capacity

https://openai.com/business/guaranteed-capacity/
1•punnerud•3m ago•0 comments

The first western pilot to fly the MiG-29 Soviet fighter plane

https://coldwarconversations.com/episode106/
1•Anon84•4m ago•0 comments

Cerebras is now a public company

https://www.cerebras.ai/cbrs
2•KronisLV•4m ago•0 comments

Show HN: Crucible – 8 legendary songwriters tear apart your lyrics, no login

https://songforgeai.com/crucible
1•Torgin•5m ago•0 comments

About My Forza Horizon 6 Plan I Returned the Game Unopened Today (May 20, 2026)

https://samhenrycliff.medium.com/about-my-forza-horizon-6-plan-i-returned-the-game-unopened-today...
1•6stringmerc•6m ago•0 comments

OpenAI Announces Construction of New Data Center on Top of Sick Child

https://www.youtube.com/watch?v=CkDKmSMvfmk
1•unleaded•6m ago•0 comments

KE:SAI Open Science Autonomy Lab

https://kesai.eu/
1•marvinborner•7m ago•0 comments

Google published exploit code for an unfixed Chromium bug

https://arstechnica.com/security/2026/05/google-publishes-exploit-code-threatening-millions-of-ch...
2•logickkk1•7m ago•0 comments

Revised^7 Report on Scheme, Large: Procedural Fascicle Draft is now public

https://r7rs.org/large/fascicles/proc/
1•pmcgoron•8m ago•1 comments

SpaceX punts Starship launch as investigation opens into Starbase worker's death

https://www.scientificamerican.com/article/spacex-punts-starship-v3-launch-to-may-21-as-investiga...
2•mywacaday•8m ago•0 comments

Software engineer driven to insanity from 2026 job market [video]

https://www.youtube.com/watch?v=TYuSEeuUhPo
1•mgl•9m ago•0 comments

Yap to Bop: Turn your DMs into hit songs

https://yaptobop.com/
1•ajiang•10m ago•0 comments

A Wayland Compositor in Minecraft

https://modrinth.com/mod/waylandcraft
1•Jotalea•10m ago•0 comments

2019 Revision of the SI units

https://en.wikipedia.org/wiki/2019_revision_of_the_SI
1•AkshayGenius•17m ago•1 comments

India scorched by heat wave, power demand driven to new record

https://www.accuweather.com/en/weather-news/india-scorched-by-heat-wave-power-demand-driven-to-ne...
3•saikatsg•17m ago•0 comments

Dear Claude: Please don't use regex to parse code

https://mbmccoy.dev/posts/no-regex-claude/
1•_alternator_•17m ago•0 comments

ARM SVE2

https://developer.arm.com/documentation/102340/0100/SVE2-architecture-fundamentals
1•tosh•20m ago•0 comments

The Morale of Tech Workers Is Plunging as Layoffs Mount

https://www.nytimes.com/2026/05/19/business/tech-layoffs-blind.html
3•saikatsg•20m ago•0 comments

Show HN: Hiding a secret message in plain sight with Steganography

https://postimg.cc/7Gp8YVhT
2•smalltorch•20m ago•0 comments

Firejail

https://github.com/netblue30/firejail
1•janalsncm•20m ago•2 comments

Show HN: Chess Puzzles, but for Developers

https://codequizz.com
1•arstep•24m ago•1 comments

Agent Readiness Scanner – Check if a repo is ready for coding agents

https://github.com/chevy155/agent-readiness
2•chevy155•27m ago•0 comments

MCP-safeguard: open-source security scanner for MCP servers

https://github.com/SyedAnas01/mcp-safeguard
2•Anas1371•31m ago•0 comments

Slow Surveys Are Dead: Terapage CEO on Why Experts Are Moving to Synthetic Data

https://zenodo.org/records/20315637
1•anasteciadunu•32m ago•0 comments

Ask HN: What would you expect from an app launcher as a developer?

1•icauroboros•33m ago•2 comments

Django 6.1 alpha 1 released

https://www.djangoproject.com/weblog/2026/may/20/django-61-alpha-1-released/
1•collinmanderson•34m ago•1 comments

Introducing RoughDraft – Easier collaboration with your agent

https://www.roughdraft.md/
2•rmason•35m ago•0 comments

Waw an Namus: Libya's Black Oasis [video]

https://www.youtube.com/watch?v=2iH5J2jz-ZY
1•vinnyglennon•35m ago•0 comments

TargetBridge: Use an iMac as Display for a Modern Mac

https://github.com/swellweb/targetBridge
2•ThomasWaldmann•40m ago•2 comments