Vigia

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 version4.1.2
Published2026-11-10 18:16:29 UTC
Installnpm install gpt-tokenizer@latest
Requires (engines)none declared
Peer dependencies—
Dist-tagsbeta: 2.0.0-beta.2 latest: 4.1.2
LicenseMIT
Advisories on latest versionnone known
Last verified2026-11-12 00:43:19 UTC
Sourcesapi.deps.dev, registry.npmjs.org, registry.npmjs.org

Maintenance

Activityactive
Last stable release2026-11-09 23:52:21 UTC · 2 days ago
Stable releases in the last 12 months7
Published versions41

Heuristic based only on release dates; it does not measure issue or security response times.

Version history

VersionPublished
4.1.12026-11-09 23:52:21 UTC
4.1.02026-10-18 05:43:37 UTC
4.0.42026-10-18 02:21:31 UTC
4.0.32026-10-15 01:15:42 UTC
4.0.22026-10-15 01:13:19 UTC
4.0.12026-10-15 00:49:55 UTC
4.0.02026-08-16 02:34:51 UTC
3.4.02025-11-07 20:15:06 UTC
3.3.02025-11-07 00:11:16 UTC
3.2.02025-10-09 23:12:02 UTC
3.1.02025-10-09 22:47:21 UTC
3.0.12025-06-13 05:04:11 UTC
3.0.02025-06-07 22:51:01 UTC
2.9.02025-03-05 02:40:40 UTC
2.8.12024-12-09 10:11:50 UTC
2.8.02024-12-09 09:43:48 UTC
2.7.02024-11-28 01:50:32 UTC
2.6.22024-11-13 06:26:12 UTC
2.6.12024-11-11 00:38:30 UTC
2.6.02024-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

Related packages

Badges for your README

Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:

[![version](https://vigia.coredls.cloud/badge/npm/gpt-tokenizer/version.svg)](https://vigia.coredls.cloud/npm/gpt-tokenizer)
[![maintained](https://vigia.coredls.cloud/badge/npm/gpt-tokenizer/maintained.svg)](https://vigia.coredls.cloud/npm/gpt-tokenizer)
[![status](https://vigia.coredls.cloud/badge/npm/gpt-tokenizer/status.svg)](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}