Repository navigation
Description
Problem
A new user creates a project, goes to Templates → New, and is met with a blank GrapesJS canvas. There is no starting point. Most users do not know HTML email rules (table layouts, inline styles, MSO comments for Outlook) and will either spend an afternoon learning, copy something ugly from the internet, or quit.
EmailOctopus, Mailchimp, ConvertKit and every modern email tool ship with a starter template library precisely to remove this friction. SendDock should too.
Proposal
Ship a curated set of 5-10 high-quality starter templates that users can clone into their project as a starting point. They live in code (not the database), are bundled with the binary, and stay versioned alongside the app.
Templates to include in the first batch
| Template | Use case |
|---|---|
| Welcome | Single-column welcome after signup, brief value prop, primary CTA |
| Newsletter (single-column) | Weekly digest layout, hero, 2-3 sections, footer |
| Newsletter (two-column) | Same but with sidebar — for content-heavy publications |
| Product launch | Hero image + headline + body + CTA |
| Transactional receipt | Order confirmation pattern with item table and totals |
| Password reset | Single-button utility email |
| Re-engagement | "We miss you" template with offer |
| Webinar invite | Date / time / register CTA |
| Plain text fallback | Minimal text-only template (renders everywhere, great deliverability) |
Implementation
- Store templates as JSON files (GrapesJS-compatible) in
backend/internal/templates/library/. Each file is{ name, description, category, html, css, components }. GET /api/v1/templates/libraryreturns the catalog (project-agnostic, no auth needed for listing).POST /api/v1/projects/{id}/templatesaccepts an optional{ "from_library": "welcome" }body that clones the library template into the project (the user can then edit freely).- UI: in the New Template flow, show a gallery of library cards with thumbnail + name + "Use this template" button alongside the Start blank option.
Quality bar
- Every template tested in Litmus or Email-on-Acid (or at minimum Gmail Web/iOS/Android, Outlook 2019, Apple Mail).
- All templates pass HTML validation, render in dark mode, use web-safe fonts with stack fallbacks.
- All include
{{unsubscribe_url}}in the footer by default. - Mobile responsive (media queries inline).
Acceptance criteria
- At least 5 templates ship in
v0.7.0 - Gallery view on the New Template screen with thumbnails
- One-click clone from library into a project's templates
- Library catalog endpoint documented
- Templates work in major email clients (Gmail, Outlook, Apple Mail, iOS Mail)
Tier
Core — first-time-user experience. Gating starter templates behind Pro would feel petty and increase abandonment on the new-template step.
Activity
feat(templates): community library backend service + endpoints
feat(templates): community library backend service + endpoints
feat(templates): browser modal in the templates page + library guide