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!

Show HN: Linux Journey for iOS

https://apps.apple.com/us/app/linux-journey/id6770861660
1•huhuhang•3m ago•0 comments

SpaceX Vow to Loft 1M AI Satellites Could Spark Doomsday Dive

https://www.forbes.com/sites/kevinholdenplatt/2026/05/31/spacex-vow-to-loft-1-million-ai-satellit...
1•paulpauper•8m ago•0 comments

Show HN: Memex – A local-first AI journal that keeps everything as Markdown

https://github.com/memex-lab/memex
1•sparkleMing•9m ago•0 comments

Diffusion over Networks

https://camerongordon0.substack.com/p/diffusion-over-networks
1•iciac•14m ago•0 comments

Anthropic is conditioning our minds

2•ms_menardi•14m ago•2 comments

The true reason C++ always wins [video]

https://www.youtube.com/watch?v=I7fEsbksKRE
1•AareyBaba•15m ago•0 comments

CVE-2026-31525: Linux Kernel Privilege Escalation Flaw

https://www.sentinelone.com/vulnerability-database/cve-2026-31525/
1•Wingy•18m ago•0 comments

U.S. Midterms Have a Cyber Problem, but It's Not at the Ballot Box

https://blog.checkpoint.com/exposure-management/the-2026-u-s-midterms-have-a-cyber-problem-but-it...
7•gnabgib•29m ago•2 comments

Show HN: LeetCode EasyRepeat – Anki for LeetCode

https://github.com/yc1838/LeetCode-EasyRepeat
1•yc1838•29m ago•0 comments

I Got $4.84 from a Class Action and They Didn't Want Me to Have It

https://labnotes.org/i-got-4-84-from-a-class-action-settlement-and-they-really-really-didnt-want-...
3•speckx•30m ago•0 comments

Election interlopers register 5K+ domains, hope to catch some voting phish

https://www.theregister.com/security/2026/06/01/5k-election-domains-registered-ahead-of-us-midter...
2•Bender•34m ago•1 comments

X.org Server Starts June Nine New Security Vulnerabilities Discovered via AI

https://www.phoronix.com/news/X.Org-9-Vulnerabilities-AI
1•Bender•35m ago•0 comments

Texas adds another solar farm as ERCOT grid demand soars

https://electrek.co/2026/06/01/texas-adds-another-huge-solar-farm-ercot-grid-demand-soars/
4•Bender•38m ago•0 comments

TLDR – Summarize paragraphs in real-time through Firefox

https://github.com/chudweiser/TLDR
1•chudweiser•40m ago•0 comments

Why Study CS? Thoughts on LLM-assisted software engineering

https://kmicinski.com/claude-code-and-why-study-cs
3•jruohonen•47m ago•0 comments

Anthropic and the caravel problem

https://radval.me/articles/anthropic-and-the-caravel-problem
2•rad_val•50m ago•1 comments

Why are audio front ends still optimized for CPUs? (MelT)

https://arxiv.org/abs/2606.01009
2•augustocamargo•52m ago•0 comments

Experts sound alarm over Elon Musk's 'coup' that's 'about to rob your 401k'

https://www.rawstory.com/elon-musk-2676979515/
15•xbmcuser•55m ago•1 comments

Shfl

https://shuffle.com?r=OWbDsJFjR1
2•conheohaiyen•56m ago•1 comments

Show HN: Transposify–change Spotify song key from your menubar for singing

https://github.com/evanhu1/transposify
2•evanhu_•1h ago•0 comments

Angry devs vow to flee GitHub Copilot as metered billing takes hold

https://www.theregister.com/ai-and-ml/2026/06/02/github-copilot-users-threaten-exit-as-metered-bi...
6•jay_kyburz•1h ago•2 comments

Neuropixels Opto: combining high-resolution electrophysiology and optogenetics

https://www.nature.com/articles/s41592-026-03076-z
3•bookofjoe•1h ago•0 comments

How to Optimize a CUDA Matmul Kernel for cuBLAS-Like Performance: A Worklog

https://siboehm.com/articles/22/CUDA-MMM
1•Areibman•1h ago•0 comments

Starbucks retired its AI agent just months after deployment

https://finance.yahoo.com/sectors/technology/articles/starbucks-quietly-retired-ai-agent-19225909...
1•cdrnsf•1h ago•2 comments

Show HN: Playing with genomics foundation models | Tutorial/Explainer article

https://dillondesilva.substack.com/p/playing-with-genomics-foundation
1•dillondesilva•1h ago•0 comments

More Time to Think

https://ma.ttias.be/more-time-to-think/
2•nreece•1h ago•0 comments

macOS needs its grid back

https://blog.hopefullyuseful.com/blog/macos-needs-its-grid-back/
53•ranebo•1h ago•25 comments

Interop 2026: Continuing to improve the web for developers

https://web.dev/blog/interop-2026
2•Topfi•1h ago•0 comments

Miasma supply chain attack: malicious code found in RedHat-cloud-services NPM

https://snyk.io/blog/miasma-supply-chain-attack-malicious-code-redhat-cloud-services-npm-packages/
1•jruohonen•1h ago•0 comments

Crystal Nights (2008)

https://www.gregegan.net/MISC/CRYSTAL/Crystal.html
9•rorylawless•1h ago•0 comments