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!

Can't Be Pumped. Can't Be Dumped. Can't Predict It. Can't Manipulate It

https://tokenmobiles.live
1•elykcim•1m ago•0 comments

Lean Grimoire

https://terrytao.wordpress.com/2026/11/11/lean-grimoire/
1•smilelamp•2m ago•0 comments

Social Proof

https://en.wikipedia.org/wiki/Social_proof
1•o4c•7m ago•0 comments

Compromised GitHub accounts push CI secret stealer to 61k repositories

https://www.aikido.dev/blog/compromised-github-accounts-push-ci-secret-stealer-to-tens-of-thousan...
1•acossta•9m ago•0 comments

Lessons from 59 Linux Kernel Bug Reports

https://forge-blog.github.io/posts/linux-kernel-3-month-lookback/
1•tsgates•12m ago•0 comments

Memory safety bugs in Rust std/core

https://forge-blog.github.io/posts/rust-std-memory-safety/
1•tsgates•13m ago•0 comments

Knotless.dev is now in the app store, manage your repos in your pocket

https://bsky.app/profile/chadtmiller.com/post/3n22eg32p422w
2•toomuchtodo•17m ago•1 comments

Love and Capitalism (1987) [pdf]

https://www.alanmacfarlane.com/TEXTS/LOVE_long.pdf
1•pash•17m ago•0 comments

Mothers' poor sleep in late pregnancy linked to higher obesity risk in children

https://www.eurekalert.org/news-releases/1143803
1•gmays•17m ago•0 comments

Enforcement over Alignment and Steering

https://blog.imjackofitall.com/posts/2026-11-12/
1•imjackofitall•18m ago•0 comments

Exquisite cartoon monster, dino, claw and wing cursors with slime trails

https://chromewebstore.google.com/detail/monster-cursor-cartoon-be/fjgmgjefbipdjbcjhbenanmkhmdjokcl
1•lucakk•22m ago•0 comments

A living 3D aquarium in the browser: fish, plants, caustics and light shafts

https://chromewebstore.google.com/detail/aqua-tank-·-3d-ecosystem/mbimfpcdnpgnlileogjhhhncjbogkoii
1•lucakk•23m ago•0 comments

Subscription Sharing usage limit on app blocking OpenAI model usage after reset

https://github.com/openai/codex/issues/51043
1•steadyfall04•24m ago•0 comments

United Airlines Is Banning AI Bots from Booking Flights

https://www.wsj.com/tech/ai/united-airlines-is-banning-ai-bots-from-booking-flights-5b514b38
2•fortran77•27m ago•2 comments

Risk Factors for Dementia (2024)

https://www.thelancet.com/infographics-do/dementia-risk
1•debo_•27m ago•0 comments

Critical RCE Vulnerability in Apache HTTP Server

https://www.wiz.io/blog/cve-2026-119618-rce-apache-http-server-vulnerability
2•soheilpro•28m ago•0 comments

Can dogs smell time? Ask Donut the dog (2022)

https://www.npr.org/sections/goatsandsoda/2022/12/22/1139781319/can-dogs-smell-time-just-ask-donu...
1•thunderbong•28m ago•1 comments

Median net worth at 30–33: $68K in the U.S., $88K in New York, $99K in SF

https://www.keepingup.com/benchmarks/net-worth/city/new-york
2•jpmulhausen•29m ago•0 comments

Can commercial stage-gates keep enterprise AI pilots out of procurement stalls?

https://pilotmap.bizmasterynow.com/
1•lrmorley•31m ago•0 comments

A Meta Compiler: A framework for building consistent but flexible code

https://github.com/jpdagostin0/amc
1•jpdagostino•31m ago•0 comments

We're finding new animals faster than science can name them

https://blue-continuum.com/the-strangers-below
1•dnetesn•35m ago•0 comments

Nvidia board considering ousting Jensen after alleged second affair

https://www.ft.com/content/d3838274-a055-4d5d-a1ff-48f2979a08f0
1•soundworlds•38m ago•1 comments

Show HN: gethome – a local-first smart home hub with AI

https://github.com/gethome-inc/gethome-hub
1•geragalanin•38m ago•0 comments

Test applications against AWS locally with AWS Emulator

https://aws.amazon.com/blogs/aws/test-your-applications-against-aws-locally-with-aws-emulator/
2•jonbaer•39m ago•1 comments

JR East to introduce touchless ticket gates in spring 2028

https://www.japantimes.co.jp/business/2026/11/11/companies/jr-east-ticket-gate/
2•e12e•42m ago•0 comments

Build a legal document conflict detector

https://isaacus.com/blog/build-a-legal-document-conflict-detector
2•ubutler•44m ago•0 comments

Despite human sacrifice after El Niño, ancient societies generally peaceful

https://www.frontiersin.org/news/2026/11/09/despite-sacrificing-people-catastrophic-el-nino-flood...
1•gumby•45m ago•1 comments

Securing Rust's supply chain with an extended standard library

https://kerkour.com/rust-supply-chain-security-stdx
1•crabmusket•45m ago•0 comments

MaldocTrace: Emulate VBA and Excel 4.0 macros in a simulated Windows environment

https://github.com/debugactiveprocess/MaldocTrace
1•ironbits•45m ago•0 comments

Show HN: Motion Debugger – A browser critic for AI slop

https://github.com/ShadowKingYT444/motion-debugger
1•ShadowKingYT444•45m ago•0 comments