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!

Show HN: Data center, power, land, fiber and capacity

https://dchub.cloud/connect
1•dchub•3m ago•0 comments

AI Chief of Staff

https://airbots.ai/
2•vaibagra•7m ago•1 comments

I Built the Largest Commentary in the History of Persian Poetry

https://dev.arman.ac/posts/largest-commentary-in-the-history-of-persian-poetry/
1•armanj•9m ago•0 comments

Ask HN: For professional Mathematicians –- about your career in the future

1•markus_zhang•9m ago•0 comments

Best Areas to Start Your Bali Car Rental: Denpasar, Kuta, Ubud

https://www.thisishiphophq.com.ng/2026/11/best-areas-to-start-your-bali-car-rental-denpasar-kuta-...
1•mrb3njamins•9m ago•0 comments

Health Canada issues warning on rare risk of vision loss with GLP-1 drugs

https://www.cbc.ca/lite/story/9.7435990
2•colinprince•10m ago•0 comments

Show HN: Codeword

https://dawnofthe.dad/codeword
1•userundefined•11m ago•0 comments

Chinese projector brands cut memory specs as sales slump

https://heavytechasia.com/china-projector-sales-slump-as-brands-cut-memory-specs/
1•ilamont•11m ago•0 comments

Atlantic 1866: information and shipping in the age of the telegraph

https://atlantic-1866.com/
1•libraryofbabel•12m ago•0 comments

Why are climate activists so against nuclear?

https://dalewen.substack.com/p/why-are-climate-activists-so-against
3•mpweiher•13m ago•3 comments

Software factories are verifying the wrong thing

https://vivekkaushal.com/blog/software-factories-are-verifying-the-wrong-thing
1•kaushalvivek•13m ago•0 comments

Do We Need Software Factories?

https://vainolo.com/2026/11/16/do-we-need-software-factories/
3•speckx•14m ago•0 comments

Pollution Driven by U.S. Data Centers Causing Early Deaths

https://e360.yale.edu/digest/data-center-pollution-deaths
4•speckx•20m ago•0 comments

GloriART Internet Radio 2.1.0

https://gloriart.net/radio/
1•EmiIIius•24m ago•0 comments

Show HN: Anniversary Calculator

https://www.yourdatingassistant.com/anniversary-calculator
3•SuperCute•24m ago•0 comments

Show HN: <include-content> – Lazy loading with no app JavaScript

https://nucleus.excom.dev/packages/include-content
1•joe-excom•26m ago•1 comments

Wipeout 1987 – A top-down pixel-art tribute to WipEout

https://github.com/lucavix/wipeout1987
3•midzer•26m ago•1 comments

Show HN: Openfal, local image and video generation with a fal-style API

https://openfal.org
4•webbrain•27m ago•0 comments

RadioEchoes

https://radioechoes.com/
1•petethomas•29m ago•0 comments

Slow Ubuntu security response times

https://www.openwall.com/lists/oss-security/2026/11/25/9
3•gslin•29m ago•0 comments

SpaceX gets green light to deploy 1M satellites for data centers in space

https://www.nbcnews.com/science/space/spacex-fcc-authorizes-1-million-satellites-data-centers-spa...
2•cdrnsf•30m ago•1 comments

Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server

https://opensec.in/blog/nfs2root-cve-2026-99362
2•dm•32m ago•0 comments

72-Hour Fasting Can Reset Your Immune System, USC Study Shows

https://scienceinhand.com/72-hour-fasting-can-reset-your-entire-immune-system-usc-study-shows/
2•handfuloflight•32m ago•0 comments

Bpm: Open-source PearlHash miner for Blackwell GPUs

https://github.com/pushsoftnow/blackwell_pearl_miner
1•pushsoftnow•32m ago•0 comments

Trump administration determined Jensen Huang wasn't national security threat

https://www.reuters.com/business/us-justice-department-did-not-open-probe-into-jensen-huang-befor...
1•usernomdeguerre•34m ago•1 comments

Same Streets, Different Empires: The Hidden Narrative of Map Copyright

https://blogs.loc.gov/maps/2026/11/same-streets-different-empires/
1•pavel_lishin•36m ago•0 comments

Slow Ubuntu security response times

https://openwall.com/lists/oss-security/2026/11/25/9
4•baggy_trough•37m ago•0 comments

Breaking the Square-Root Barrier for the Log-Rank Conjecture [pdf]

https://github.com/google-research/google-research/blob/master/cogentic_research_papers/logrank_c...
4•acossta•38m ago•0 comments

From Portability to Conformance: A New Chapter for Layered Vulkan on Apple

https://www.khronos.org/blog/from-portability-to-conformance-a-new-chapter-for-layered-vulkan-on-...
2•MBCook•40m ago•0 comments

YouTube Signal to Noise Ratio

https://yousnr.com/
1•bobcat77•41m ago•0 comments