frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

1•snyy•10mo 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!

Why Little Was Done to Head Off Oil's Strait of Hormuz Problem

https://www.nytimes.com/2026/03/14/business/energy-environment/iran-strait-hormuz-oil-middle-east...
1•mooreds•2m ago•0 comments

Convert JPG Logos to SVG – Stay Sharp at Any Size

https://oneweeb.com/jpg-to-svg.html
1•Zepubo•3m ago•0 comments

Kalshi for People

https://vouchmarket.polsia.app/
1•Marcoven•5m ago•0 comments

Show HN: I built a Chrome extension to block Instagram's feed and keep only DMs

https://chromewebstore.google.com/detail/mindful-instagram/neiedkilefemabefjohneedlemngfdjh
1•Shivam_Dewan•6m ago•0 comments

Piqe – AI marketing co-founder that handles community engagement while you code

https://getpiqe.com
1•tsjose•6m ago•1 comments

Linux Page Faults, MMAP, and userfaultfd for faster VM restores

https://www.shayon.dev/post/2026/65/linux-page-faults-mmap-and-userfaultfd/
2•shayonj•7m ago•0 comments

The State Policy Network

https://www.sourcewatch.org/index.php?title=State_Policy_Network
1•jamesgill•12m ago•0 comments

Locked Up but Not Locked Out: iOS App Pentesting Without Jailbreak

https://www.anvilsecure.com/blog/locked-up-but-not-locked-out-ios-app-pentesting-without-jailbrea...
1•depierre•16m ago•0 comments

AI Adoption Rapidly Growing in Public Sector

https://www.gallup.com/workplace/702983/adoption-rapidly-growing-public-sector.aspx
1•hn_acker•17m ago•0 comments

GitHome: Local Git repository management at scale

https://crates.io/crates/githome
1•agentk9•19m ago•0 comments

Patrons of Journalism

https://www.hamiltonnolan.com/p/patrons-of-journalism
2•thm•21m ago•0 comments

TTL Exceeded – In Memory of FX

https://phenoelit.de/fx.html
2•_tk_•22m ago•0 comments

50 Years of Thinking Different

https://www.apple.com/50-years-of-thinking-different/
2•mndren•23m ago•0 comments

Show HN: I built a heartbeat and uptime monitoring for developers

https://pulsemon.dev/
3•ramgale•24m ago•0 comments

Sunsetting Jazzband

https://jazzband.co/news/2026/03/14/sunsetting-jazzband
6•mooreds•24m ago•1 comments

Can you see Earth's shadow?

https://www.livescience.com/space/can-you-see-earths-shadow
2•Brajeshwar•25m ago•0 comments

My Claude Settings

https://twitter.com/JoshuaBaer/status/2032666249465942208
2•tosh•27m ago•0 comments

Knowing What Not to Animate

https://micro.bossadizenith.me/writing/animations
3•handfuloflight•28m ago•0 comments

Show HN: I made a tool to pixelate image

https://www.pixelateimage.co/
3•atharvtathe•28m ago•1 comments

The Pentagon Went to War with Anthropic. What's Really at Stake?

https://www.newyorker.com/news/annals-of-inquiry/the-pentagon-went-to-war-with-anthropic-whats-re...
2•mitchbob•30m ago•1 comments

Show HN: VibeNVR – Open-source self-hosted NVR with REST API and Homepage widget

https://github.com/spupuz/VibeNVR
2•spupuz•30m ago•0 comments

Team Human

https://onTeamHuman.com
1•andytratt•32m ago•0 comments

North Korea: secretive nation lands in spotlight at Women's Asian Cup

https://www.theguardian.com/sport/2026/feb/23/north-korea-womens-national-football-team-asian-cup...
1•PaulHoule•32m ago•0 comments

The ArXiv is separating from Cornell University, and is hiring a CEO for 300k/yr

https://mathstodon.xyz/@johncarlosbaez/116223948891539024
4•binsquare•32m ago•2 comments

AVL Tree

https://en.wikipedia.org/wiki/AVL_tree
1•Brysonbw•34m ago•0 comments

At a CNY class, locally-developed tech lets students hear earthworm brain waves

https://www.localsyr.com/education/at-a-central-new-york-classroom-locally-developed-tech-lets-st...
1•rolph•35m ago•0 comments

Due Processing: As Lawyers Go All-In on AI, the Courts Play Catch-Up

https://www.rstreet.org/commentary/due-processing-as-lawyers-go-all-in-on-ai-the-courts-play-catc...
1•hn_acker•35m ago•0 comments

The United States of Eugenics

https://conversationalist.org/2025/04/17/united-states-america-eugenics-politics-policy-race-scie...
5•jamesgill•37m ago•0 comments

AI Gets Wrong Woman Jailed for Six Months, Life Ruined

https://www.youtube.com/watch?v=mzS7dmCUzcQ
52•vaxman•40m ago•16 comments

An enormous brain in a jar? NASA's best space telescope saw something real weird

https://www.skyatnightmagazine.com/news/exposed-cranium-nebula-webb
1•rolph•41m ago•0 comments