# Chapterize JS > A zero-dependency library that adds an automatic, accessible table of contents to an existing page DOM. Configured with HTML attributes only. About 5 KB gzip including the optional marker styles. Works in every framework and on plain sites. ## Usage - Script tag: `` (global `Chapterize`, auto-init; add `data-manual` to opt out). - npm: `import 'chapterize-js/auto'` (auto-init, SSR-safe) or `import { init, chapterjs, refresh, destroy, slug } from 'chapterize-js'`. - Frameworks: render `