npm · npm:gpt-tokenizer
gpt-tokenizer active
A pure JavaScript BPE tokenizer with model metadata and pricing for GPT-5, GPT-4o, o-series, and other OpenAI models
The latest stable version of gpt-tokenizer is 4.1.2, published on 2026-11-10. Verified by Vigia on 2026-11-12.
| Latest stable version | 4.1.2 |
|---|---|
| Published | 2026-11-10 18:16:29 UTC |
| Install | npm install gpt-tokenizer@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | beta: 2.0.0-beta.2 latest: 4.1.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 00:43:19 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-11-09 23:52:21 UTC · 2 days ago |
| Stable releases in the last 12 months | 7 |
| Published versions | 41 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
4.1.1 | 2026-11-09 23:52:21 UTC |
4.1.0 | 2026-10-18 05:43:37 UTC |
4.0.4 | 2026-10-18 02:21:31 UTC |
4.0.3 | 2026-10-15 01:15:42 UTC |
4.0.2 | 2026-10-15 01:13:19 UTC |
4.0.1 | 2026-10-15 00:49:55 UTC |
4.0.0 | 2026-08-16 02:34:51 UTC |
3.4.0 | 2025-11-07 20:15:06 UTC |
3.3.0 | 2025-11-07 00:11:16 UTC |
3.2.0 | 2025-10-09 23:12:02 UTC |
3.1.0 | 2025-10-09 22:47:21 UTC |
3.0.1 | 2025-06-13 05:04:11 UTC |
3.0.0 | 2025-06-07 22:51:01 UTC |
2.9.0 | 2025-03-05 02:40:40 UTC |
2.8.1 | 2024-12-09 10:11:50 UTC |
2.8.0 | 2024-12-09 09:43:48 UTC |
2.7.0 | 2024-11-28 01:50:32 UTC |
2.6.2 | 2024-11-13 06:26:12 UTC |
2.6.1 | 2024-11-11 00:38:30 UTC |
2.6.0 | 2024-11-04 05:56:03 UTC |
Showing the 20 most recent of 39 versions. JSON
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of gpt-tokenizer?
The latest stable version of gpt-tokenizer is 4.1.2, published on 2026-11-10. Verified by Vigia on 2026-11-12.
How do I install the latest version of gpt-tokenizer?
Run npm install gpt-tokenizer@latest. The latest stable version is 4.1.2 (verified 2026-11-12).
Is gpt-tokenizer deprecated?
No. gpt-tokenizer is not marked as deprecated in the registry.
Which Node.js version does gpt-tokenizer require?
gpt-tokenizer 4.1.2 does not declare a Node.js version requirement.
Does gpt-tokenizer 4.1.2 have known vulnerabilities?
No known advisories affect gpt-tokenizer 4.1.2 according to the data Vigia checks.
Is gpt-tokenizer still maintained?
gpt-tokenizer published 7 stable releases in the last 12 months; the most recent was 2 days ago. Activity: active.
Observed changes
- Wed Nov 11 2026 00:42:54 GM +0000 (Coordinated Universal Time) — released 4.1.2 → 4.1.2
- ue Nov 10 2026 18:42:48 GMT+0000 (Coordinated Universal Time) — released 4.1.1 → 4.1.2
- ue Nov 10 2026 00:42:30 GMT+0000 (Coordinated Universal Time) — released 4.1.0 → 4.1.1
- Sun Oct 18 2026 06:09:54 GM +0000 (Coordinated Universal Time) — released 4.0.4 → 4.1.0
- Sun Oct 18 2026 04:09:46 GM +0000 (Coordinated Universal Time) — released 4.0.3 → 4.0.4
- hu Oct 15 2026 10:06:33 GMT+0000 (Coordinated Universal Time) — released 4.0.3 → 4.0.3
- hu Oct 15 2026 02:06:25 GMT+0000 (Coordinated Universal Time) — released 4.0.0 → 4.0.3
Related packages
- @solana/buffer-layout-utils
- @styled-system/color
- verdaccio-htpasswd
- react-scroll
- react-native-drawer-layout
- @ucast/core
- @connectrpc/connect-web
- @types/react-copy-to-clipboard
- @resvg/resvg-wasm
- lodash._basevalues
- zstd-codec
- summary
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/gpt-tokenizer) [](https://vigia.coredls.cloud/npm/gpt-tokenizer) [](https://vigia.coredls.cloud/npm/gpt-tokenizer)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/gpt-tokenizer
GET https://vigia.coredls.cloud/v1/packages/npm/gpt-tokenizer/versions/{version}