Self-Hosted Email Marketing • Next.js 16 + Cloudflare Workers

Stop paying $150/mo for
your own email list.

EmailKit gives you broadcast campaigns, a slash-command template builder, visual automations, double opt-in forms, and Amazon SES / Resend / Brevo delivery — in one open-source codebase you own forever.

✓ Unlimited Subscribers ✓ Amazon SES, Resend & Brevo ✓ Runs on Cloudflare Workers + D1 ✓ Click any screenshot to zoom
Campaign Builder — /campaigns/create Click to zoom
EmailKit New Email Campaign Builder
$0 / mo
Software license (MIT)
Unlimited
Subscribers, tags & forms
3 Providers
Amazon SES, Resend & Brevo
200+ Tests
Vitest security & delivery suite
Real Product Tour

Every screen designed for speed and deliverability.

No bloated legacy dashboards. Write emails with slash commands, manage thousands of subscribers, capture leads with double opt-in, and send through your own API keys.

Template Library & Builder

Reusable templates for newsletters, onboarding & double opt-in.

Browse your categorized template library, preview responsive layouts on desktop or mobile, customize in the full slash-command builder, or load any template directly into a campaign.

  • ✓Normal Text (/ block commands) + Raw HTML mode
  • ✓Click-to-copy merge tags: {{firstName}}, {{confirmUrl}}
  • ✓Send live test emails straight to your inbox
Template Library — /templates Click to zoom
EmailKit Template Library
Audience & CRM

Segment, score, and prune cold subscribers in one click.

Track engagement star ratings, tags, signup sources, and geographic data across your entire list. Keep sender reputation spotless by cleaning unengaged contacts before big broadcasts.

  • ✓CSV bulk import & export with audit logging
  • ✓Dynamic rule-based segments & Kit-style tagging
  • ✓One-click Cold Subscriber pruning & engagement scoring
Subscribers & Segments — /contacts Click to zoom
EmailKit Subscribers and Segments
Lead Capture & Compliance

Embeddable forms with customizable double opt-in.

Launch inline embeds, modal popups, or slide-in forms on any website. Require email confirmation with a custom message or any pre-created double opt-in template before tagging or starting automations.

  • ✓Inline, Modal Popup, and Slide-in formats
  • ✓Per-form double opt-in template & redirect URL
  • ✓Built-in RFC 8058 one-click unsubscribe & preferences
Forms & Double Opt-In — /forms Click to zoom
EmailKit Embeddable Forms and Double Opt-In
Deliverability & Security

Connect Amazon SES, Resend, or Brevo with encrypted keys.

Switch delivery providers without changing a single workflow. API keys are encrypted at rest with your VAULT_KEY, complete with domain checks, bounce webhooks, and batch throttling.

  • ✓Native AWS SES v2, Resend API, and Brevo API
  • ✓Encrypted credential vault + setup checklist
  • ✓Role-based team access (Super Admin, Admin, Editor, Viewer)
Settings & Provider Vault — /settings Click to zoom
EmailKit Delivery Provider Settings
Automations, Drips & Analytics

Set up once. Runs every minute on the edge.

Built-in Cloudflare Cron triggers process delayed workflow steps and multi-day drip sequences automatically — no external queue servers required.

⚡ Trigger: Form Confirmed Active
↓
✉ Send Welcome Email Email
↓
⏱ Wait 2 Days Delay
↓
🏷 Assign Tag: Onboarded Action

Visual Workflow Builder

Trigger journeys from form signups, tags, link clicks, or external webhooks with conditional branching and delays.

5-Day Onboarding Drip 4 Emails
Day 0 · Welcome & Quickstart 68% open
Day 2 · Core Playbook 54% open
Day 5 · Case Study Breakdown 49% open
Day 7 · Next Steps 44% open

Automated Drip Sequences

Schedule ordered email series with per-email day/hour delays, subscriber status tracking, and per-step open/click stats.

Delivery Health
99.4% Delivered
42.8% Open
● Clicks: 6.2% ● Bounces: 0.04% ● Webhooks: Live

Real-Time Analytics & Webhooks

Signed open/click tracking, automatic hard-bounce suppression, unsubscribe feedback capture, and resend-to-unopens.

Interactive Demo

Write emails at the speed of thought.

Click a slash command below to see how EmailKit compiles clean text shortcuts into responsive, inbox-safe HTML.

[button: Read the Playbook → | https://emailkit.online]
Compiled Email Preview
ROI & Savings Calculator

Pay for emails, not subscriber taxes.

Slide to your list size and see how much EmailKit saves compared to per-subscriber SaaS tools.

Your Subscriber Count
10,000 subscribers
Based on 4 broadcasts/mo via Amazon SES
Typical Hosted SaaS
$119/mo
EmailKit + Amazon SES
$4/mo
Your Annual Savings
$1,380/yr
Hosted SaaS Platforms
$119 – $679/mo

Price climbs automatically at 10k, 25k, and 50k contacts.

  • ✕ Strict subscriber tier limits & overage charges
  • ✕ Locked-in templates & proprietary automations
  • ✕ Extra fees for team seats & custom domains
  • ✕ Your audience data lives on someone else's server
EmailKit (Self-Hosted)
$0/mo software

MIT licensed. Pay only raw SES/Resend/Brevo sending fees (~$0.10 per 1,000 emails on SES).

  • ✓ Unlimited subscribers, tags, segments & forms
  • ✓ Full source code & SQLite/D1 database ownership
  • ✓ Unlimited team members with RBAC roles
  • ✓ Edge-deployed globally on Cloudflare Workers
Full Platform Checklist

Production-ready from day one.

Link Triggers

Auto-tag subscribers and trigger workflows the moment they click any tracked link.

Resend to Unopens

Automatically follow up with subscribers who missed your first broadcast.

Encrypted Vault

Provider API keys encrypted at rest using AES-GCM via VAULT_KEY.

Role-Based Access

Super Admin, Admin, Editor, and Viewer permissions with email invites.

Suppression & Bounces

Webhook handlers for SES, Resend, and Brevo suppress hard bounces automatically.

Preference Center

Let subscribers manage their own tags/topics and leave unsubscribe feedback.

5-Minute Setup

Clone, migrate, and deploy to Cloudflare.

Run locally with SQLite or deploy to Cloudflare Workers + D1 + R2 with minute-by-minute cron triggers built in.

1
Clone & configure
Copy .env.example and wrangler.example.jsonc with your domain and secrets.
2
Provision D1 & R2
Create your D1 database and apply Prisma migrations.
3
Deploy & start sending
Add your SES, Resend, or Brevo API key in Settings and send your first broadcast.
bash — quickstart
# 1. Clone EmailKit
git clone https://github.com/kulwantnagi/emailkit.git
cd emailkit && npm install

# 2. Setup local env & database
cp .env.example .env
npx prisma db push && npx tsx prisma/seed.ts
npm run dev

# 3. Deploy to Cloudflare Workers
cp wrangler.example.jsonc wrangler.jsonc
npx wrangler d1 migrations apply emailkit-d1 --remote
npm run build:worker && npm run deploy
FAQ

Common questions

How much does it cost to run EmailKit?

EmailKit itself is 100% free (MIT License). On Cloudflare Workers + D1, most newsletters run within the free or $5/mo Workers plan, plus ~$0.10 per 1,000 emails sent via Amazon SES.

Can I switch between SES, Resend, and Brevo?

Yes. You can configure and switch providers anytime from the Settings page without changing your campaigns, sequences, or automations.

Does it support double opt-in and GDPR / CAN-SPAM?

Yes. Every form supports double opt-in with custom copy or pre-created templates, plus RFC 8058 one-click unsubscribe headers, preference management, and postal footer enforcement.

How are my email provider API keys stored?

All provider secrets (SES, Resend, Brevo) are encrypted before database storage using your VAULT_KEY environment secret.

Ready to own your email stack?

Star the repository, fork it for your brand, and deploy your own EmailKit instance in minutes.