Package note
gpt-tokenizer
A pure JavaScript BPE tokenizer with model metadata and pricing for GPT-5, GPT-4o, o-series, and other OpenAI models
A pure JavaScript BPE tokenizer with model metadata and pricing for GPT-5, GPT-4o, o-series, and other OpenAI models
Scroll the table horizontally to compare packages. Each fact includes its source and limits.
| Fact | gpt-tokenizer |
|---|---|
| Analyzed version | 4.1.2 |
| npm downloads | 3,369,042 Source2026-11-29 through 2026-12-05 (inclusive) Retrieved: 2026-12-06T07:28:19.214Z All versions; includes CI and repeat downloads, not unique users. |
| Browser bundle | 1009.5 KB gzip 2.0 MB minified Bundlephobia minified + gzip Version 4.1.2 SourceRetrieved: 2026-12-06T07:28:19.308Z Synthetic default-entry browser bundle; imports, plugins, runtime and bundler settings change app output. |
| Version released | 2026-11-10T18:16:29.837Z Version 4.1.2 SourceRetrieved: 2026-12-06T07:28:19.072Z Publisher-declared metadata; not an independent code audit. |
| Registry modified | 2026-11-10T18:16:30.276Z Version 4.1.2 SourceRetrieved: 2026-12-06T07:28:19.072Z Registry document modification, not necessarily a code release. |
| Declared license | MIT Version 4.1.2 SourceRetrieved: 2026-12-06T07:28:19.072Z Publisher-declared metadata; not an independent code audit. |
| Registry-declared types | ./esm/main.d.tsVersion 4.1.2 SourceRetrieved: 2026-12-06T07:28:19.072Z Registry-declared paths only; files, correctness and runtime compatibility have not been verified. Missing paths mean unknown. |
| npm unpacked size | 26.8 MB Version 4.1.2 SourceRetrieved: 2026-12-06T07:28:19.072Z npm unpacked archive size; not a browser bundle measurement. |
| Security advisories | Not checked Retrieved: Unavailable No advisory service is queried. Not checked does not mean safe. |
Analyzed versions follow the latest npm dist-tag at acquisition. Compatibility has not been verified.
- gpt-tokenizer: A pure JavaScript BPE tokenizer with model metadata and pricing for GPT-5, GPT-4o, o-series, and other OpenAI models
The table records gpt-tokenizer version 4.1.2. Download counts cover all versions during the stated period. Read each source with its retrieval time and limits. Missing declarations mean unknown. Security advisories are not checked, and no composite health or quality score is assigned.
Free JS Stack Cheatsheet
The best package for every category — one PDF.
Join 500+ devs. No spam.