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!

AI Can Reverse-Engineer Hardware. I Can't Turn Off My Own Alarm

https://www.sudomoin.com/p/ai-can-reverse-engineer-hardware-i-can-t-turn-off-my-own-alarm
1•dimitri-vs•1m ago•0 comments

If prime numbers are rare, then why do they keep showing up in pairs? [video]

https://www.youtube.com/watch?v=8HBDE-msUjw
1•lambertsimnel•1m ago•0 comments

Show HN: Can Europe train a frontier AI model on the compute it owns?

https://github.com/sammysltd/euromesh
1•smashini•2m ago•0 comments

Show HN: Larastvel, Laravel-inspired Rust web framework

https://larastvel.vercel.app
1•sonyarianto•2m ago•0 comments

Publisher reviewing 2 more papers on glyphosate safety over ghostwriting claims

https://retractionwatch.com/2026/06/15/glyphosate-roundup-safety-ghostwriting-claims-critical-rev...
1•tmoertel•2m ago•0 comments

Roku has agreed to combine with Fox Corporation

https://www.roku.com/blog/roku-fox
1•ilreb•2m ago•0 comments

Show HN: Conan – A Live HUD for Claude Code on macOS

https://www.conan.sh/
1•randydigital•3m ago•0 comments

IP Linux – browser desktop environment built with React and Vite

https://ip-os-linux.vercel.app/
1•nexoipgit•3m ago•0 comments

Show HN: MicroLeague Sports: Building a Time Machine for Sports

https://www.microleaguesports.com/blogs/microleague-dev-blog-vol-1
1•esolar07•4m ago•0 comments

Google Flight Simulator

https://developers.google.com/maps/documentation/earth/flight-simulator
2•bookofjoe•7m ago•0 comments

Fox Corporation to Acquire Roku, Inc

https://investor.foxcorporation.com/news/corp-press-releases/2026/fox-corporation-to-acquire-roku...
1•JumpCrisscross•7m ago•0 comments

Show HN: Nxui – Copy-paste animated UI components for Vue

https://nxui.geoql.in/docs/
1•vinayakkulkarni•7m ago•0 comments

You're Not "AI Native"

https://www.stvn.sh/writing/youre-not-ai-native-exu048c
1•mooreds•7m ago•0 comments

SBCL-IRCD

https://github.com/jdgrr/sbcl-ircd
1•jdgr•8m ago•1 comments

Polivoks Designer Vladimir Kuzmin Has Died

https://www.synthtopia.com/content/2026/06/13/polivoks-synthesizer-designer-vladimir-kuzmin-has-d...
1•glimshe•8m ago•0 comments

Single food delivery robot jammed the canal drawbridge

https://yle.fi/a/74-20231660
1•mcraiha•9m ago•0 comments

Adyen to Acquire Orb

https://www.adyen.com/press-and-media/jtrg4qd7j3p4rj
1•doppp•12m ago•0 comments

CrankGPT

https://crankgpt.com
2•rishikeshs•13m ago•0 comments

People Living Near xAI's Data Centers Are Right Pissed About the SpaceX IPO

https://www.motherjones.com/politics/2026/06/xai-data-center-neighbors-angry-spacex-ipo-gas-turbi...
1•cdrnsf•13m ago•0 comments

AI Readiness Radar

https://cakehurstryan.com/2026/06/12/ai-readiness-radar/
1•mooreds•13m ago•0 comments

Hetzner Price Adjustment (June 15th, 2026)

https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/#cloud-servers
3•tuhtah•13m ago•1 comments

Ask HN: What agentic directory structure do you use?

3•dominiek•13m ago•0 comments

The Small Lies Developers Tell to Keep Work Moving

https://shiftmag.dev/the-small-lies-developers-tell-to-keep-work-moving-10305/
1•dxs•14m ago•1 comments

Applying Brevity and Language Efficiency in Prompt Engineering

https://prahladyeri.github.io/guides/applying-brevity-and-language-efficiency-to-prompt-engineeri...
2•pyeri•16m ago•0 comments

Formal Methods and the Future of Programming

https://blog.janestreet.com/formal-methods-at-jane-street-index/
2•osener•17m ago•0 comments

Generative AI and Ethical Speculation

https://www.internetruleslab.com/black-mirror-survey
1•speckx•18m ago•0 comments

Akse3D – open-source 3D modelling anyone can master

https://akse3d-en.skaperiet.no
2•joachimhs•19m ago•0 comments

WSP WordPress MCP – Connect AI Agents to WordPress

https://github.com/bilalnaseer/wsp-wordpress-mcp
5•web_sensepro•20m ago•0 comments

Fox Corporation to Acquire Roku, Inc

https://www.foxcorporation.com/news/corp-press-releases/2026/fox-corporation-to-acquire-roku-inc/
2•jaredwiener•21m ago•1 comments

General-purpose LLMs outperform specialized clinical AI tools

https://www.nature.com/articles/s41591-026-04431-5
2•doppp•21m ago•0 comments