Skip to content
JS
Package

tokenx

Fast token estimation with 95%+ average accuracy in a 2kB bundle

$ npm install tokenx

Key numbers

As of 25 Sept 2026
Weekly downloads
1.3m
+2030% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 month ago
v2.1.0
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5m2mSept 2025Mar 2026Sept 2026High 1.7m (8 Sept 2026)Low 38k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

1,331,114 downloads last week, 6,349,525 in the last month. The 12-month change of +2030% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
813 in total
Latest version
2.1.0, 5 Aug 20261 month ago
First published
11 Jun 2024
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
48

Major versions

  1. v2 first release 2.0.0, 29 Jul 2026
  2. v0 first release 0.4.0, 8 Jul 2024
  3. v1 first release 1.0.0, 11 Jun 2024

Recent releases

VersionPublished
2.1.05 Aug 2026
2.0.029 Jul 2026
1.6.027 Jul 2026
1.5.027 Jul 2026
1.4.027 Jul 2026
1.3.022 Jan 2026
1.2.110 Nov 2025
1.2.016 Oct 2025
1.1.023 Jun 2025
1.0.12 Jun 2025
0.4.129 Nov 2024
0.4.08 Jul 2024
1.0.011 Jun 2024
Module format
-Not determined from package.json
TypeScript types
-
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
-
Dependencies (0)
None
npm install tokenx
  • jsDelivrhttps://cdn.jsdelivr.net/npm/tokenx@2.1.0/
  • unpkghttps://unpkg.com/tokenx@2.1.0/
  • esm.shhttps://esm.sh/tokenx@2.1.0
PackageWeekly downloadsGzipLast releaseModuleComparison
shlex430.2k-1 year agoESM only-
yaml-lint177k-4 years agoCommonJS-
@marp-team/marp-cli70k-19 days agoCommonJS-
jsome18k-8 years agoCommonJS-
md-to-pdf123k-10 months agoCommonJS-
@sourcemeta/jsonschema64.9k-3 days agoCommonJS-
ansicolor85.9k-2 years agoESM + CommonJS-
@trufflesuite/chromafi31.9k-4 years agoCommonJS-
Sources: npm registry, npm downloads API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.