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

agentdraw-canvas

v2.0.0

Published

AI-ready canvas library on Konva.js — 40+ shapes, 20 animations, agentic spatial API, pan/zoom, dark/light themes.

Readme

🎨 AgentDraw canvas

AgentDraw is an AI-ready, multimodal canvas drawing library built on Konva.js. It bridges the gap between LLMs and visual interfaces by providing headless spatial reasoning APIs alongside a rich, extensible diagramming whiteboard.

npm version Konva


🚀 Quick Start

Install via npm:

npm install agentdraw-canvas

Basic Usage:

<script type="module">
  import { CanvasStudio } from 'agentdraw-canvas';

  // Initialize the full interactive studio
  const studio = new CanvasStudio();
  window.studio = studio; // Expose for console testing / agent access

  // Programmatically add a shape
  studio.Shapes.create('rect', { x: 100, y: 100, width: 120, height: 80 });
</script>

🤖 Agent-Ready API (v2.0)

AgentDraw v2 introduces a dedicated studio.Agent namespace, turning the canvas into a deterministic environment for multimodal AI agents.


✨ Studio Features

  • 🧩 Fully modular — 13 independent ES modules
  • 🔌 Plugin API — register custom shapes, animations, tools
  • 🎨 40+ Built-in Shapes — including 20 Bohr model Atoms (H–Ca), Physics mechanics, and Teacher essentials
  • 🎭 20 animations — pulse, spin, float, rainbow, glitch, orbit, and more
  • 🖱️ Smooth pan & zoom — wheel zoom toward cursor, space/middle-mouse pan
  • 🌗 Dark & light modes — persisted to localStorage
  • ✏️ Pencil tool with live colour/size cursor
  • 🖊️ Inline text editing — click to place, double-click to edit

🔌 Plugin API

Extend the canvas without touching core files:

// 1. Add a custom shape
studio.Shapes.register('cloud', (cfg) => {
  return new Konva.Circle({ ...cfg, radius: 30 }); // Return any Konva Group/Node
});

// 2. Add a custom tool
studio.Tools.register('stamp', {
  label: 'Stamp', icon: '🔖', shortcut: 'Q', cursor: 'crosshair',
  onMousedown: (e, services) => services.shapes.quickAdd('star')
});

// 3. Listen to events
studio.Events.on('selection:change', shape => console.log('Selected:', shape));

📖 API Reference

See docs/API.md for the full public API reference.
See docs/EXTENDING.md for the plugin authoring guide.


📄 License

Made with ❤️ by Mehul Ligade