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

@b-kamphorst/docusaurus-glossary

v0.2.1

Published

Docusaurus plugin and theme to generate and render a glossary from markdown files ('terms'). All references to terms are transformed into tooltips that display short descriptions on hover.

Readme

📘 Docusaurus Glossary

A Docusaurus plugin and theme for creating a glossary of terms from Markdown files in your documentation site.

This project provides a plugin plus accompanying theme that let you define terms in Markdown, automatically process references to those terms, and generate a structured glossary page in your Docusaurus site. It makes it easier for readers to discover and understand important terminology in your documentation.

Demo of resulting glossary and tooltips

🚀 Features

This package will:

  • collect glossary terms from a directory (docs/glossary) of Markdown files;
  • find links to those glossary terms throughout your docs and put them in Term components;
  • add a Glossary component to glossary/index.md that will automatically list and sort all discovered terms;
  • render the above components using the supplied theme;
  • allow you to override (swizzle) this theme if you like.

Notably, this plugin will keep source files intact. All transformations are performed on the docusaurus AST during build by leveraging the remark plugin system.

Installation

To install the plugin to your Docusaurus repository, use the command:

npm install @b-kamphorst/docusaurus-glossary

Then add the plugin to docusaurus.config.js file of your project:

import { remarkGlossary } from "@b-kamphorst/docusaurus-glossary";

module.exports = {
  // ...
  plugins: ['@b-kamphorst/docusaurus-glossary']

  presets: [
    [
      "classic",
      {
        docs: {
          path: "docs",
          routeBasePath: "/",
          remarkPlugins: [remarkGlossary],
        },
        // ...
      }
    ],
  ]
}

Or, if you need to customize the plugin configuration:

// in module.exports
plugins: [
  '@b-kamphorst/docusaurus-glossary',
  {
    // docusaurus plugin options
  }
]

// in module.exports.presets."classic".docs
remarkPlugins: [
  remarkGlossary, {
    // remark plugin options
  }
],

Usage

Build and leverage your own glossary in three simple steps.

1. Define a Term

For every term that you want to refer to, create a markdown file (.md, .mdx) in the glossary directory. By default, this directory is docs/glossary. For example:

docs/glossary/my-term.md

---
title: My term
hoverText: Short description shows when hovering over links to 'My term'.
---

Long description will be shown on the dedicated My Term page.

2. Initiate a glossary

This step can be as simple as creating an empty file docs/glossary/index.md. It will suffice, and render into a list of all your terms on http://my-website/glossary. However, you can add a preamble or custom header if you like:

---
title: Glossary
---

This glossary collects all our terms with a short description in a single overview. Click any term to view a more detailed description.

3. Refer to a term

In any markdown file under docs/ (including the glossary terms themselves), just link to a term file like you usually do when you refer to another page (relative and with extension):

docs/index.md

---
title: Introduction
---

Welcome to my website! Some hard terms like ["my term"](glossary/my-term.md) will be used, but we define them properly for your convenience!

Options

This plugin can be customized by providing the options outlined below. An example project that alters the glossary and docs directories can be found in this plugin's repository.

Docusaurus plugin options

| Option | Type | Default | Description | | --------------------- | --------- | --------------- | --------------------------------------------------------------------------------- | | path | string | docs/glossary | Path to the glossary directory relative to siteDir. Should be in the docs path. | | throwOnMissingIndex | boolean | false | Throw a build-time error if there exists no glossary index page. |

Remark plugin options

| Option | Type | Default | Description | | -------------- | -------- | ---------- | --------------------------------------------------- | | glossaryPath | string | glossary | Path to glossary directory relative to docs.path. |

Acknowledgements

This plugin was inspired by grnet's docusaurus-terminology.