Skip to content
colspan-devPublic

About

Open source drag & drop builder for HTML emails that hold together in every inbox

Topics

Resources

Contributing

Stars

437 stars

Watchers

14 watching

Forks

Latest commit

 

History

178 Commits

Folders and files

Repository files navigation

Colspan

Open source drag & drop builder for HTML emails that hold together in every inbox

Colspan: open source drag & drop builder for HTML emails

Live Demo · Website · Releases · Discussions

Colspan was previously called MySigMail Card and lived at card.mysigmail.com. Old links redirect here.

Why Colspan

Email layout still runs on tables. Every email developer has fought nested <table>s, colspan and Outlook quirks. Colspan does that part for you: you assemble an email from ready-made blocks, and it produces table-based HTML with inline styles, built to render consistently across Gmail, Outlook and Apple Mail.

We live in an era of increasing vendor lock-in and centralized control. Entire regions get cut off from services for geopolitical reasons, leaving developers and users stranded. Software should be accessible and reliable regardless of borders. Colspan is the open core of my commercial email builder, released so that everyone has a powerful email editor they can host themselves.

Features

  • Visual drag-and-drop editor
  • Component catalog with 78 ready-to-use blocks across Menu, Header, Content, Feature, Call to Action, E-Commerce, Transactional, and Footer
  • Inline editing and a synchronized component tree (Block -> Row -> Cell -> Atom)
  • Atom types: text, button, divider, and image; Menu and Social are reusable recipes built from the same primitives
  • Rich-text editing with Google Fonts support
  • Desktop and mobile preview with per-row stacking and mobile visibility controls
  • Responsive HTML export and editable JSON export/import from the UI
  • Static iframe embed mode (?embed=1) with a postMessage v1 API
  • Import modes: replace and append
  • Template validation + sanitization on import
  • Auto-persist to localStorage and hydration on reload in standalone mode
  • Undo and redo
  • Preview rendered in Shadow DOM to isolate editor styles

Self-hosting

Colspan is a static app: build it and serve dist/ from any web server.

pnpm i
pnpm build

Environment variables (see .env.example):

Variable Purpose
VITE_APP_BASE_PATH Base path the app is served from, e.g. /app/
VITE_APP_TELEMETRY true enables analytics; leave empty for self-hosting
VITE_APP_YM_ID Yandex Metrica counter id, used only with telemetry

Embedding (iframe)

To embed a self-hosted Colspan instance inside another application, load it in an <iframe> with ?embed=1 and an explicit targetOrigin:

<iframe src="https://builder.example.com/?embed=1&targetOrigin=https%3A%2F%2Fapp.example.com"></iframe>

In ?embed=1 mode, Colspan hides the top bar and standalone support card, keeps only a compact Colspan · License & source attribution footer, disables shared localStorage draft persistence, and exposes a postMessage v1 API (namespace: "colspan-embed", version: 1) with ready, loadTemplate, getTemplate, and exportHtml.

See examples/embed-host for a complete, zero-build host example that stores two independent drafts on the host side and exports HTML.

When serving Colspan from another origin, configure your web server's Content-Security-Policy frame-ancestors header to allow your host origin.

Email client compatibility

All 78 catalog presets have been tested across Gmail Web, Gmail Android, Outlook Classic 2024, Apple Mail (macOS), and Yahoo Mail.

Note on Outlook Classic: Outlook's Word rendering engine renders the solid fallback background color for sections where CSS background images are not supported.

Development

pnpm i
pnpm dev

Run checks with pnpm lint, pnpm test, and pnpm build.

Contributing

Contributions are welcome — bug reports, email-client compatibility fixes, tests, documentation, and integration examples. See CONTRIBUTING.md for local setup, checks, and commit conventions, or join GitHub Discussions.

If Colspan saves you time, starring the repository ⭐ or supporting development helps keep the project sustainable:

Donate via Open Collective Donate via PayPal

Follow

Commercial Usage

  • Exported emails: HTML and JSON templates exported from Colspan belong to you and contain no vendor branding or watermarks under either license.
  • Open source (AGPL-3.0): Free for personal, internal, and commercial self-hosted use. If users interact with a modified version over a network, §13 requires you to prominently offer them the corresponding source of that version at no charge. Preserve the copyright, license, and attribution specified in NOTICE under §7(b). The embed footer is the default presentation. A prominent About entry is another option. Exact obligations depend on how the editor is modified, delivered, and integrated.
  • Commercial license: Available for proprietary editor modifications, embedding without AGPL-3.0 obligations, and agreed white-label, update, and support terms. Contact me for details.

License

Licensed under AGPL-3.0 with the additional attribution notice in NOTICE.

Copyright (c) 2022-present, Anton Reshetov.

About

Open source drag & drop builder for HTML emails that hold together in every inbox

Topics

Resources

Contributing

Stars

437 stars

Watchers

14 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages