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

mermaid-viber-cli

v1.1.0

Published

CLI tool to convert Mermaid diagram text files to styled JPEG images

Readme

Mermaid Viber CLI

A command-line tool that converts Mermaid diagram text files into beautifully styled JPEG images, powered by mermaid-vibes.

Example Output

Sequence Diagram

Sequence Diagram

Flowchart

Flowchart

State Diagram

State Diagram

Class Diagram

Class Diagram

Installation

npm install -g mermaid-viber-cli

Or install locally:

npm install mermaid-viber-cli

Usage

Basic Usage

Place your Mermaid diagram text files in a directory, then run:

mermaid-viber --input ./my-diagrams --output ./my-images

This will process all .txt files in the input directory and create corresponding .jpg files in the output directory.

Options

| Flag | Description | Default | |------|-------------|---------| | -i, --input <dir> | Input directory containing .txt files | mermaids | | -o, --output <dir> | Output directory for JPEG files | images | | -h, --help | Display help | | | -V, --version | Display version | |

Diagram Syntax

Any standard Mermaid syntax is supported. Save your diagram as a .txt file:

Flowchart:

graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Do Something]
    B -->|No| D[Do Something Else]
    C --> E[End]
    D --> E

Sequence Diagram:

sequenceDiagram
    User->>Browser: Enter URL
    Browser->>Server: HTTP Request
    Server->>Database: Query Data
    Database-->>Server: Return Results
    Server-->>Browser: HTTP Response
    Browser-->>User: Display Page

State Diagram:

stateDiagram-v2
    [*] --> Draft
    Draft --> Submitted: Submit for Review
    Submitted --> UnderReview: Automated Check Passed
    UnderReview --> Approved: Verification Passed
    UnderReview --> Rejected: Verification Failed
    Approved --> Completed
    Completed --> [*]

Custom Actor Images

Add logos or avatars to sequence diagram actors using the img: prefix:

sequenceDiagram
    participant img:https://example.com/user-icon.png User
    participant img:https://example.com/server-icon.png Server
    User->>Server: Request
    Server-->>User: Response

Styling

All output uses the mermaid-vibes design system:

  • Teal accent palette with warm off-white backgrounds
  • Glowing node borders with subtle pulse animations
  • Rounded corners and generous padding
  • Styled edge labels with light borders
  • High-contrast typography

Development

git clone https://github.com/truemedicine/mermaid-viber-cli.git
cd mermaid-viber-cli
npm install
npm run dev

Build for production:

npm run build

License

MIT