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

@openpets/whimsical

v1.0.0

Published

Create Whimsical flowchart diagrams programmatically using Mermaid markup. Generate beautiful flowcharts directly from your AI assistant.

Readme

Whimsical Plugin

Create Whimsical flowchart diagrams programmatically using Mermaid markup. Generate beautiful flowcharts directly from your AI assistant.

Features

  • Create flowcharts from raw Mermaid graph markup
  • Simplified flowchart creation with JSON nodes and edges
  • Returns both diagram URL and base64 image data
  • No API key required

Quick Start

cd pets/whimsical
npm run quickstart

Available Tools

whimsical-create-diagram

Create a flowchart using raw Mermaid graph markup.

"Create a diagram from: graph TD; A[Start] --> B[Process] --> C[End]"

Parameters:

  • mermaidMarkup: Mermaid graph syntax (e.g., graph TD; A-->B)
  • title: Diagram title

whimsical-create-flowchart

Create flowcharts with a simplified node/edge JSON format.

"Create a flowchart showing user login flow with Start, Validate, Success, and Failure nodes"

Parameters:

  • title: Diagram title
  • direction: TD (top-down), LR (left-right), BT (bottom-top), RL (right-left)
  • nodesJson: JSON array of nodes with id, label, and optional shape
  • edgesJson: JSON array of edges with from, to, and optional label

Node shapes: rect, round, diamond, circle

Example Usage

Using Raw Mermaid Markup

Create a flowchart from this mermaid:
graph TD
    A[Start] --> B{Is Valid?}
    B -->|Yes| C[Process]
    B -->|No| D[Error]
    C --> E[End]
    D --> E

Using JSON Format

Create a flowchart titled "User Authentication" with:
- Nodes: Start (circle), Login Form (rect), Validate (diamond), Dashboard (round), Error (rect)
- Edges: Start->Login Form, Login Form->Validate, Validate->Dashboard (success), Validate->Error (failure)

Response Format

All tools return JSON with:

{
  "success": true,
  "message": "Flowchart created successfully",
  "fileUrl": "https://whimsical.com/...",
  "imageUrl": "https://...",
  "generatedMermaid": "graph TD...",
  "image": {
    "base64": "...",
    "mimeType": "image/png"
  }
}

Limitations

  • Only flowcharts (Mermaid graph syntax) are supported
  • Sequence diagrams, mind maps, and other diagram types are not supported by the Whimsical API

No API Key Required

This plugin uses Whimsical's public API endpoint for diagram generation. No authentication is needed.

Mermaid Syntax Reference

For flowcharts, use Mermaid graph syntax:

graph TD
    A[Rectangle] --> B(Rounded)
    B --> C{Diamond}
    C -->|Yes| D((Circle))
    C -->|No| E[End]

Directions:

  • TD or TB: Top to bottom
  • BT: Bottom to top
  • LR: Left to right
  • RL: Right to left

Node shapes:

  • [text]: Rectangle
  • (text): Rounded rectangle
  • {text}: Diamond
  • ((text)): Circle

For more details, see the Mermaid Flowchart documentation.