
AI Tools
v1.1.1
active
delivrie
io.github.bysurce/delivrie
Send email, run broadcasts and automations, and answer your inbox from any AI agent.
Documentation
Delivrie
Email for developers: transactional and marketing email with a REST API, signed webhooks, a visual broadcast editor, audiences, metrics, and an MCP server for AI agents. Sending runs on Amazon SES.
Live at https://delivrie.io
Structure
| Path | What it is |
|---|---|
index.html, styles.css, script.ts | Marketing landing page |
app.html, app/ | Dashboard SPA (TypeScript ES modules, no framework; compiled to the same paths as .js) |
site.ts, site-config.ts, pricing.ts, middleware.ts | Shared site behaviour, admin website settings, the pricing page, and Vercel Routing Middleware |
scripts/build.mjs, tsconfig.json, types/ | The site build: type-checks the TypeScript and writes the deployable site to out/ |
assets/ | Logos, favicon and icons (from the Figma brand page) |
supabase/functions/delivrie/ | Edge function: REST API, SES/SNS integration, webhooks, cron, MCP server |
supabase/functions/billing/ | Edge function: subscriptions, credits and overage. Everyone pays in USD through Stripe (with Stripe Tax). Served at /api/billing/* |
supabase/migrations/ | Database schema: tables, row-level security, RPCs, cron job, storage bucket |
vercel.json | Rewrites /api/* to the edge function and app routes to app.html |
Deploy
- Frontend: static files on Vercel. Vercel runs
npm run build, which type-checks the TypeScript and writes the site toout/(the output directory). A type error fails the build, so the live site stays on its last good deployment. Locally:npm install, thennpm run build(ornpm run typecheck).app/js/lib/blocks.jsanddocs.jsstay JavaScript because the edge function uses identical copies. - Backend functions: pushed changes under
supabase/functions/deploy automatically through.github/workflows/deploy-functions.yml(needs theSUPABASE_ACCESS_TOKENrepository secret). - Backend: Supabase (Postgres + Auth + Storage) with the
delivrieedge function. To recreate the database on a new project, run the files insupabase/migrations/in order (orsupabase db push). The cron migration contains the project's function URL; change it if you deploy to a different project.
Configuration (Supabase edge function secrets)
| Secret | Required | Purpose |
|---|---|---|
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY | Yes | IAM user with ses:* and SNS access to delivrie-events topics |
APP_URL | Yes | Public URL, e.g. https://delivrie.io |
SYSTEM_FROM | Optional | Sender for invites/system mail, e.g. Delivrie <notifications@delivrie.io> |
SYSTEM_REGION | Optional | Default SES region (default eu-west-1) |
ANTHROPIC_API_KEY | Optional | Enables AI answers in Help → Ask Delivrie |
ENFORCE_LIMITS | Optional | true to enforce plan limits |
STRIPE_SECRET_KEY | For billing | Stripe secret key (sk_test_… while testing, sk_live_… in production) |
STRIPE_WEBHOOK_SECRET | For billing | Signing secret of the Stripe webhook endpoint https://delivrie.io/api/billing/stripe/webhook (whsec_…) |
DLV_PROXY_SECRET | Recommended | A long random value, set to the same value here and on Vercel (Project → Settings → Environment Variables). Lets the API trust the visitor country and address that delivrie.io passes along |
The Supabase anon key in app/js/lib/sb.js is public by design; data access is protected by row-level security.
No installation packages available.
Remote
streamable-http
https://delivrie.io/api/mcp