frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Fast and Quality Code Chunking with Chonkie

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

Statement from Federal Reserve Chair

https://www.federalreserve.gov/newsevents/speech/powell20260111a.htm?mod=ANLink
1•nikhizzle•1m ago•0 comments

Agnotology

https://en.wikipedia.org/wiki/Agnotology
1•bookofjoe•1m ago•0 comments

Show HN: Free Developer Tools – JSON, Base64, URL Encoder

https://www.zeroformat.com/
1•vanshitmdotcom•3m ago•0 comments

Chrome Featured Extension Is a Scraper Network

https://rb.ax/blog/chrome-featured-extension-is-actually-a-scraper-network/
2•rbax•3m ago•1 comments

Recorder: The Marion Stokes Project

https://recorderfilm.com/
1•thunderbong•4m ago•0 comments

The oceans just keep getting hotter

https://arstechnica.com/science/2026/01/the-oceans-just-keep-getting-hotter/
1•mindracer•5m ago•0 comments

Best Practices for Coding with Agents

https://cursor.com/blog/agent-best-practices
1•gmays•6m ago•0 comments

Ask HN: What are you proud of about doing for you health and wellness regularly?

2•nemath•8m ago•1 comments

Why Ontario Digital Service couldn't procure '98% safe' LLMs (15M Canadians)

https://rosetta-labs-erb.github.io/authority-boundary-ledger/
3•csemple•9m ago•1 comments

Financial Report Downloader

https://discdvl.com
1•cyrve•9m ago•0 comments

AI can now 'see' optical illusions. What does it tell us about our own brains?

https://www.bbc.com/future/article/20251218-how-ai-is-shedding-new-light-on-optical-illusions
1•andsoitis•10m ago•0 comments

GCC trunk development stage 4: regression fixes only

https://gcc.gnu.org/pipermail/gcc/2026-January/247347.html
1•edelsohn•11m ago•0 comments

Readers' favorite nonfiction reads of 2025 (voting ongoing)

https://shepherd.com/bboy/2025/nonfiction
2•bwb•14m ago•1 comments

Nanocode: Minimal Claude Code alternative. Single Py file, zero dependencies

https://github.com/1rgs/nanocode
1•simonpure•14m ago•0 comments

Malaysia and Indonesia block Musk's Grok due to nonconsensual sexual content

https://www.cnbc.com/2026/01/12/malaysia-indonesia-block-elon-musks-grok-obscene-non-consensual-c...
2•riffraff•15m ago•0 comments

Show HN: Reality Check – Like, dislike, review, fact-check social media posts

1•AndreiBargan•16m ago•0 comments

Keychron's Nape Pro turns your keyboard into a laptop‑style trackball rig

https://www.yankodesign.com/2026/01/08/keychrons-nape-pro-turns-your-mechanical-keyboard-into-a-l...
9•tortilla•17m ago•0 comments

Germany Considers Broader Legal Authority for Internet Surveillance

https://reclaimthenet.org/germany-bnd-surveillance-law-expansion-de-cix-data-retention-hacking
1•barbacoa•17m ago•0 comments

AI Bulls Are Bringing Us Hell

2•zerosizedweasle•19m ago•1 comments

Sodium-ion batteries: 10 Breakthrough Technologies 2026

https://www.technologyreview.com/2026/01/12/1129991/sodium-ion-batteries-2026-breakthrough-techno...
1•fleahunter•19m ago•0 comments

'Office Is Dead': Microsoft Decision Confuses 400M Users

https://www.forbes.com/sites/zakdoffman/2026/01/11/office-is-dead-microsoft-decision-confuses-400...
1•CharlesW•20m ago•1 comments

Hyper 8:Static site generator for video publishing

https://simonrepp.com/hyper8/
1•nogajun•20m ago•0 comments

Researchers Beam Power from a Moving Airplane

https://spectrum.ieee.org/wireless-power-movin-airplane
1•pseudolus•20m ago•0 comments

Monitoring Training Adaptation and Recovery Using Heart Rate Variability

https://www.mdpi.com/1424-8220/26/1/3
1•PaulHoule•21m ago•0 comments

You're falling behind. It's time to catch up

https://www.youtube.com/watch?v=Z9UxjmNF7b0
1•yshrestha•22m ago•1 comments

System Design Interview: An insider's guide (Alex Xu) [pdf]

https://bytes.usc.edu/~saty/courses/docs/data/SystemDesignInterview.pdf
1•martianlantern•22m ago•0 comments

Netflix's $82.7B rags-to-riches story

https://fortune.com/2026/01/10/netflix-warner-bros-paramount-acquisistion-blockbuster-reed-hastin...
1•andsoitis•23m ago•0 comments

Built from First Principles: Why copper-rs works well to code robots with AI

https://www.copper-robotics.com/whats-new/built-from-first-principles-why-copper-rs-works-so-well...
1•gbin•23m ago•1 comments

Show HN: Geoguess Lite – open-source, subscription free GeoGuessr alternative

https://geoguesslite.com
2•spider-hand•24m ago•0 comments

Not All Browser APIs Are "Web" APIs

https://polypane.app/blog/not-all-browser-apis-are-web-apis/
2•bigblind•25m ago•0 comments