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

@astro-minimax/viz

v0.7.5

Published

Visualization plugin package for astro-minimax — Mermaid, Markmap, Rough.js, Excalidraw, Asciinema and more.

Readme

@astro-minimax/viz

Visualization plugin package for astro-minimax — Mermaid diagrams, Markmap mind maps, Rough.js drawings, Excalidraw whiteboards, Asciinema terminal recordings, and more.

Installation

pnpm add @astro-minimax/viz

Peer dependencies: astro, mermaid.

Usage

// astro.config.ts
import minimaxViz from "@astro-minimax/viz";

export default defineConfig({
  integrations: [
    minimaxViz({ mermaid: true, markmap: true }),
  ],
});

VizConfig

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | mermaid | boolean | true | Enable Mermaid diagram support via remark plugin | | markmap | boolean | true | Enable Markmap mind map support via remark plugin |

Components

Import components in .astro or .mdx files:

---
import MermaidInit from "@astro-minimax/viz/components/MermaidInit.astro";
import Markmap from "@astro-minimax/viz/components/Markmap.astro";
import RoughDrawing from "@astro-minimax/viz/components/RoughDrawing.astro";
import ExcalidrawEmbed from "@astro-minimax/viz/components/ExcalidrawEmbed.astro";
import AsciinemaPlayer from "@astro-minimax/viz/components/AsciinemaPlayer.astro";
import MusicPlayer from "@astro-minimax/viz/components/MusicPlayer.astro";
import MarkmapInit from "@astro-minimax/viz/components/MarkmapInit.astro";
---

Mermaid Diagrams

Use fenced code blocks with mermaid language in Markdown:

```mermaid
graph TD
  A --> B
```

The remark-mermaid-codeblock plugin transforms these into <MermaidInit> components at build time.

Markmap Mind Maps

Use fenced code blocks with markmap language:

```markmap
# Root
## Branch A
## Branch B
```

Rough.js Drawings

<RoughDrawing type="bar" data={[...]} width={600} height={400} />

Excalidraw Whiteboards

<ExcalidrawEmbed src="/drawings/example.excalidraw" />

Asciinema Terminal Recordings

<AsciinemaPlayer src="/casts/demo.cast" />

Music Player

<MusicPlayer src="/audio/track.mp3" title="Track Name" />

Remark Plugins

  • remark-mermaid-codeblock — Transforms mermaid code blocks into client-rendered components
  • remark-markmap — Transforms markmap code blocks into interactive mind maps (with dark mode support)

CSS Architecture

source.css declares @source "../" so Tailwind scans all viz component files for utility classes. The core integration auto-detects this package and includes it in the generated entry CSS.

Exports

{
  ".": "./src/integration.ts",
  "./components/*.astro": "./src/components/*.astro",
  "./styles/source.css": "./src/styles/source.css",
  "./plugins/remark-mermaid-codeblock": "./src/plugins/remark-mermaid-codeblock.ts",
  "./plugins/remark-markmap-codeblock": "./src/plugins/remark-markmap-codeblock.ts",
  "./scripts/*": "./src/scripts/*.ts"
}

Development

Components use Tailwind CSS design tokens from @astro-minimax/core/styles/theme.css (e.g., --viz-bg, --viz-border). Changes are hot-reloaded via the monorepo dev server.