Turn code into beautiful, shareable images — directly in the browser, no framework needed.
codeshoot is a lightweight JavaScript package that allows users to paste source code and instantly generate a screenshot-quality image with syntax highlighting. It's perfect for:
- Sharing code on social media
- Creating blog visuals
- Embedding into portfolio sites
- ✅ ** JavaScript** — Built in Javascript
- ✨ Syntax highlighting via Prism.js
- 🎨 Built-in dark theme (custom themes supported)
- 📝 Editable code input with real-time preview
- 🖼️ Export code snippet as a PNG image (via
html2canvas
) - 🧩 Embeddable in any web page or custom tool
Install from NPM:
npm install koome/codeshoot