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: A Figma file viewer for the 333 MHz Sony PSP

https://pocketjs.dev/blog/pocket-figma/
2•doodlewind•4m ago•0 comments

Alice and Mirror Alice [short story]

https://forum.effectivealtruism.org/posts/HtcQcQcTGqhpCJoiY/alice-and-mirror-alice-short-story
1•ClosedPistachio•7m ago•0 comments

Temper – A programming language for libraries translated to all the others

https://github.com/temperlang/temper
1•modinfo•8m ago•0 comments

Networking and the Internet, from First Principles

https://fazamhd.com/mental-models/networking/
8•faza•9m ago•0 comments

Show HN: Yqr – jq-style YAML tool that preserves comments and formatting

https://github.com/zoosky/yqr
1•akapaka•12m ago•1 comments

AI takes two-thirds of venture money, and your odds are still one in six

https://okaneland.com/study/ai-startup-raise-math/
2•ermantrout•13m ago•0 comments

Show HN: Hidetext.sh – encrypted pastebin where the server never sees the key

https://hidetext.sh
1•hidetext•15m ago•0 comments

I guess most useful extention on Chrome for readers I downloaded

https://chromewebstore.google.com/detail/readback-–-save-reading-p/pomfhagjojbnfmgmldkpakfggpdp...
1•scionhat•16m ago•0 comments

New How 3 Years of Experimenting Helped Me Build a Powerful Morning Routine

https://pressearn.it.com/blog/2026/03/11/how-can-i-improve-my-memory-for-studying-2/
1•oibbb•19m ago•0 comments

openpilot 0.11.1

https://blog.comma.ai/0111release/
2•tosh•23m ago•0 comments

FCC Approves Test of Space Mirror to Light Night Sky Despite Outcry

https://www.nytimes.com/2026/07/10/climate/fcc-space-mirror.html
3•reaperducer•27m ago•0 comments

Liminality

https://geohot.github.io//blog/jekyll/update/2026/06/23/liminality.html
2•tosh•27m ago•0 comments

Naïve Art

https://en.wikipedia.org/wiki/Na%C3%AFve_art
1•o4c•35m ago•0 comments

Companies are struggling to hire competent software developer

https://twitter.com/GergelyOrosz/status/2071105819089973716
2•USTECH_WORKER•38m ago•1 comments

All Your Favorite Gadgets Are Getting More Expensive Again

https://www.wired.com/story/we-are-in-the-knockout-round-of-price-increases-for-consumer-electron...
1•tosh•39m ago•0 comments

Show HN: AI assistant for Google Chat to translate any file preserving layout

https://workspace.google.com/marketplace/app/anyfile_translator/960750725467
1•robgehring•39m ago•1 comments

Show HN: Parlan – a new programming language for fun

https://github.com/parlan-lang/parlan
1•Santiago-Lopez•41m ago•1 comments

Self-Hosting Umami with Cloudflare, Fly, and Supabase

https://hjerpbakk.com/blog/2026/07/11/self-hosting-umami
1•Sankra•42m ago•0 comments

Einride: Freight Platform Has Enough Early Traction

https://seekingalpha.com/article/4921116-einride-freight-platform-has-enough-early-traction
1•kamil55555•44m ago•0 comments

I built a free Wordle × GeoGuessr for the stock market

https://benginn.github.io/stockguesser/
1•obepozdemir•47m ago•0 comments

Show HN: Andurel Web Framework Releases v1.0.0

https://github.com/mbvlabs/andurel
2•mbvisti•52m ago•0 comments

ChatGPT Work

https://openai.com/chatgpt-work/
2•modinfo•54m ago•0 comments

Gene-edited babies are now closer. The ethical debate is far from settled

https://www.cnn.com/2026/07/08/science/human-embryo-gene-editing
1•giuliomagnifico•56m ago•0 comments

New dinosaur species as long as cricket pitch discovered in Thailand

https://www.bbc.com/news/articles/crely7g8xepo
1•zdkaster•56m ago•0 comments

Element 26.07.3, a Matrix client, adds content scanning infrastructure

https://github.com/element-hq/element-x-ios/releases/tag/release%2F26.07.3
2•nickslaughter02•56m ago•1 comments

Skill nostalgia - The radical reasons why you dream of making things by hand

https://aeon.co/essays/the-radical-reasons-why-you-dream-of-making-things-by-hand
4•pseudolus•57m ago•0 comments

Ofcom Wants American Police to Collect Its Speech Fine

https://reclaimthenet.org/ofcom-wants-american-police-to-collect-its-speech-fine
3•delichon•1h ago•1 comments

Show HN: Axletic – a local-first workout tracker for iPhone

https://www.axletic.app
1•bjar2•1h ago•0 comments

Larry Page: "I think we should look into acquiring (2005) [YouTube]

https://twitter.com/TechEmails/status/1433837480449613839
2•downbad_•1h ago•0 comments

China recovered its first reusable rocket and showed a new way to do it

https://arstechnica.com/space/2026/07/china-recovered-its-first-reusable-rocket-and-showed-a-new-...
9•pseudolus•1h ago•0 comments