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

@deviva-draw/mcp

v0.9.0

Published

MCP server for Deviva Draw: lets AI agents create, edit, query, and export whiteboard scenes headlessly

Readme

@deviva-draw/mcp

MCP server for Deviva Draw — lets AI agents (Claude Code/Desktop, Cursor, any MCP client) create, edit, query, and export whiteboard scenes with no browser involved. Everything runs headlessly on the same engine the draw.deviva.app canvas uses, so what an agent builds re-opens as a fully editable scene in the app.

Quick start

# Claude Code
claude mcp add deviva-draw -- npx -y @deviva-draw/mcp

# confine file access (open/save/export) to one directory — recommended
claude mcp add deviva-draw -- npx -y @deviva-draw/mcp --root ~/diagrams

Then ask the agent to draw:

Create a flowchart of a login process, check it looks right, and export it as login.svg

What agents can do

  • Build scenes — shapes (rectangle/ellipse/diamond/sticky note/frame), lines, arrows, text, freehand ink; batch create/update/delete with auto-wrapped labels bound inside shapes.
  • Generate diagramscreate_diagram (semantic nodes + edges) or create_diagram_from_mermaid, both with automatic layered layout and arrows that stay bound to their shapes.
  • Self-verifytake_screenshot returns a PNG image block, so the agent can look at its own work and fix overlaps before finishing.
  • Search, not dumpdescribe_scene, list_elements, and search_scene_content keep results token-cheap; full scene JSON only on explicit request.
  • Export & round-trip — SVG and PNG exports embed the scene data, so exported files re-open editable in the web app; .devivadraw files (including multi-page documents) open and save losslessly.

With the desktop app

Point the server's --root at your drawings folder and open one of those .devivadraw files in the Deviva Draw desktop app: every agent save_scene live-reloads the open document within ~2s (camera preserved, unsaved local edits protected by a conflict bar — never merged or clobbered). Full walkthrough + troubleshooting: docs/desktop-agents.md.

PNG support (optional native canvas)

PNG export and screenshots use @napi-rs/canvas, an optionalDependency with prebuilt binaries for the common platforms. If it can't install (or you set DEVIVA_MCP_NO_CANVAS=1), the server runs in SVG-only mode: every other tool works, and the PNG tools explain the situation instead of crashing. Text measurement also uses the native canvas when present (browser-exact wrapping) and a calibrated approximation otherwise.

Security stance

  • stdio only talks to files at paths the agent explicitly passes — no directory walking.
  • --root <dir> (or DEVIVA_MCP_ROOT) rejects any path outside that directory.
  • Image decoding accepts data: URIs only; the server never fetches remote URLs.
  • Nothing leaves your machine.

Full setup (Claude Desktop, Cursor), the complete tool reference, and examples: docs/mcp.md.

License

MIT. Bundled hand-drawn font: Patrick Hand (SIL OFL 1.1).