The morning newspaper, rebuilt for you.
A daily email that you design. Pick what you want to read about (weather, markets, AI news, a workout, a stoic quote), and an AI researches it fresh every morning and sends it to your inbox.
Daily Brief is a build-your-own newsletter. Instead of subscribing to someone else's editorial taste, you subscribe to your own.
You assemble your brief from a library of modules. Each morning at the time you choose, an AI agent goes out to the live web, gathers the information for each module, writes it in your preferred tone and length, and emails it to you. No app to open, no feed to scroll, just one email in your inbox before your coffee.
Most AI newsletters are scheduled blasts written for an average reader. This one is generated per user, per day. Your weather is your zip code's weather, your news is filtered to the topics you care about, your markets watchlist is the tickers you actually own.
Mix and match from 20+ modules:
| Information | Lifestyle | Markets & Sports |
|---|---|---|
| Weather (multi-location) | Daily quote | Stock & crypto markets |
| News (filtered by topic & source) | Affirmation | Sports scores |
| AI / Tech news | Mindfulness moment | Currency exchange rates |
| Reddit highlights | Workout of the day | |
| Podcast picks | Recipe of the day | |
| On this day in history | Word of the day | |
| The week in history | Language phrase | |
| Random fact | Horoscope | |
| Daily challenge | ||
| Book recommendation | ||
| Local events |
Free plan: 3 modules. Pro plan ($9/mo): up to 12 modules, plus richer module options.
- Sign up at dailybriefmail.com
- Build your brief: pick modules from the dashboard, configure each one (your city, your topics, your tickers)
- Pick a send time: any time, any timezone
- Preview it: send a test email to yourself anytime
- Wait for morning: the brief lands in your inbox
Every morning, a cron job picks up users due for delivery, loads each user's module configuration, and assembles a single prompt for Claude that describes (in natural language) exactly what to search for. Claude runs live web searches inside the API call, gathers real-time information, and returns a structured JSON response. The JSON is rendered into a clean, inline-styled HTML email and shipped through Resend.
The whole flow, from cron trigger to delivered email, runs in under a minute per user.
How the pieces fit together:
flowchart LR
User([You])
subgraph Vercel["Next.js on Vercel"]
UI[Dashboard<br/>Builder UI]
API[API Routes<br/>modules · stripe · auth]
Cron[Daily Cron<br/>send-briefs]
end
subgraph Supabase["Supabase"]
DB[(Postgres<br/>profiles · modules<br/>email_logs)]
Auth[Auth]
end
Claude[["Anthropic Claude<br/>Sonnet 4.6<br/>+ web_search tool"]]
Web[("Live Web<br/>news · weather · markets")]
Resend[Resend]
Stripe[Stripe<br/>$9/mo Pro]
Inbox([Your Inbox])
User -->|configure modules| UI
UI <--> API
API <--> DB
User <--> Auth
API <--> Stripe
Cron -->|read users + modules| DB
Cron -->|prompt + tools| Claude
Claude <-->|live searches| Web
Cron -->|inline-styled HTML| Resend
Resend --> Inbox
Cron -->|log result| DB
classDef vercel fill:#0b0b0b,stroke:#0b0b0b,color:#fff
classDef supabase fill:#e6f4ea,stroke:#3ecf8e,color:#0a3d2c
classDef ai fill:#f4e8ff,stroke:#7c3aed,color:#3b0764
classDef external fill:#fef3c7,stroke:#d97706,color:#78350f
classDef edge fill:#eef2ff,stroke:#4f46e5,color:#1e1b4b
class UI,API,Cron vercel
class DB,Auth supabase
class Claude ai
class Web,Resend,Stripe external
class User,Inbox edge
sequenceDiagram
autonumber
participant Cron as Vercel Cron
participant API as /api/cron/send-briefs
participant DB as Supabase
participant Claude as Claude + web_search
participant Resend
participant Inbox as Your Inbox
Cron->>API: GET (Bearer CRON_SECRET)
API->>DB: select active users + modules
DB-->>API: user rows + module configs
loop for each user due to send
API->>API: skip if already sent today (dedupe)
API->>API: assemble prompt from module configs
API->>Claude: messages.create with web_search tool
Claude->>Claude: run multiple live web searches
Claude-->>API: structured JSON (one section per module)
API->>API: render React Email -> inline-styled HTML
API->>Resend: send email
Resend-->>Inbox: deliver
API->>DB: insert into email_logs
end
API-->>Cron: aggregate counts (attempted / succeeded / failed)
Steps 4 through 11 run in parallel across users via Promise.allSettled, so one user's failed search never blocks anyone else's brief.
- Next.js 14 (App Router) + TypeScript + Tailwind + shadcn/ui
- Supabase for auth and Postgres
- Anthropic Claude with the web search tool for content generation
- Resend + React Email for delivery and templating
- Stripe for subscriptions
- Vercel for hosting and cron
git clone https://github.com/nate-bowers/agentmail.git
cd agentmail
npm install
cp .env.example .env.local # fill in your keys
npm run devRequired environment variables (see ARCHITECTURE.md for the full table):
NEXT_PUBLIC_SUPABASE_URL/NEXT_PUBLIC_SUPABASE_ANON_KEY/SUPABASE_SERVICE_ROLE_KEYANTHROPIC_API_KEYRESEND_API_KEYSTRIPE_SECRET_KEY/STRIPE_WEBHOOK_SECRET/NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEYCRON_SECRET
Database schema lives in supabase/migrations/. Run them in order against a fresh Supabase project.
The architecture is designed for this. Each module is a single file that declares its config schema, a points cost, a natural-language search instruction, and an email renderer. Step-by-step checklist in ARCHITECTURE.md.
src/
app/
api/cron/send-briefs/ # the daily cron job
api/modules/ # CRUD for user modules
api/stripe/ # checkout + webhook
dashboard/ # the builder UI
components/
dashboard/ # builder Sheet, module cards
email/DailyBriefEmail # the email template (inline-styled React Email)
modules/forms/ # per-module config forms
lib/
modules/ # one file per module type
email/generate.ts # Claude prompt assembly + JSON extraction
email/themes.ts # email color themes
supabase/migrations/ # database schema
Live in production at dailybriefmail.com.
Private project, not currently open for contributions.