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
v4.0.0
Gpt-tokenizer is a pure JavaScript BPE tokenizer with model metadata and pricing for GPT-5, GPT-4o, o-series, and other OpenAI models. Licensed under MIT, it is very popular in the JavaScript ecosystem with 1.3M weekly downloads.
Key Metrics
- Weekly Downloads
- 1.3M
- Bundle (gzip)
- 996.1 KB
- Last Updated
- Vulnerabilities
- 0
Download Trend
↑4%
Health Score Breakdown
Gpt-tokenizer has an good overall health score of 79/100. Its strongest dimension is popularity (100/100), while quality (50/100) is the area with most room for improvement. This package is in good shape overall.
Maintenance
80
Popularity
100
Quality
50
Security
100
Stability
70
Package Details
- License
- MIT
- Dependencies
- 0
- Uncompressed Size
- 1.9 MB
Keywords
BPEencoderdecodertokenizerGPTGPT-2GPT-3GPT-3.5GPT-4GPT-4.1GPT-4oGPT-5o1o3o4
Free JS Stack Cheatsheet
The best package for every category — one PDF.
Join 500+ devs. No spam.