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

@rooom/vitepress-plugins

v1.1.3

Published

A collection of VitePress plugins: markdown-it extensions for accordion, cards, steps, Lucide icons, and more.

Downloads

392

Readme

@rooom/vitepress-plugins

npm version license

A collection of markdown-it plugins for VitePress — accordion, cards, step-by-step guides, Lucide icons, one-liner blocks, and automatic H1/subtitle injection from frontmatter.

Installation

npm install @rooom/vitepress-plugins

Setup

Register the plugins in your .vitepress/config.mts:

import { defineConfig } from 'vitepress'
import {
  accordionPlugin,
  cardPlugin,
  lucideIconPlugin,
  oneLinerPlugin,
  pageH1Plugin,
  pageSubtitlePlugin,
  stepByStepPlugin,
} from '@rooom/vitepress-plugins/markdown'

export default defineConfig({
  markdown: {
    config(md) {
      md.use(accordionPlugin)
      md.use(cardPlugin)
      md.use(lucideIconPlugin)
      md.use(oneLinerPlugin)
      md.use(pageH1Plugin)
      md.use(pageSubtitlePlugin)
      md.use(stepByStepPlugin)
    },
  },
})

Plugins

accordionPlugin

Renders collapsible accordion items using native <details>/<summary>.

:::: accordion-group
::: accordion What is VitePress?
A static site generator powered by Vite and Vue.
:::
::: accordion How do I install it?
Run `npm install vitepress`.
:::
::::

cardPlugin

Renders icon cards in a responsive grid. Icons support emoji shortcodes (:rocket:) or direct emoji (🚀). Links are optional.

:::: cards
::: card :rocket: Quick Start | /guide/getting-started
Get up and running in minutes.
:::
::: card :book: API Reference | /api/
Browse the full API documentation.
:::
::::

stepByStepPlugin

Renders numbered step-by-step guides from ### headings inside a ::: steps container.

::: steps
### Install dependencies
Run `npm install` in your project root.

### Start the dev server
Run `npm run dev` and open `http://localhost:5173`.

### Build for production
Run `npm run build` to generate the static output.
:::

lucideIconPlugin

Renders inline Lucide SVG icons from :icon-name: shortcodes.

Click the :settings: icon to open preferences.
Check out the :book-open: documentation for details.

Full icon list: lucide.dev/icons


oneLinerPlugin

Renders a fenced block tagged one-line as a styled single-line value display.

```one-line
https://api.example.com/v1/endpoint
```

pageH1Plugin

Automatically injects an <h1> from the frontmatter title field — no # Heading needed in the body.

---
title: My Page Title
---

Content starts here, H1 is injected automatically.

pageSubtitlePlugin

Renders the frontmatter description as a subtitle paragraph after the first <h1>.

---
title: My Page
description: A short description shown as subtitle below the H1.
---

License

MIT © rooom AG