Skip to content
JS
Package

js-tiktoken

JavaScript port of tiktoken

v1.0.21, 9 Aug 2025MITESM + CommonJSTypes: Bundled
$ npm install js-tiktoken

Key numbers

As of 25 Sept 2026
Weekly downloads
5.7m
+249% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
1 year ago
v1.0.21
GitHub stars
1.1k
81 forks
Open issues / PRs
31 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02m4m6m8mSept 2025Mar 2026Sept 2026High 7.9m (25 Aug 2026)Low 1.3m (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.

5,716,287 downloads last week, 28,675,572 in the last month. The 12-month change of +249% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
022 in total
Latest version
1.0.21, 9 Aug 20251 year ago
First published
13 May 2023
Last push to GitHub
9 Aug 2025412 days before the snapshot
Repository archived
No
Open issues
31
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v1 first release 1.0.0, 13 May 2023

Recent releases

VersionPublished
1.0.219 Aug 2025
1.0.2022 Apr 2025
1.0.1914 Feb 2025
1.0.184 Feb 2025
1.0.172 Feb 2025
1.0.1619 Dec 2024
1.0.154 Oct 2024
1.0.1415 Aug 2024
1.0.1315 Aug 2024
1.0.1213 May 2024
1.0.1112 Apr 2024
1.0.1028 Jan 2024
1.0.928 Jan 2024
1.0.815 Nov 2023
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
21.4 MB
Dependencies (1)
base64-js
npm install js-tiktoken
  • jsDelivrhttps://cdn.jsdelivr.net/npm/js-tiktoken@1.0.21/
  • unpkghttps://unpkg.com/js-tiktoken@1.0.21/
  • esm.shhttps://esm.sh/js-tiktoken@1.0.21
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.