code-to-image

Installation
SKILL.md

Code to Image API

Generate beautiful code snippet images with syntax highlighting via html2png.dev.

How It Works

  1. Write HTML with syntax-highlighted code (use Shiki or similar)
  2. Style with Tailwind CSS or custom CSS
  3. Send to /api/convert endpoint
  4. Get a shareable image URL

Endpoint

POST https://html2png.dev/api/convert

Example

Related skills
Installs
15
Repository
html2png/skills
GitHub Stars
7
First Seen
Jan 27, 2026