Skip to content
JS
Package

tocbot

Generate a table of contents based on the heading structure of a html document.

v4.36.8, 15 May 2026MITESM + CommonJSTypes: Bundled
$ npm install tocbot

Key numbers

As of 25 Sept 2026
Weekly downloads
585.1k
-47% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
4 months ago
v4.36.8
GitHub stars
1.5k
115 forks
Open issues / PRs
4 / 0
Contributors
-
Commits, last 52 weeks
6

Downloads

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

585,145 downloads last week, 2,862,438 in the last month. The 12-month change of -47% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
2124 in total
Latest version
4.36.8, 15 May 20264 months ago
First published
29 Dec 2015
Last push to GitHub
15 May 2026133 days before the snapshot
Repository archived
No
Open issues
4
Open pull requests
0
Commits, last 52 weeks
6
Dependents on npm
39

Major versions

  1. v4 first release 4.0.0, 29 Nov 2017
  2. v3 first release 3.0.0, 9 May 2017
  3. v2 first release 2.0.0, 30 Apr 2016
  4. v1 first release 1.0.0, 29 Dec 2015

Recent releases

VersionPublished
4.36.815 May 2026
4.36.61 May 2026
4.36.428 May 2025
4.36.35 May 2025
4.36.25 Apr 2025
4.36.04 Apr 2025
4.35.321 Mar 2025
4.35.214 Mar 2025
4.35.114 Mar 2025
4.35.012 Feb 2025
4.34.09 Feb 2025
4.33.031 Jan 2025
4.32.29 Nov 2024
4.32.19 Nov 2024
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
172 kB
Dependencies (0)
None
npm install tocbot

CDN

jsDelivr: 2.9m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/tocbot@4.36.8/
  • unpkghttps://unpkg.com/tocbot@4.36.8/
  • esm.shhttps://esm.sh/tocbot@4.36.8
Sources: npm registry, npm downloads API, GitHub API, jsDelivr. Data fetched 25 Sept 2026.

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