DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to export a diagram as HTML, PNG or React with Stack Diagram

Pick the format you need and share it as an artifact or in a repo.

Short answer: Draw your stack with the skill; then ask for the format you need: self-contained HTML file (default), PNG, a React component, or an Artifact; For PNG export make sure Playwright with Chromium is available. All steps.

Who it is forA team that wants the diagram in a wiki, a README or a Claude artifact.

The problemA diagram is only useful if it fits where your docs live.

The outcomeA self-contained HTML file, PNG, dependency-free React component or Artifact.

What you need first

  • An agent that supports skills
  • Python 3.9+
  • Network access for the logos
  • Playwright with Chromium for PNG export

Steps

  1. Draw your stack with the skill
  2. Ask for the format you need: self-contained HTML file (default), PNG, a React component, or an Artifact
  3. For PNG export make sure Playwright with Chromium is available
  4. Drop the file into a repo or wiki, or publish it as a Claude artifact

Prompt for your agent

Using the stack-diagram skill, draw <stack> and export it as <HTML, PNG, React component or Artifact>.

Caveat. The agent offers once to post the diagram to a public gallery and only posts after you say yes twice.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for caru-ini/stack-diagram and "Export a diagram as HTML, PNG or React"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer