← All templates

AI Email Composer

AI-first · React + Node (Express) · 15 @molecule/* packages

AI drafting, tone adjustment, and reusable email templates with send capability — with built-in Stripe-backed subscription tiers

Open in Molecule

What is inside

  • auth
  • ai-generation
  • rich-text-editing
  • email-templates
  • email-send
  • subscriptions

Screens (13)

  • Login /login
  • Signup /signup
  • ForgotPassword /forgot-password
  • ResetPassword /reset-password
  • Dashboard /dashboard (signed in)
  • Landing /
  • Inbox /inbox (signed in)
  • Compose /compose (signed in)
  • Templates /templates (signed in)
  • Analytics /analytics (signed in)
  • Settings /settings (signed in)
  • Profile /profile (signed in)
  • Billing /billing (signed in)

Data model (7 tables)

  • devices — id, createdAt, updatedAt, userId, name, pushPlatform, pushSubscription, hasPushSubscription
  • email_contacts — id, user_id, email, name, tags, last_contacted_at, created_at, updated_at
  • email_drafts — id, user_id, template_id, subject, body, body_html, recipients, cc, …
  • email_templates — id, user_id, name, description, subject, body, variables, category, …
  • payments — id, createdAt, updatedAt, userId, transactionId, productId, platformKey, data, …
  • sent_emails — id, user_id, draft_id, recipient_email, status, opened_at, clicked_at, bounced_at, …
  • webhook_events — id, user_id, source, event_type, payload, signature_valid, processed_at, created_at

API (5 handlers)

  • contacts api/src/handlers/contacts.ts
  • drafts api/src/handlers/drafts.ts
  • sentEmails api/src/handlers/sentEmails.ts
  • templates api/src/handlers/templates.ts
  • webhooks api/src/handlers/webhooks.ts

Subscription tiers

free / pro / team — gated by: maxDrafts, maxTemplates, advancedFeatures, canExport, retentionDays

Built from 15 @molecule/* packages

Browse all @molecule/* packages →

Required secrets

  • DATABASE_URL PostgreSQL connection string
  • ANTHROPIC_API_KEY Anthropic API key for Claude
  • MAILGUN_API_KEY Mailgun API key for sending emails
  • MAILGUN_DOMAIN Mailgun sending domain (e.g. mg.yourdomain.com)

The @molecule/* packages are Apache-2.0. The app you build from this template is yours to export and self-host. Licensing