frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Scroll Animation in Pure CSS

https://www.joshwcomeau.com/animation/scroll-driven-animations/
1•zane__chen•36s ago•0 comments

NetBSD Wii IP6 Webserver

http://wii.sjmulder.nl/
1•jaypatelani•1m ago•0 comments

The 'dangerous' promise of a techno-utopian future

https://www.cbc.ca/radio/ideas/tech-billionaires-ai-utopia-1.7440698
1•lbrito•2m ago•0 comments

Disappearing Polymorph

https://en.wikipedia.org/wiki/Disappearing_polymorph
1•ZeljkoS•6m ago•0 comments

Teaching Claude Why

https://alignment.anthropic.com/2026/teaching-claude-why/
1•cebert•8m ago•0 comments

How Do You Know If a Skill Is Any Good? LLM-as-Judge Scoring

http://instructionmanuel.com/scoring-skills-with-llm-as-judge
1•eigenBasis•10m ago•0 comments

US judge will not rubber-stamp Elon Musk settlement with SEC

https://www.reuters.com/legal/government/us-judge-will-not-rubber-stamp-elon-musk-settlement-with...
2•tartoran•12m ago•0 comments

Next.js May 2026 security release

https://vercel.com/changelog/next-js-may-2026-security-release
1•bcye•13m ago•0 comments

Onboarding Is a Hazing Ritual and You Call It Agile

https://dhung.dev/blog/onboarding-hazing-ritual
1•birdculture•14m ago•0 comments

Judge rules DOGE cancellation of humanities grants was unconstitutional

https://apnews.com/article/trump-doge-humanities-funding-cuts-dda1383436c41be08da3bbf7cc08818e
4•1659447091•15m ago•2 comments

NixOS and Secrets

https://isabelroses.com/blog/nixos-and-secrets/
2•isabelroses•15m ago•0 comments

Show HN: Signegy - free in-browser PDF toolkit, no signup

https://signegy.com/
1•DiligentPeasant•15m ago•0 comments

Ask HN: What kind of computer language will LLM use?

1•folderquestion•18m ago•2 comments

Anthropic weighs deal for near $1T valuation as revenue surges

https://www.ft.com/content/a40cafcc-0fa4-4e70-9e24-90d826aea56d
3•alecco•20m ago•1 comments

I made Meta's TRIBE v2 watch YouTube in real time

https://www.youtube.com/watch?v=I4oGPLMVoC0
1•merlin_mimer•20m ago•0 comments

Compound drivers of Antarctic sea ice loss and Southern Ocean destratification

https://www.science.org/doi/10.1126/sciadv.aeb0166
2•littlexsparkee•21m ago•0 comments

General Motors fined $12.75M for selling location data

https://privacy.ca.gov/2026/05/when-it-comes-to-data-privacy-consumers-must-be-in-the-drivers-sea...
2•jboggan•22m ago•1 comments

Show HN: Tuxedo – A fast, keyboard-driven terminal UI for todo.txt

https://github.com/webstonehq/tuxedo
1•mikenikles•22m ago•1 comments

Scaling Trusted Access for Cyber with GPT‑5.5 and GPT‑5.5‑Cyber

https://openai.com/index/gpt-5-5-with-trusted-access-for-cyber/
2•allanrbo•27m ago•0 comments

55 Hours of Codex /Goal: What a Port Task Teaches You About Autonomous Loops

https://vexjoy.com/posts/55-hours-of-codex/
1•AndyNemmity•29m ago•0 comments

Discord Automates ScyllaDB Clusters at Scale

https://discord.com/blog/how-discord-automates-scylladb-clusters-at-scale
3•cyndunlop•30m ago•0 comments

Use of the ML-DSA Signature Algorithm in the Cryptographic Message Syntax

https://datatracker.ietf.org/doc/rfc9882/
1•mooreds•31m ago•0 comments

Meta Shuts Down End-to-End Encryption for Instagram Messaging

https://www.pcmag.com/news/meta-shuts-down-end-to-end-encryption-for-instagram-dms-messaging
15•tcp_handshaker•33m ago•3 comments

Pagaya investor seeks refund, claiming AI real estate fund wiped 80% of capital

https://www.calcalistech.com/ctechnews/article/3a0p63mof
3•tcp_handshaker•34m ago•0 comments

ASML to invest $1.5B in Mistral at over $11B valuation

https://www.calcalistech.com/ctechnews/article/bycca4sclg
3•tcp_handshaker•35m ago•0 comments

Try Out AgentBase

https://useagentbase.com/
2•justin22a•36m ago•2 comments

Fixing Markdown Syntax Is a Nightmare

https://mdview.io/s/fixing-markdown-syntax-is-a-nightmare
1•Igor_Wiwi•37m ago•1 comments

Android application to switch display into side-by-side VR mode

https://github.com/dmikushin/android-native-sbs
2•Eridanus2•39m ago•0 comments

Incremental History Searching with .inputrc

https://codeinthehole.com/tips/the-most-important-command-line-tip-incremental-history-searching-...
1•kamaraju•40m ago•0 comments

What's a Lakestream?

https://blog.2minutestreaming.com/
2•sijieg•42m ago•0 comments