🤗 Tokenizers.js: A pure JS/TS implementation of today's most used tokenizers
github.com/huggingface/tokenizers.js
huggingface/tokenizers.js