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!

Email link phishing: why your email app should always show the URL

https://www.phpfreelance.co.uk/blog/email-link-phishing-your-app-should-always-show-the-url
1•vcdk•36s ago•0 comments

Mini Shai-Hulud: Where SLSA's Boundaries Fall

https://slsa.dev/blog/2026/05/mini-shai-hulud-what-slsa-can-and-cannot-do
1•ankitg12•1m ago•0 comments

TV Time is shutting down. The alternatives are buckling

https://reacham.app/demand-leaks/tv-time
1•neddinn•2m ago•1 comments

AB 2047: California's 3D Printer Surveillance Bill Advances

https://reclaimthenet.org/california-wants-a-watcher-inside-every-3d-printer
2•bilsbie•3m ago•0 comments

Modern environment designs overstimulate the brain, causing discomfort, stress

https://www.stir.ac.uk/news/2026/july-2026-news/looks-good-feels-bad-stirling-led-review-explains...
1•giuliomagnifico•4m ago•0 comments

EU Commission: addictive design Instagram and Facebook in breach of the DSA

https://ec.europa.eu/commission/presscorner/home/en
2•jeroenhd•4m ago•1 comments

Show HN: The Flint Programming Language

https://github.com/flint-lang/flintc
1•zweiler1•5m ago•0 comments

Meta risks $12B EU fine over addictive Instagram and Facebook feeds

https://www.theverge.com/policy/963872/meta-eu-addictive-design-200b-fine-risk-digital-services-a...
1•ilreb•5m ago•0 comments

Size Does Matter

https://nh3.dev/blog/05-bloat
1•cristaloleg•5m ago•0 comments

Cybersecurity Startup Publishes Infostealers to NPM

https://opensourcemalware.com/blog/cybersecurity-startup-publishes-infostealers-to-npm
1•ledoge•6m ago•0 comments

China tests sea-based rocket booster recovery system

https://www.reuters.com/science/china-successfully-tests-sea-based-rocket-booster-recovery-system...
1•olalonde•10m ago•0 comments

The Road to Iroh 1.0

https://www.iroh.computer/blog/the-road-to-iroh-1-0
1•pimterry•11m ago•0 comments

Show HN: Concepticon – manage your team's domain language like source code

https://thinkingtools.software/concepticon/
1•james_ross•11m ago•1 comments

Brown says AI make student brain no work good, teacher should help use it better

https://www.theregister.com/ai-and-ml/2026/07/09/brown-says-ai-make-class-dumb-teacher-must-help-...
1•pseudolus•12m ago•0 comments

Igloo Inc

https://www.igloo.inc/
1•treexs•13m ago•0 comments

20M data entries, a backtest engine, ML models, agents. Still haven't traded

https://demo.botlance.ai/
1•lamne•17m ago•0 comments

More Flock cameras cut down in Houston amid some privacy concerns

https://abc13.com/post/more-flock-cameras-cut-down-houston-amid-privacy-concerns/19471780/
2•pseudolus•17m ago•0 comments

Build Your Own Game Day

https://aws.amazon.com/blogs/architecture/build-your-own-game-day-to-support-operational-resilience/
1•ankitg12•23m ago•0 comments

Replit is the best coding agent

2•anitroves•23m ago•1 comments

EU-hosted analytics isn't the same as EU-owned analytics

https://plausible.io/blog/eu-hosted-analytics-vs-eu-owned-analytics
1•shivam-dev•24m ago•0 comments

Unified Memory, Explained: Why Mini PCs Can Run 70B Models a Big GPU Can't

https://vettedconsumer.com/unified-memory-explained-why-mini-pcs-can-run-70b-models-a-big-gpu-can...
1•ermantrout•24m ago•0 comments

Garden-Path Sentence

https://en.wikipedia.org/wiki/Garden-path_sentence
1•wseqyrku•25m ago•0 comments

Starting and iterating on a Kaggle competition in Google Antigravity

https://andlukyane.com/blog/kaggle-antigravity-s6e7
1•Artgor•27m ago•0 comments

Tea app profile lookup with verified results in 24 hours

https://teaaboutme.com
2•thefirstname322•29m ago•0 comments

Good Tools Are Invisible

https://www.gingerbill.org/article/2026/07/10/good-tools-are-invisible/
3•theanonymousone•32m ago•0 comments

The Risks of Assisted Reproduction

https://ifstudies.org/blog/what-fertility-clinics-dont-say-the-hidden-risks-of-assisted-reproduction
1•ilreb•33m ago•0 comments

Show HN: A possible open-source desktop alternative to OpenAI Codex

https://github.com/ai4s-research/open-science
1•noah1995•34m ago•0 comments

Vibrational noise disrupts Nezara viridula communication [pdf]

https://www.nature.com/articles/s42003-024-07185-3
1•thunderbong•34m ago•0 comments

MongoDB Workspace for Queries, Schema, Charts, and Teams

https://visualeaf.com/blog/mongodb-workspace-queries-schema-charts-teams/
3•mike_codes•38m ago•0 comments

Speech to Markdown with Local Models

https://github.com/xajik/voice-to-md
1•igor_st•39m ago•2 comments