mailshot

Introduction

Serverless email sequencing framework on AWS, managed entirely through Claude Code.

mailshot is a serverless email sequencing framework on AWS, designed so that a single person can create, deploy, manage, and query email sequences entirely through AI (Claude Code) at near-zero cost.

The core idea: describe what you want in natural language, and Claude Code handles the rest — generating sequence configs, rendering templates, deploying infrastructure, managing subscribers, and monitoring delivery. No dashboard, no SaaS fees, no vendor lock-in.

How it works

Your app backend

    │  publishes events

EventBridge ──→ Step Functions ──→ SendEmailFn ──→ SES

                                  S3 (templates)
                                  DynamoDB (state)
  1. Your app publishes an event (e.g., customer.created) to EventBridge
  2. An EventBridge rule starts a Step Functions state machine
  3. The state machine walks through send/wait/choice/condition steps
  4. Each send step invokes a Lambda that fetches a template from S3, renders it with LiquidJS, and sends via SES
  5. Bounces, complaints, opens, clicks, and deliveries are tracked automatically

Everything is defined in code, deployed with CDK, and managed through Claude Code.

Documentation

SectionWhat it covers
QuickstartScaffold a project and deploy your first sequence
ArchitectureSystem overview, AWS services, data flow, cost model
SequencesDefining email sequences with send, wait, choice, and condition steps
TemplatesReact Email components, Liquid rendering, template lifecycle
SubscribersSubscriber profiles, lifecycle states, suppression, unsubscribe
Events & EngagementEventBridge ingestion, SES engagement tracking, analytics
DynamoDB SchemaSingle-table design, key patterns, TTLs, GSIs
DeploymentEnvironment setup, build pipeline, CDK deploy workflow
MCP ServerAI-driven management — subscriber ops, engagement queries, template preview
Skills & WorkflowsClaude Code skills for creating, validating, and deploying sequences