tscanlin/tocbot
Build a table of contents from headings in an HTML document. observed · 2026-08-28
Health v2 · maintenance only
86/100
- Activity 82
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 11.0
- age_days: 3834
- days_rel: 110
- days_push: 110
- n_releases_24m: 21
Adoption not part of the score
1500 stars · 114 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Tocbot is a lightweight JavaScript library that builds a table of contents from headings in an HTML document using native DOM methods. It is designed for documentation sites and long pages, with no jQuery dependency.
Use cases
- generate a table of contents from html headings
- add a sticky toc to documentation pages
- make long markdown-rendered pages easier to navigate
- build a collapsible heading outline in the browser
- add anchor-link navigation to blog articles
When to choose
- you want a dependency-free TOC for a docs site or long article
- you need smooth scroll navigation to headings with ids
- you want a small vanilla JS solution without jQuery
When to avoid
- your headings lack id attributes and you cannot generate them
- you need a server-rendered or build-time TOC rather than client-side
- you need a full documentation framework rather than just a TOC widget
Facets
library · maturity stable
ui-components frontend-framework web-development frontend documentation browser table-of-contents toc navigation vanilla-javascript zero-dependencies nodejs
1 source
- readme: https://github.com/tscanlin/tocbot · fetched 2026-08-28 · a19736fa37f3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tscanlin/tocbot | main | 86 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem