Graphemer: Unicode Character Splitter

JSON →
library 1.4.0 ·javascript
verified May 27, 2026

Graphemer is a JavaScript and TypeScript library designed to accurately split strings into user-perceived characters, also known as 'extended grapheme clusters' in Unicode terminology. It addresses the complexities of Unicode, where a single visual character can be composed of multiple JavaScript characters (e.g., emojis, combining marks), which standard string operations often fail to handle correctly. The library is currently stable at version 1.4.0, which supports Unicode 15 and below. It follows a release cadence tied to new Unicode versions, typically updating annually. Key differentiators include its adherence to UAX #29's Default Grapheme Cluster Boundary rules, providing a robust solution for internationalization (i18n) and accurate character counting that standard JavaScript methods like `String.prototype.length` or simple `String.prototype.split('')` cannot achieve, especially with complex scripts and emoji sequences.

total hits 36
actors 7 distinct systems
last hit 19h ago human
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
Search engines
1
Humans
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇦🇺 Australia · 🇩🇪 Germany · 🇫🇷 France