Most LinkedIn, Instagram, and X carousel generators charge $19–$29/month, upload your drafts to third-party servers, and still limit you to repetitive plain-text slides.

So I built CardCraft Studio — a completely self-contained 166 KB offline .html file with zero external dependencies that runs locally in Chrome, Safari, Edge, or Firefox (even on airplane mode).

👉 Try the Free Live Interactive Demo right in your browser (zero signup): https://cardcraft-studio.netlify.app/

Why I Ditched html2canvas and SVG foreignObject

When you build a local-first web utility meant to be double-clicked from disk (file://), the two standard "DOM-to-PNG" tricks break immediately:

  1. html2canvas requires bundling a heavy dependency and frequently mismatches CSS flexbox/font metrics across browsers.
  2. SVG <foreignObject> throws SecurityError: Tainted canvases may not be exported under file:// origins in several browsers.

Instead, I wrote a pure HTML5 Canvas 2D layout & typography engine so the live interactive preview and the exported 2x Retina PNG share the exact same rendering pass pixel-for-pixel.

Solving Mixed CJK + Latin Line Wrapping & Inline Styling

A clean Markdown card needs **bold**, ==marker highlights==, and `inline code` spans wrapped seamlessly across mixed scripts:

  • Latin words split only on word boundaries (unless a single token exceeds maxWidth).
  • CJK characters break cleanly per glyph with a punctuation lookahead (NO_LINE_START) so commas and periods never dangle awkwardly at the start of a new line.
  • Adjacent highlight or code tokens merge into one smooth rounded pill background per line.

7 Distinct Per-Slide Layout Engines (Not Just Color Swaps)

Generic carousel tools only swap background gradients. In CardCraft Studio, each slide inside a single deck can switch between 7 genuinely different visual skeletons:

  1. Magazine Hero Cover — Giant translucent issue watermark, tilted double-ring vector stamps (SAVE THIS, TESTED), and optional full-bleed photo backdrop with frosted glass opacity.
  2. Red vs Green VS Comparison — Write <<< Old Way and >>> Pro Way to render a two-column comparison with a floating center VS badge.
  3. Realistic iOS Notes — Crisp iPhone status bar, yellow < Notes header, lined texture, and interactive-looking - [x] / - [ ] circular checklists.
  4. Realistic Chat Bubbles — Write A: and B: turns for high-retention DM / conversation stories.
  5. Step-by-Step Timeline — Vertical glowing connector track with circular step badges (01, 02, 03) and elevated cards.
  6. Bento KPI Metrics & Progress Bars — Write ::3.6x | Bookmark Lift | Verified:: and [bar:95% Score] for Apple-style metric cards.
  7. Markdown Tables & Editorial Cards — Rounded zebra-striped comparison tables straight from pipe Markdown.

Pure-JS Offline Batch ZIP Export (Zero CDNs!)

PNGs are already compressed, which means a PKZIP Store-mode (uncompressed) archive gives you instant multi-file ZIP downloads with zero compression overhead and ~70 lines of vanilla JavaScript:

  • Precompute the 256-entry IEEE CRC32 table once.
  • Emit a 30-byte Local File Header + raw PNG bytes per slide.
  • Append 46-byte Central Directory entries + the 22-byte End-of-Central-Directory record.
  • Wrap in a new Blob(..., { type: 'application/zip' }) and trigger download!

Because it needs no external libraries, even the Batch CSV Factory (turn 20 posts separated by === or a .csv spreadsheet into organized post-01/, post-02/ folders in one .zip) runs 100% offline.

Try It Free (Or Own the Offline File Forever)

If you're building local-first single-file HTML tools or wrestling with Canvas 2D typography, drop a comment — happy to share more implementation details!