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

@truemedicine/mermaid-vibes

v1.0.0

Published

Vibe-coded Mermaid diagrams for React with buttery animations and aesthetic appeal

Readme

Mermaid Vibes ✨

Vibe-coded Mermaid diagrams for React with buttery animations.

npm install @truemed/mermaid-vibes mermaid

Quick Start

import { MermaidVibes } from '@truemed/mermaid-vibes';
import '@truemed/mermaid-vibes/styles.css';

function App() {
  return (
    <MermaidVibes chart={`
      graph TD
        A[Start] --> B[Process]
        B --> C[End]
    `} />
  );
}

Features

  • ✨ Smooth, performant animations
  • 🎨 Beautiful teal color theme
  • 💫 Animated light particles on arrows
  • 🖼️ Logo support in sequence diagrams
  • 🎯 Interactive node & edge click events
  • 📦 Export as PNG, JPG, or SVG
  • 🎭 All Mermaid diagram types supported

Examples

With Logos (Sequence Diagrams)

<MermaidVibes chart={`
  sequenceDiagram
    participant img:https://example.com/user.png User
    participant img:https://example.com/server.png Server
    User->>Server: Request
    Server-->>User: Response
`} />

With Click Handlers

<MermaidVibes
  chart={`graph TD; A-->B; B-->C;`}
  onNodeClick={(data) => console.log('Clicked:', data.label)}
  onEdgeClick={(data) => console.log('Edge:', data.label)}
/>

Export Diagrams

import { MermaidVibes, exportAsPNG } from '@truemed/mermaid-vibes';

function App() {
  const handleExport = async () => {
    const svg = document.querySelector('.mermaid-renderer svg');
    await exportAsPNG(svg, 'diagram.png');
  };

  return (
    <>
      <MermaidVibes chart={`graph TD; A-->B;`} />
      <button onClick={handleExport}>Export PNG</button>
    </>
  );
}

Custom Theme

<MermaidVibes
  chart={`graph TD; A-->B;`}
  theme={{
    primaryColor: '#FF6B6B',
    backgroundColor: '#1A1A2E',
    textColor: '#EAEAEA',
    strokeWidth: 4,
    fontSize: 18,
  }}
/>

Disable Animations

<MermaidVibes
  chart={`graph TD; A-->B;`}
  disableAnimations={true}
  disableParticles={true}
/>

API

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | chart | string | required | Mermaid diagram syntax | | theme | CustomTheme | - | Custom colors and styling | | className | string | '' | Additional CSS class | | disableAnimations | boolean | false | Disable CSS animations | | disableParticles | boolean | false | Disable particle effects | | onNodeClick | (data) => void | - | Node click handler | | onEdgeClick | (data) => void | - | Edge click handler |

Export Functions

exportAsPNG(svgElement: SVGSVGElement, filename?: string): Promise<void>
exportAsJPG(svgElement: SVGSVGElement, filename?: string): Promise<void>
exportAsSVG(svgElement: SVGSVGElement, filename?: string): Promise<void>

Supported Diagrams

  • Flowcharts
  • Sequence Diagrams
  • Class Diagrams
  • State Diagrams
  • ER Diagrams
  • User Journey
  • Gantt Charts
  • And more!

See Mermaid docs for syntax.

License

MIT © Truemed