npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@plurnk/plurnk-mimetypes-tokenizers

v1.0.5

Published

Bundled LLM tokenizer vocabularies (tokenizer.json set) for @plurnk/plurnk-mimetypes' tokenizer seam — exact token counting for window math.

Readme

@plurnk/plurnk-mimetypes-tokenizers

Bundled LLM tokenizer vocabularies for @plurnk/plurnk-mimetypes' tokenizer seam (SPEC §19) — exact token counting for context-window math.

install

npm i @plurnk/plurnk-mimetypes-tokenizers

Opt-in artifact package: the framework resolves it lazily by name; absent, the seam degrades to a chars/2 upper bound with a tokenizer_unavailable telemetry event — never a silent estimate.

surface

  • resolve(modelRef) → Promise<{ countTokens(text): Promise<number>, tokenizerId } | null>null when no bundled vocabulary matches the ref (a data gap the seam degrades on, never a close-enough guess).
  • tokenizerId — the vocab identity (tokenizer.json sha256 prefix), never a model id: refs sharing a vocabulary share the id, so a vocab-preserving model swap never invalidates stored counts keyed on (content_hash, tokenizer_id).
  • countTokens counts content tokens (add_special_tokens: false, the llama-server /tokenize semantics); BOS/EOS/chat-template framing is per-request overhead the host budgets separately.
  • dispose() — drop constructed engines; re-lazy-init on next resolve.

what's in here

One universal engine (@huggingface/tokenizers — WordPiece, byte-BPE, SentencePiece-BPE, Unigram from tokenizer.json) plus ten bundled vocabularies under the pin/sha256 discipline (tokenizers/manifest.json; npm run verify:tokenizers checks byte-exactness, wired into prepublishOnly):

| family | routes refs like | source (ungated) | |---|---|---| | o200k | gpt-4o, gpt-4.1, gpt-5, o1/o3/o4 | Xenova/gpt-4o | | cl100k | gpt-4, gpt-3.5 | Xenova/gpt-4 | | llama3 | llama-3.x, llama-4 | NousResearch/Meta-Llama-3.1-8B | | llama2 | llama-2, bare llama | NousResearch/Llama-2-7b-hf | | gemma | gemma-* | unsloth/gemma-2-9b | | deepseek | deepseek-* | deepseek-ai/DeepSeek-V3 | | qwen | qwen*, qwq | Qwen/Qwen2.5-7B-Instruct | | mistral | mistral, mixtral, ministral, codestral | unsloth/mistral-7b-instruct-v0.3 | | bert | bert-* (not roberta) | google-bert/bert-base-uncased | | t5 | t5, flan-t5 | google-t5/t5-small |

Hermetic: only local files are read, never a network. Missing families are an issue away — the registry extends by adding data, never by guessing.

license

MIT. Bundled vocabularies are built from their upstream repos (pinned commits in tokenizers/manifest.json); see each for attribution.