npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@voithos-labs/aragonite-toc

v0.11.5

Published

a live table of contents for aragonite, the cute markdown editor lib

Readme

@voithos-labs/aragonite-toc

A live table of contents for aragonite. Put [[toc]] on a line of its own and it lists every heading in the document, kept up to date as you write; click an entry and you're there. What's aragonite? The readme is the long answer, and aragonite.dev the hands-on one.

What it reads

# Field notes

[[toc]]

## Rocks I have licked

## Rocks I regret licking

Just the [[toc]] line, exactly that, with no indent and nothing after it. The list itself is drawn, never written, so the file only ever holds that one line (and without the plugin, it's a paragraph that says [[toc]]).

Install

npm install @voithos-labs/aragonite @voithos-labs/aragonite-toc

It shares the editor's version number and asks for exactly that one, so when the editor moves, this moves with it.

Use it

import { tocPlugin } from '@voithos-labs/aragonite-toc';

const plugins = [tocPlugin()];

Hand the editor plugins, built once and shared rather than rebuilt per editor. One option, and a couple of habits worth knowing:

  • If your app isn't Svelte, import @voithos-labs/aragonite-toc/style.css alongside the editor's own stylesheet.

  • maxDepth (1 to 6, default 6) is the deepest heading level listed. tocPlugin({ maxDepth: 3 }) sets it for every editor, and a { plugin, options } entry in one editor's plugins overrides it there:

    import { tocPlugin, type TocOptions } from '@voithos-labs/aragonite-toc';
    
    const plugins = [{ plugin: tocPlugin(), options: { maxDepth: 3 } satisfies TocOptions }];

    The satisfies keeps a typo a compile error, since the editor types options as unknown. At runtime, an entry's maxDepth that isn't a whole number from 1 to 6 falls back to the factory's.

  • Entries are indented by level, and a heading inside a quote, a list or a callout gets listed too. Labels lose their formatting, so ## **Bold** move lists as "Bold move".

  • Clicking an entry, or Enter on it from the keyboard, jumps to the heading, in every mode, reading included. To edit the [[toc]] line itself, click the block anywhere but an entry.

More

The consumer guide has the other bundled plugins, and the plugin guide's page on reading the document above your block builds a block like this one.

License

Free software, released under MPL-2.0 like the editor itself: use it, study it, fork it, embed it in whatever you're building, closed source included. The one string attached: if you change this plugin's own files, you share those changes under the same license.