Repository avatar
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

mcptry

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

PathWhat it is
index.html, styles.css, script.tsMarketing 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.tsShared 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.jsonRewrites /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 to out/ (the output directory). A type error fails the build, so the live site stays on its last good deployment. Locally: npm install, then npm run build (or npm run typecheck). app/js/lib/blocks.js and docs.js stay JavaScript because the edge function uses identical copies.
  • Backend functions: pushed changes under supabase/functions/ deploy automatically through .github/workflows/deploy-functions.yml (needs the SUPABASE_ACCESS_TOKEN repository secret).
  • Backend: Supabase (Postgres + Auth + Storage) with the delivrie edge function. To recreate the database on a new project, run the files in supabase/migrations/ in order (or supabase 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)

SecretRequiredPurpose
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEYYesIAM user with ses:* and SNS access to delivrie-events topics
APP_URLYesPublic URL, e.g. https://delivrie.io
SYSTEM_FROMOptionalSender for invites/system mail, e.g. Delivrie <notifications@delivrie.io>
SYSTEM_REGIONOptionalDefault SES region (default eu-west-1)
ANTHROPIC_API_KEYOptionalEnables AI answers in Help → Ask Delivrie
ENFORCE_LIMITSOptionaltrue to enforce plan limits
STRIPE_SECRET_KEYFor billingStripe secret key (sk_test_… while testing, sk_live_… in production)
STRIPE_WEBHOOK_SECRETFor billingSigning secret of the Stripe webhook endpoint https://delivrie.io/api/billing/stripe/webhook (whsec_…)
DLV_PROXY_SECRETRecommendedA 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