diagrams-js/diagrams-js/nodejs-integration
Claude Code and agent skill by diagrams-js/diagrams-js
- community
Checking that the SKILL.md file is still in the repository.
Using diagrams-js in Node.js with npm installation. File system saving, PNG/JPG rendering with sharp package. Local icon files for Custom nodes. Buffer handling for binary output formats.
Install
npx vskill@latest install diagrams-js/diagrams-js/nodejs-integrationSKILL.md
The same SKILL.md was published earlier as diagrams-js/diagrams-js/nodejs-integration.
This skill builds on diagrams-js/getting-started. Read it first for foundational concepts.
diagrams-js — Node.js Integration
Use diagrams-js in Node.js environments. File system operations, PNG/JPG rendering with sharp, local icon files.
Setup
Installation
Basic Usage
Core Patterns
Save to File
Render PNG with sharp
Render JPG with sharp
Local Icon Files
PNG with Custom Dimensions
Common Mistakes
MEDIUM Writing Uint8Array directly without Buffer
Wrong:
Correct:
fs.writeFile needs Buffer for Uint8Array in some Node.js versions. Always wrap with Buffer.from().
Source: docs/guides/rendering.mdx
See also
- diagrams-js/rendering-export — All rendering formats and options
- diagrams-js/custom-nodes — Local file icons
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/diagrams-js/nodejs-integration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diagrams-js/diagrams-js/nodejs-integration)