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
Try it
Opens instantly. Runs on sample data, so changes reset on reload.
What is inside
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
@molecule/api-ai-anthropic@molecule/api-ai-summarization@molecule/api-ai-summarization-llm@molecule/api-database-postgresql@molecule/api-email-templates@molecule/api-emails-mailgun@molecule/api-entitlements@molecule/api-payments-stripe@molecule/api-resource-payment@molecule/api-resource-user@molecule/api-templating-handlebars@molecule/app-ai-copilot@molecule/app-billing-react@molecule/app-data-table@molecule/app-rich-text
Required secrets
DATABASE_URLPostgreSQL connection stringANTHROPIC_API_KEYAnthropic API key for ClaudeMAILGUN_API_KEYMailgun API key for sending emailsMAILGUN_DOMAINMailgun 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