Ultra-lightweight chunker library with emoji support
I kept rewriting the same array.slice(i, i + n) logic in every project. Eventually, I decided to stop and just make a utility. Chonkify is a small (~870B), zero-dependency JS/TS library for chunking any kind of data: - Works with Array, String, Buffer, Set, Map, Array-like, TypedArray - Handles AsyncIterable (great for batching streams) - Unicode-safe (correctly handles grapheme clusters, emoji, etc.) - ESM-first, TypeScript-ready I mostly made it for myself, but figured others might find it useful too. Would love feedback!
Ultra-lightweight chunker library with emoji support launched on June 3, 2025 with 19 votes, #820 of 7,999 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 1 year on.
In plain words
Chonkify is a lightweight JavaScript and TypeScript library for dividing data into chunks. It works with arrays, strings, buffers, sets, maps, and async iterables, making it useful for batching streams and processing large datasets. The library correctly handles Unicode characters and emoji, weighs approximately 870 bytes, has no dependencies, and is built for modern ESM environments. It was created to eliminate repetitive chunking logic across projects.
written from the facts on this page · September 2026
From the sources
Contribute to ushakov-igor/chonkify development by creating an account on GitHub.
npm install chonkify ✨ Features Works with everything: Array, String, Buffer, Set, Map, Array-like, TypedArray Supports AsyncIterable ( for await ) UTF-16 code points and Unicode graphemes support 👨👩👧👦🏳️🌈 Minimal size: core just 1103 bytes, entire package ~7 kB Zero dependencies ESM-first, TypeScript-ready 🧪 Usage import { chonk , chonkAsync , chonkGraphemes } from 'chonkify' ; // Basic examples chonk ( [ 1 , 2 , 3 , 4 ] , 2 ) ; // [[1, 2], [3, 4]] chonk ( 'abcdef' , 2 ) ; // ['ab', 'cd', 'ef'] // Standard chonk uses UTF-16 code points (like standard JS) chonk ( '👍👌✌️😀' , 2 ) ; // May split emojis incorrectly // Use chonkGraphemes for proper emoji support chonkGraphemes (…from github.com
Does a similar job
all alternatives →
Chonkie – A Fast, Lightweight Text Chunking Library for RAG2024 · github.com · ▲199I built Chonkie because I was tired of rewriting chunking code for RAG applications. Existing libraries were either too bloated (80MB+) or too basic, with no middle ground. Core features: - 21MB default install vs 80-171MB alternatives - 33x faster token chunking than popular alternatives - Supports multiple chunking strategies: token, word, sentence, and semantic - Works with all major tokenizers (transformers, tokenizers, tiktoken) - Zero external dependencies for basic functionality Technical optimizations: - Uses tiktoken with multi-threading for faster tokenization - Implements…
- ACAdvanced Chunking in JavaScript/TypeScript with Chonkie2025 · ▲10
Hi HN, We’re Shreyash and Bhavnick. We built Chonkie, an open-source library for advanced chunking and embedding of text and code. It was previously Python-only, but we just released a TypeScript version: https://github.com/chonkie-inc/chonkie-ts Many AI projects in JS/TS (like those using Vercel's AI SDK or Mastra) rely on basic text splitters. But better chunking = better retrieval = better performance. That’s what Chonkie is built for. Current native chunkers (in TS): - Code Chunker – handles Python, TypeScript, etc. - Recursive Chunker – rule-based, hierarchical…
Boring Avatars2021 · boringavatars.com · ▲494JavaScript library to generate SVG avatars based on text
- CJChunkify.js – A functional API to unblock your JavaScript thread2015 · yangmillstheory.github.io · ▲29

Chonky – a neural approach for text semantic chunking2025 · github.com · ▲169TLDR: I’ve made a transformer model and a wrapper library that segments text into meaningful semantic chunks. The current text splitting approaches rely on heuristics (although one can use neural embedder to group semantically related sentences). I propose a fully neural approach to semantic chunking. I took the base distilbert model and trained it on a bookcorpus to split concatenated text paragraphs into original paragraphs. Basically it’s a token classification task. Model fine-tuning took day and a half on a 2x1080ti. The library could be used as a text splitter module in a RAG system or…
More work this month
the category →
Endless lofi beats composed live in your browser, over pixel-art nights in Paris, Tokyo, New York, Hong Kong, Sydney, San Francisco and more. Free, no sign-up.
Work · 26d ago · loficities.com
Smooth Recorder▲257Mac screen recordings that look edited when you hit stop
Work · 20d ago · smoothrecorder.com


Work · 14d ago · readrare.com
Source: Show HN post ↗
Launched alongside, June 2025
the whole month →- IM
Hey HN! Pilots everywhere are required to keep a logbook of all their flying hours, aircraft, airports, and so on. Since I track everything digitally (some people still just use paper logbooks!), I put together some data visualizations and a few 3D globes to show my flying history. This globe is probably my favourite so far: https://jameshard.ing/pilot/globes/all If you’ve got ideas for other graphs or ways to show this kind of data, I’d love to hear them!
Life & fun · 2025 · jameshard.ing

Stunning presentations with AI. No design skills required.
AI · 2025 · chroniclehq.com

Build native mobile apps for iOS and Android without code.
Dev tools · 2025 · bble.io


All your connections, across all your socials.
AI · 2025 · pally.com

I was the main contributor to workout.lol, an open-source fitness app to easily build a workout routine. The project had traction (1.4k GitHub stars, 95 forks, ~20K visits/month), but was eventually sold due to video licensing hurdles. The new owner stopped maintaining it, and the repo went abandoned. Over the next 9 months, I sent 15 emails to try to save it : no replies. Feature requests & issues were ignored. The community was left with a "broken" tool let's say. I couldn't just let it die So I built the new version from scratch with the same open-source spirit, but a better…
Dev tools · 2025 · github.com