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!

What Happened to WordPerfect? Why the Dominant Word Processor Disappeared

https://www.youtube.com/watch?v=cMnjphv3DQo
1•cable2600•7m ago•0 comments

Show HN: Made a Free Shownotes Generator Website

https://shownotesgenerator.com/
1•wbemaker•9m ago•0 comments

Show HN: OneWayInterview – type a job role, AI builds the async video interview

https://onewayinterview.com/
1•emunova•10m ago•0 comments

LoRA Adapters Generated from Skill.MDs

https://terradev.cloud/tessera
1•Facingsouth•10m ago•0 comments

Open Weights and American AI Leadership

https://www.microsoft.com/en-us/corporate-responsibility/topics/open-weight/
3•haritha1313•16m ago•0 comments

BackSearch – Letting agents search the web

https://www.gr.inc/releases/introducing-backsearch
1•haritha1313•17m ago•0 comments

Cultural moderation of demographic differences in narcissism

https://www.tandfonline.com/doi/full/10.1080/15298868.2025.2593298#abstract
2•bushwart•17m ago•0 comments

Show HN: I rebuilt Microsoft Comic Chat's layout engine in one HTML file

https://arcade.pirillo.com/comic-chatter.html
1•ChrisPirillo•17m ago•0 comments

Amazon cracks down on use of AI images by sellers after New York law

https://www.cnbc.com/2026/07/23/amazon-makes-sellers-label-ai-generated-people-in-images-after-ny...
4•baranul•17m ago•0 comments

Ask HN: Multi dimensional sort (beyond Hilbert curve)

1•adec314•18m ago•0 comments

Florida's Ban on Unnaturally Posed Stuffed Baby Crocodilians

https://www.loweringthebar.net/2026/07/florida-bans-oddly-posed-alligators.html
1•samizdis•18m ago•0 comments

Dimmd – Dark mode for the macOS Apple Mail app

https://www.dimmd.app/
1•spacedawwwg•24m ago•0 comments

Always Tell Your Kids the Truth (2019)

https://www.outsideonline.com/culture/active-families/tell-your-kids-truth/
1•downbad_•25m ago•0 comments

Show HN: Openleetcode – local LeetCode runner where tests live in the repo

https://github.com/therepanic/openleetcode
1•therepanic•28m ago•0 comments

SignFile – Sign anything. One flat price

https://signfile.io/
2•abdullah_eldoud•28m ago•0 comments

There is no free benchmark

https://www.pnas.org/doi/10.1073/pnas.2509757122
1•hhs•30m ago•0 comments

Show HN: A Kakeya Conjecture Game

https://quantisan.github.io/kakeya-game/
1•quantisan•31m ago•1 comments

Sperm Whales blow bubbles to achieve restful, vertical sleep

https://news.st-andrews.ac.uk/archive/sperm-whales-blow-bubbles-to-achieve-restful-vertical-sleep/
6•hhs•32m ago•0 comments

The 0,5 MB of nothing in all Apple Music files (2020)

https://www.ctrl.blog/entry/apple-music-nullbytes.html
5•downbad_•33m ago•0 comments

Insect submariners survive the depths without imploding

https://news.ubc.ca/2026/07/insect-submariners-survive-the-depths-without-imploding/
5•hhs•35m ago•1 comments

Show HN: Evidence Graph – type checking for the specs your AI agent implements

https://github.com/samchon/lint-plugin-evidence
1•autobe•36m ago•0 comments

Lawsuit Against Meta over Social Media Addiction Is Dropped

https://www.nytimes.com/2026/07/22/technology/meta-social-media-lawsuit.html
3•lxm•38m ago•0 comments

I don't have a dream job

https://harsehaj.substack.com/p/i-dont-have-a-dream-job
1•harsehaj•42m ago•0 comments

Glacier App

https://www.theglacierapp.com/
1•josephscott•42m ago•0 comments

The Knowledge Warehouse

https://productnow.ai/blogs/what-is-a-knowledge-warehouse
1•kadhirvelm•44m ago•0 comments

No mandatory registration. No identity verification. You control your data

https://everiot.org/
1•doener•45m ago•0 comments

Show HN: How well do you use Claude Code?

4•Paarthmj•45m ago•2 comments

Anthropic not giving up on the blue teams just yet

https://cephalosec.com/blog/anthropic-not-giving-up-on-the-blue-team-just-yet/
1•Versipelle•48m ago•0 comments

Ford Will Use Apple Maps in New Self-Driving System

https://www.nytimes.com/2026/07/23/business/ford-apple-software-self-driving.html
7•bookofjoe•55m ago•2 comments

Inside Ukraine's Kill Zone

https://www.reuters.com/graphics/UKRAINE-CRISIS/KILL-ZONE/znpnojmknvl/
3•bushwart•58m ago•0 comments