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!

RAMTorrent: RAM-only BitTorrent downloader with a VPS

https://gitlab.com/danbarry16/ramtorrent
1•bArray•2m ago•1 comments

AWS-LC is a general-purpose cryptographic library

https://github.com/aws/aws-lc
1•mooreds•2m ago•0 comments

"I Know Better Than You": Evaluating Silent Instruction Overrides Across Models

https://arxiv.org/abs/2612.03914
1•mfiguiere•3m ago•0 comments

What one pharmacy owner taught me that 2,400 cold emails couldn't

https://markuprx.com/blog/markuprx-postmortem
1•muaviausmani•7m ago•0 comments

How Could AI Kill All Humans?

https://www.astralcodexten.com/p/how-could-ai-kill-all-humans
1•eatitraw•7m ago•0 comments

Arcus, a new frontier model for customer conversations, and adherence-bench

https://decagon.ai/blog/arcus-and-adherence-bench
1•gmays•8m ago•0 comments

Anthropic Researcher: "All Humans Will Become Permanently Unemployable" [video]

https://www.youtube.com/watch?v=OPZCQk8jF-I
1•jminnl•9m ago•0 comments

NIH Director's Statement on NIH Support of Preprints

https://www.nih.gov/about-nih/nih-director/statements/nih-directors-statement-nih-support-preprints
1•bookofjoe•10m ago•0 comments

Which AI Self Do You Mean?

https://dumbideas.xyz/posts/which-ai-self-do-you-mean/
1•omegastick•15m ago•0 comments

Screw Me

https://screw-me.dev/
1•rodmena•16m ago•0 comments

Quit Posing for Video Titles, You Lunatics

https://galacticman.bearblog.dev/quit-posing-for-video-titles-you-lunatics/
2•hackerbeat•20m ago•0 comments

Show HN: Steal My Bitcoin (Again)

https://stealmybitcoin.com/index.html
6•cloudlandsdev•21m ago•0 comments

Newly Discovered Minor Planet Given Cherokee Name

https://nativenewsonline.net/education/newly-discovered-minor-planet-given-cherokee-name/
1•PaulHoule•21m ago•0 comments

Precision in type system design (or the Option type as an anti-pattern)

https://dashbit.co/blog/precision-in-type-system-design
2•birdculture•21m ago•0 comments

Show HN: Importing into Apple Journal by writing to its Core Data store

https://github.com/gabrieljoel/apple-journal-import
1•tatsuhirosatou•25m ago•0 comments

Show HN: Pqkit – scan a codebase for crypto a quantum computer will break

https://github.com/loperdev/pqkit
1•devvyas04•27m ago•0 comments

Secret Elliptic Curveballs

https://www.netmeister.org/blog/curveballs.html
2•zdw•27m ago•0 comments

No Fire Yet, but Plenty of Smoke Around NIST's P-256 Elliptic Curve

https://www.bitsight.com/blog/is-nist-p-256-elliptic-curve-broken
2•geox•28m ago•0 comments

Why did we not use REST HATEOAS instead of MCP

https://fieldmappings.com/blog/2026/hateoas-vs-mcp-the-affordances-were-always-there
2•joeyguerra•30m ago•1 comments

Ask HN: When generating TLS certs is genrsa -aes256 ok?

1•scrubs•30m ago•0 comments

An Introduction to Hackpacking

https://davidbieber.com/snippets/2026-10-19-intro-to-hackpacking/
3•Olshansky•31m ago•0 comments

Show HN: Crown Daily – three new skill games a day, the same for everyone

https://crowndaily.io/
1•holotapcards•32m ago•0 comments

NFS Porsche Unleashed Rewritten in Rust

https://github.com/Second-Boot/Open-Unleashed/
1•imp0cat•33m ago•2 comments

Future Sea Level Rise

https://undark.org/2026/11/27/sea-level-rise/
2•EA-3167•33m ago•0 comments

Killed Any Mutants Lately?

https://entropicthoughts.com/killed-any-mutants-recently
1•ibobev•34m ago•0 comments

Stable element IDs in blog article lists

https://entropicthoughts.com/stable-element-ids-in-article-list
1•ibobev•34m ago•0 comments

Project Gutenberg offline after vandal turns book pages into smut link farm

https://www.theregister.com/security/2026/12/04/project-gutenberg-stuck-offline-after-vandal-turn...
1•Bender•35m ago•0 comments

Attackers batter open source medical record system a day after bugs disclosed

https://www.theregister.com/security/2026/12/04/attackers-batter-open-source-medical-record-syste...
1•Bender•36m ago•0 comments

Riars – Open-source radio automation in Rust with a built-in FM/RDS encoder

https://github.com/thorkelstlkr/RIARS-Renou-Integral-Automation-Radio-Solution-
1•thorkel•37m ago•0 comments

US official: China tested a new kind of space weapon nobody else has

https://arstechnica.com/space/2026/12/chinas-military-conducted-the-first-ever-test-of-a-new-kind...
4•Bender•40m ago•0 comments