Cloudsteading
Local review reported failed checks. Read the scope and results of the 1 failed check before choosing a deployment. Read the findings ↓
EmailFlare’s original admin template library and Welcome email preview, captured locally with synthetic variables and its Ocean theme. Template workflows were reviewed; actual email delivery and the separate team Inbox were not tested.
EmailFlare’s original admin template library and Welcome email preview, captured locally with synthetic variables and its Ocean theme. Template workflows were reviewed; actual email delivery and the separate team Inbox were not tested.

EmailFlare

Run transactional email APIs and a team inbox on Cloudflare Workers.

EmailFlare is a self-hosted Postmark/Resend alternative built on Cloudflare (D1, Durable Objects, Email Workers, KV, Queues). Paid services required. Inspect the source and license in the linked repository.

Source & license

Upstream license: MIT

License TL;DR

You can use it, change it, self-host it and sell it. Keep the original copyright and license notice with copies of the code. You don’t have to publish your changes. The authors don’t promise it will work.

Explain MIT in plain English →

Summary of the main license. Separate packages and assets can have different terms.

Inspect repository ↗Read this project’s actual license ↗

Repository owner

@0xdps

See the upstream repository for the original creator and contributors.

Maintain this project? Maintainer verification →README badge, corrections or removal →

Cloudflare hosting

Paid services required

EmailFlare has a documented low-volume paid Cloudflare path beginning with Workers Paid ($5 USD/account/month), with separately metered usage. Arbitrary-recipient email requires Paid; database, storage and email usage above included allowances add charges.

Hosting requirements
  • Use Workers Paid for arbitrary-recipient email, starting at $5 USD/account/month; 3,000 outbound emails/month are included, then $0.35 per 1,000.
  • Workers Paid starts at $5 USD/account/month and includes 10 million requests/month plus 30 million CPU milliseconds/month; higher CPU limits do not make execution unmetered.
  • Workers Paid D1 includes 25 billion rows read/month, 50 million written/month and 5 GB storage; database usage above those amounts is metered.
  • Workers Paid KV includes 10 million reads/month, 1 million writes, deletes and lists/month each, plus 1 GB; additional usage is metered.
  • Use R2 Standard storage, at most 10 GB-month, 1 million Class A operations and 10 million Class B operations/month; provision an eligible billing-enabled R2 account.
  • Paid SQLite Durable Objects include 1 million requests/month, 400,000 GB-s duration/month and 5 GB-month SQL storage; active duration and excess database operations are metered.
  • Workers Paid Queues includes 1 million operations/month; count writes, reads, deletes, retries and each 64 KB chunk, with usage above the allowance metered.
  • Workers Paid Email Service includes 3,000 outbound emails/account/month, then $0.35 per 1,000; inbound Email Routing remains unmetered apart from Worker processing.
  • Use a small personal or team workload; domain registration and optional third-party providers are separate costs. Provision your own IDs, secrets and migrations.
Check current pricing ↗
Review findings & limitations
  • The original Email API Worker and React admin UI ran locally with isolated D1, KV and the original rate-limiter binding. Admin login, custom-template creation/editing/persistence, variable substitution and built-in theme previews worked. No email was sent.
  • All 414 original regular files match the pinned Git tree. The original committed pnpm lockfile was installed frozen with lifecycle scripts disabled; the shared packages and original email UI Vite build plus tsc --noEmit passed.
  • All 50 built-in templates returned nonempty HTML through the original preview endpoint using their defaults. Built-in update/delete returned 403; unauthenticated template reads and sending without an API key returned 401. These scoped checks are not a complete security or deliverability assessment.
  • Test Mailbox is exposed in the original Cloudflare-mode navigation, but GET /api/test-emails returns 404 from the original Email API Worker. That API is present in the Node email-server. This screen was not functional in the reviewed Worker deployment.
  • The infrastructure overview selects the two documented generated Worker templates, retaining their example status and placeholder IDs. Email API and team Inbox are separate services; the Inbox D1/R2/Queues/SQLite Durable Object and scheduled work were inspected as source, not run.
  • Email sending, real domains/DNS, provider credentials, inbound routing, bounces, suppression/list delivery behavior, the team Inbox, production deployment, billing and provider parity remain untested. The isolated screenshot contains synthetic Alex/Demo Workspace values, not real users or sent email.
  • MIT copyright belongs to the upstream 0xdps contributors. Arbitrary-recipient email requires Workers Paid under the published Cloudflare rules; the local simulator does not establish Free plan eligibility. The UI Live badge and its legacy daily quota do not prove a public deployment or current provider allowances.
Sources checked 01/10/2026

Repository snapshot: d448ea2. Hosting eligibility reflects the deployment documentation and listed assumptions.

  • resend ↗

    Both services are built on Cloudflare — Email Sending, Email Routing, D1, KV, R2, Queues, and Durable Objects — and deploy as **Cloudflare Workers** (primary, zero-ops) or as a single **Docker** container with embedded SQLite (secondary, for self-hosting).

  • postmark ↗

    Both services are built on Cloudflare — Email Sending, Email Routing, D1, KV, R2, Queues, and Durable Objects — and deploy as **Cloudflare Workers** (primary, zero-ops) or as a single **Docker** container with embedded SQLite (secondary, for self-hosting).

  • workers ↗

    { // ── Cloudflare Workers config template for emailflare ──────────────────────── // // ⚠ This is a TEMPLATE. It is tracked in git and contains REPLACE_WITH_* // placeholders. Do NOT put real resource IDs here. // // The setup script (scripts/setup.mjs / `just emailflare-api-worker-setup`) // generates the gitignored `wrangler.jsonc` from this template with your real IDs. // // ★ FIRST-TIME SETUP — one command does everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailf

  • d1 ↗

    everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update // // ★ GRADUAL ROLLOUT — upload a version and control traffic split: // pnpm rollout:upload # apply migrations + upload new version // wrangler versions deploy \ // --version-percentage <VERSION_ID>=10 # 10 % traffic // wrangler versions deploy \ // --version-percentage <VERSION_ID>=100 # full cutover // // Manual setup (if needed): // 1. `wrangler d1 create emailflare` → fill in database_id bel

  • kv ↗

    thing: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update // // ★ GRADUAL ROLLOUT — upload a version and control traffic split: // pnpm rollout:upload # apply migrations + upload new version // wrangler versions deploy \ // --version-percentage <VERSION_ID>=10 # 10 % traffic // wrangler versions deploy \ // --version-percentage <VERSION_ID>=100 # full cutover // // Manual setup (if needed): // 1. `wrangler d1 create emailflare` → fill in database_id below /

  • r2 ↗

    SETUP: // just emailflare-inbox-deploy // (creates D1, KV, R2, Queue, generates wrangler.jsonc, applies migrations, // sets secrets, builds inbox-ui, deploys) // // Manual setup (if needed): // 1. Create D1: wrangler d1 create emailflare-inbox → fill in database_id // 2. Create KV: wrangler kv namespace create emailflare-inbox-rate-limit → fill in id // 3. Create R2: wrangler r2 bucket create emailflare-inbox-attachments // 4. Apply migrations: pnpm migrations:apply:local // 5. Set secrets: // wrangler secret put SESSION_SECRET (min 32 chars, random) // wrangler secret put CF_API_TOKEN (CF token: Email Send + Zone + DNS) // wrangler se

  • durable-objects ↗

    d — Cloudflare error 10099). "migrations": [ { "tag": "v1", "new_sqlite_classes": ["NotificationsHub"], }, ], // Queue for sequence email delivery "queues": { "producers": [ { "binding": "EMAIL_QUEUE", "queue": "emailflare-inbox-sequences", }, ], "consumers": [ { "queue": "emailflare-inbox-sequences", "max_batch_size": 10, "max_batch_timeout": 30, }, ], }, // No hardcoded env vars here — all account/deployment-specific values are set // via `wrangler secret put` (see scripts/deploy-inbox.mjs + scripts/config.toml). // For local `wrangler dev`, copy .dev.vars.example → .dev.vars and fill in. // Workers Rate Limiting for API key calls (100 req / 60s pe

  • queues ↗

    "NotificationsHub"], }, ], // Queue for sequence email delivery "queues": { "producers": [ { "binding": "EMAIL_QUEUE", "queue": "emailflare-inbox-sequences", }, ], "consumers": [ { "queue": "emailflare-inbox-sequences", "max_batch_size": 10, "max_batch_timeout": 30, }, ], }, // No hardcoded env vars here — all account/deployment-specific values are set // via `wrangler secret put` (see scripts/deploy-inbox.mjs + scripts/config.toml). // For local `wrangler dev`, copy .dev.vars.example → .dev.vars and fill in. // Workers Rate Limiting for API key calls (100 req / 60s per key) "unsafe": { "bindings": [ { "name": "RATE_LIMITER", "type": "ratelimit"

  • email-workers ↗

    { // ── Cloudflare Workers config template for emailflare ──────────────────────── // // ⚠ This is a TEMPLATE. It is tracked in git and contains REPLACE_WITH_* // placeholders. Do NOT put real resource IDs here. // // The setup script (scripts/setup.mjs / `just emailflare-api-worker-setup`) // generates the gitignored `wrangler.jsonc` from this template with your real IDs. // // ★ FIRST-TIME SETUP — one command does everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update //

  • paid ↗

    { // ── Cloudflare Workers config template for emailflare ──────────────────────── // // ⚠ This is a TEMPLATE. It is tracked in git and contains REPLACE_WITH_* // placeholders. Do NOT put real resource IDs here. // // The setup script (scripts/setup.mjs / `just emailflare-api-worker-setup`) // generates the gitignored `wrangler.jsonc` from this template with your real IDs. // // ★ FIRST-TIME SETUP — one command does everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailf

  • paid ↗

    everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update // // ★ GRADUAL ROLLOUT — upload a version and control traffic split: // pnpm rollout:upload # apply migrations + upload new version // wrangler versions deploy \ // --version-percentage <VERSION_ID>=10 # 10 % traffic // wrangler versions deploy \ // --version-percentage <VERSION_ID>=100 # full cutover // // Manual setup (if needed): // 1. `wrangler d1 create emailflare` → fill in database_id bel

  • paid ↗

    thing: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update // // ★ GRADUAL ROLLOUT — upload a version and control traffic split: // pnpm rollout:upload # apply migrations + upload new version // wrangler versions deploy \ // --version-percentage <VERSION_ID>=10 # 10 % traffic // wrangler versions deploy \ // --version-percentage <VERSION_ID>=100 # full cutover // // Manual setup (if needed): // 1. `wrangler d1 create emailflare` → fill in database_id below /

  • paid ↗

    up>1, 2, 3, 4</sup> | Duration | CPU time | | --- | --- | --- | --- | | **Free** | 100,000 per day | No charge for duration | 10 milliseconds of CPU time per invocation | | **Standard** | 10 million included per month <br> +$0.30 per additional million | No charge or limit for duration | 30 million CPU milliseconds included per month<br> +$0.02 per additional million CPU milliseconds<br><br> Max of [5 minutes of CPU time](https://developers.cloudflare.com/workers/platform/limits/#account-plan-limits) per invocation (default: 30 seconds)<br> Max of 15 minutes of CPU time per [Cron Trigger](https://developers.cloudflare.com/workers/configuration/cron-triggers/) or [Queue Consumer](https://developers.cloudflare.co

  • paid ↗

    oudflare.com/workers/platform/pricing/#workers) | | --- | --- | --- | | Rows read | 5 million / day | First 25 billion / month included + $0.001 / million rows | | Rows written | 100,000 / day | First 50 million / month included + $1.00 / million rows | | Storage (per GB stored) | 5 GB (total) | First 5 GB included + $0.75 / GB-mo | Track your D1 usage To accurately track your usage, use the [meta object](https://developers.cloudflare.com/d1/worker-api/return-object/), [GraphQL Analytics API](https://developers.cloudflare.com/d1/observability/metrics-analytics/#query-via-the-graphql-api), or the [Cloudflare dashboard ↗︎](https://dash.cloudflare.com/?to=/:account/workers/d1/). Select your D1 database, then vie

  • paid ↗

    cing/). | | Free plan<sup>1</sup> | Paid plan | | --- | --- | --- | | Keys read | 100,000 / day | 10 million/month, + $0.50/million | | Keys written | 1,000 / day | 1 million/month, + $5.00/million | | Keys deleted | 1,000 / day | 1 million/month, + $5.00/million | | List requests | 1,000 / day | 1 million/month, + $5.00/million | | Stored data | 1 GB | 1 GB, + $0.50/ GB-month | <sup>1</sup> The Workers Free plan includes limited Workers KV usage. All limits reset daily at 00:00 UTC. If you exceed any one of these limits, further operations of that type will fail with an error. Note Workers KV pricing for read, write and delete operations is on a per-key basis. Bulk read operations are billed by the amount

  • paid ↗

    infrequent access storage) for 1.1 GB, you will be billed for 2 GB. ### Free tier You can use the following amount of storage and operations each month for free. | | Free | | --- | --- | | Storage | 10 GB-month / month | | Class A Operations | 1 million requests / month | | Class B Operations | 10 million requests / month | | Egress (data transfer to Internet) | Free <sup>[1](#user-content-fn-1)</sup> | Caution The free tier only applies to Standard storage, and does not apply to Infrequent Access storage. ### Storage usage Storage is billed using gigabyte-month (GB-month) as the billing metric. A GB-month is calculated by averaging the *peak* storage per day over a billing period (30 days). For examp

  • paid ↗

    jects are available both on Workers Free and Workers Paid plans. - **Workers Free plan**: Only Durable Objects with [SQLite storage backend](https://developers.cloudflare.com/durable-objects/best-practices/access-durable-objects-storage/#create-sqlite-backed-durable-object-class) are available. - **Workers Paid plan**: Durable Objects with the SQLite storage backend are available. The [key-value storage backend](https://developers.cloudflare.com/durable-objects/reference/durable-objects-migrations/#storage-backends) is only available to accounts that already have a key-value-backed namespace. If you wish to downgrade from a Workers Paid plan to a Workers Free plan, you must first ensure that you have deleted all Durable Object namespaces with the key-value storage backend. On Workers Free plan: - If you exceed any one of the free tier limits, further operations of that type will fail with an error. - Daily free limits reset at 00:00 UTC. ## Compute billing Durable Objects are billed for compute duration (wall-clock time) while the Durable Object is actively running or is idle in memory but unable to [hibernate](https://developers.cloudflare.com/durable-objects/concepts/durable-object-lifecycle/). Durable Objects that are idle and eligible for hibernation are not billed for duration, even before the runtime has hibernated them. Requests to a D

  • paid ↗

    dth) charges. | | Workers Free | Workers Paid | | --- | --- | --- | | Standard operations | 10,000 operations/day included | 1,000,000 operations/month included + $0.40/million operations | | Message retention | 24 hours (non-configurable) | 4 days default, configurable up to 14 days | In most cases, it takes 3 operations to deliver a message: 1 write, 1 read, and 1 delete. Therefore, you can use the following formula to estimate your monthly bill: ```txt ((Number of Messages * 3) - 1,000,000) / 1,000,000 * $0.40 ``` Additionally: - Each retry incurs a read operation. A batch of 10 messages that is retried would incur 10 operations for each retry. - Messages that reach the maximum retries and that are wr

  • paid ↗

    g is based on your Cloudflare plan and email usage. ## Plan pricing Email Routing is available on both the Workers Free and Workers Paid plans. Sending to arbitrary recipients requires the Workers Paid plan. Sending to [verified destination addresses](https://developers.cloudflare.com/email-service/configuration/email-routing-addresses/#destination-addresses) in your account is free on all plans, including when only Email Routing is configured. | | Workers Free | Workers Paid | | --- | --- | --- | | **Outbound emails (Email Sending)** | Not available | 3,000 included per month, then $0.35 per 1,000 emails | | **Inbound emails (Email Routing)** | Unlimited | Unlimited | The 3,000 included emails apply per a

  • paid ↗

    billed accordingly. | | Free plan | Paid plan | | --- | --- | --- | | Requests | 100,000 / day | 1 million / month, + $0.15/million<br> Includes HTTP requests, RPC sessions<sup>1</sup>, WebSocket messages<sup>2</sup>, and alarm invocations | | Duration<sup>3</sup> | 13,000 GB-s / day | 400,000 GB-s / month, + $12.50/million GB-s<sup>4,5</sup> | <details> <summary> Footnotes </summary> <sup>1</sup> Each <a href="https://developers.cloudflare.com/workers/runtime-apis/rpc/lifecycle/">RPC session</a> is billed as one request to your Durable Object. Every <a href="https://developers.cloudflare.com/durable-objects/best-practices/create-durable-object-stubs-and-send-requests/">RPC method call</a> on a <a href="https://developers.cloudflare.com/durable-objects/">Durable Objects stub</a> is its own RPC session and therefore a single billed request. RPC method calls can return objects (stubs) extending <a href="https://developers.cloudflare.com/workers/runtime-apis/rpc/lifecycle/#lifetimes-memory-and-resource-management"><code>RpcTarget</code></a> and invo

  • paid ↗

    /). | | Workers Free plan | Workers Paid plan | | --- | --- | --- | | Rows reads <sup>1,2</sup> | 5 million / day | First 25 billion / month included + $0.001 / million rows | | Rows written <sup>1,2,3,4</sup> | 100,000 / day | First 50 million / month included + $1.00 / million rows | | SQL Stored data <sup>5</sup> | 5 GB (total) | 5 GB-month, + $0.20/ GB-month | <details> <summary> Footnotes </summary> <sup>1</sup> Rows read and rows written included limits and rates match <a href="https://developers.cloudflare.com/d1/platform/pricing/">D1 pricing</a>, Cloudflare's serverless SQL database. <sup>2</sup> Key-value methods like <code>get()</code>, <code>put()</code>, <code>delete()</code>, or <code>list(

  • paid ↗

    es Functions, Workers KV, Hyperdrive, and Durable Objects usage for a minimum charge of $5 USD per month for an account. The plan includes increased initial usage allotments, with clear charges for usage that exceeds the base plan. There are no additional charges for data transfer (egress) or throughput (bandwidth). All included usage is on a monthly basis. Pages Functions billing All [Pages Functions](https://developers.cloudflare.com/pages/functions/) are billed as Workers. All pricing and inclusions in this document apply to Pages Functions. Refer to [Functions Pricing](https://developers.cloudflare.com/pages/functions/pricing/) for more information on Pages Functions pricing. ## Workers Users on the Wo

  • paid ↗

    Routing is available on both the Workers Free and Workers Paid plans. Sending to arbitrary recipients requires the Workers Paid plan. Sending to [verified destination addresses](https://developers.cloudflare.com/email-service/configuration/email-routing-addresses/#destination-addresses) in your account is free on all plans, including when only Email Routing is configured. | | Workers Free | Workers Paid | | --- | --- | --- | | **Outbound emails (Email Sending)** | Not available | 3,000 included per month, then $0.35 per 1,000 emails | | **Inbound emails (Email Routing)** | Unlimited | Unlimited | The 3,000 included emails apply per account, per month, aligned with your Cloudflare subscription billing cycle. Emails that hard-bounce or are otherwise accepted by Email Service count toward the quota. Emails rejected at the API boundary, including sends blocke

  • MIT ↗

    MIT License Copyright (c) 2026 0xdps Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMEN

  • architecture ↗

    { // ── Cloudflare Workers config template for emailflare ──────────────────────── // // ⚠ This is a TEMPLATE. It is tracked in git and contains REPLACE_WITH_* // placeholders. Do NOT put real resource IDs here. // // The setup script (scripts/setup.mjs / `just emailflare-api-worker-setup`) // generates the gitignored `wrangler.jsonc` from this template with your real IDs. // // ★ FIRST-TIME SETUP — one command does everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailf

  • architecture ↗

    everything: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update // // ★ GRADUAL ROLLOUT — upload a version and control traffic split: // pnpm rollout:upload # apply migrations + upload new version // wrangler versions deploy \ // --version-percentage <VERSION_ID>=10 # 10 % traffic // wrangler versions deploy \ // --version-percentage <VERSION_ID>=100 # full cutover // // Manual setup (if needed): // 1. `wrangler d1 create emailflare` → fill in database_id bel

  • architecture ↗

    thing: // just emailflare-api-worker-setup // (creates D1 + KV, generates wrangler.jsonc, applies migrations, sets secrets, deploys) // // ★ DEPLOY UPDATES — migrates schema then redeploys atomically: // just emailflare-api-worker-update // // ★ GRADUAL ROLLOUT — upload a version and control traffic split: // pnpm rollout:upload # apply migrations + upload new version // wrangler versions deploy \ // --version-percentage <VERSION_ID>=10 # 10 % traffic // wrangler versions deploy \ // --version-percentage <VERSION_ID>=100 # full cutover // // Manual setup (if needed): // 1. `wrangler d1 create emailflare` → fill in database_id below /

  • architecture ↗

    SETUP: // just emailflare-inbox-deploy // (creates D1, KV, R2, Queue, generates wrangler.jsonc, applies migrations, // sets secrets, builds inbox-ui, deploys) // // Manual setup (if needed): // 1. Create D1: wrangler d1 create emailflare-inbox → fill in database_id // 2. Create KV: wrangler kv namespace create emailflare-inbox-rate-limit → fill in id // 3. Create R2: wrangler r2 bucket create emailflare-inbox-attachments // 4. Apply migrations: pnpm migrations:apply:local // 5. Set secrets: // wrangler secret put SESSION_SECRET (min 32 chars, random) // wrangler secret put CF_API_TOKEN (CF token: Email Send + Zone + DNS) // wrangler se

  • architecture ↗

    d — Cloudflare error 10099). "migrations": [ { "tag": "v1", "new_sqlite_classes": ["NotificationsHub"], }, ], // Queue for sequence email delivery "queues": { "producers": [ { "binding": "EMAIL_QUEUE", "queue": "emailflare-inbox-sequences", }, ], "consumers": [ { "queue": "emailflare-inbox-sequences", "max_batch_size": 10, "max_batch_timeout": 30, }, ], }, // No hardcoded env vars here — all account/deployment-specific values are set // via `wrangler secret put` (see scripts/deploy-inbox.mjs + scripts/config.toml). // For local `wrangler dev`, copy .dev.vars.example → .dev.vars and fill in. // Workers Rate Limiting for API key calls (100 req / 60s pe

  • architecture ↗

    "NotificationsHub"], }, ], // Queue for sequence email delivery "queues": { "producers": [ { "binding": "EMAIL_QUEUE", "queue": "emailflare-inbox-sequences", }, ], "consumers": [ { "queue": "emailflare-inbox-sequences", "max_batch_size": 10, "max_batch_timeout": 30, }, ], }, // No hardcoded env vars here — all account/deployment-specific values are set // via `wrangler secret put` (see scripts/deploy-inbox.mjs + scripts/config.toml). // For local `wrangler dev`, copy .dev.vars.example → .dev.vars and fill in. // Workers Rate Limiting for API key calls (100 req / 60s per key) "unsafe": { "bindings": [ { "name": "RATE_LIMITER", "type": "ratelimit"

Locally captured application screenshot · 0xdps/emailflare repository contributors; captured locally by Cloudsteading ↗. Uses demonstration data. Local execution does not verify a production Cloudflare deployment.

What we tested locally

Original Hono Email API Worker and React/Vite admin SPA in Wrangler 4.145.0 local workerd, with isolated D1/KV state and the original rate-limiter binding. The original SQL seed supplies 50 system templates. One custom template and preview variables Alex, Demo Workspace and https://example.com/demo are synthetic local fixtures. No real domain, recipient, customer record, sent message or provider credentials were used.

  • Passed: Original source and dependency preservation. All 414 original regular files match their pinned Git blob hashes. The original pnpm lockfile was installed frozen with lifecycle scripts disabled; no upstream source was edited.
  • Passed: Original UI and shared package compilation. The original shared package build passed. The email UI built with VITE_DEPLOYMENT_MODE=cloudflare using Vite and its original tsc --noEmit command.
  • Passed: Isolated Worker and migration startup. The original Hono Worker ran in local workerd with a separate config and isolated local D1/KV state. Both original Email API SQL migrations were applied; the seed created 50 system templates.
  • Passed: Original admin login and guarded endpoints. Codex Browser logged in with a disposable local admin token and a real signed session cookie. Unauthenticated template reads returned 401, a wrong token returned 401, and sending without an API key returned 401. No email was attempted with valid credentials.
  • Passed: Custom template creation editing and persistence. Codex Browser created demo-welcome and renamed it to Demo workspace welcome. The updated record remained after a browser reload and was verified through the original D1-backed API.
  • Passed: Template variable and theme rendering. The original editor rendered Demo Workspace and Alex from synthetic variables. The original Welcome template preview rendered those values and an example.com link; Ocean changed HTML styling while retaining the subject.
  • Passed: Fifty built-in template previews. All 50 original system templates returned HTTP 200 and nonempty HTML from their preview endpoints using default variables. This checks basic rendering, not correctness for every possible variable set or email client.
  • Passed: System template modification guards. Authenticated update and delete attempts against the original Welcome system template both returned 403. No system template was changed or removed.
  • Needs a fix: Test Mailbox on the original Email Worker. The Cloudflare-mode UI exposes Test Mailbox, but its authenticated /api/test-emails request returned HTTP 404 with plain text. The route exists in the original Node email-server and is absent from the Email API Worker.
  • Not tested: Provider delivery and separate Inbox service. No provider token or Cloudflare account credential was supplied. Sending, DNS/domain activation, inbound routing, bounces, real subscription/suppression behavior, R2/Queues/Inbox Durable Objects, scheduled jobs, public deployment and billing were not tested.
Capture setup and limits
  • All 414 original regular files remain unchanged. Dependency installation used the committed pnpm lockfile with --frozen-lockfile --ignore-scripts, followed by original shared-package and email-UI build commands.
  • The admin SPA uses the original VITE_DEPLOYMENT_MODE=cloudflare build setting. The separate local Wrangler file points at the original Email Worker and built SPA, substitutes isolated D1/KV names and IDs, and keeps the original rate-limiter declaration.
  • Only the two original Email API SQL migrations were applied to the separate local state. ADMIN_TOKEN and SESSION_SECRET are disposable local random values; no Cloudflare account or provider token is configured.
  • ADMIN_ORIGIN is the bare local hostname 127.0.0.1:4401 because the original origin parser prepends the scheme. PUBLIC_URL points at the same loopback origin. Remote routes, resource creation and upstream setup/deploy scripts were not used.
  • The screenshot is a local source review, not a public EmailFlare deployment or evidence of delivered mail. The original Live UI badge is a label and does not establish production state.
  • The original Cloudflare-mode navigation exposes Test Mailbox, but the Email API Worker does not implement its API and returned 404. The Node server path provides that route; the screenshot must not imply that all navigation items work on Workers.
  • Email delivery, real sender domains/DNS, inbound routing, bounces, delivery operations, subscriber/suppression behavior and email-client rendering were not tested.
  • The team Inbox Worker, R2 attachments, Queues, notifications Durable Object and cron jobs were reviewed as source only. No production resources or scheduler were connected.
  • Local workerd execution is not a billing or Free entitlement test. Arbitrary-recipient sending is assessed as Workers Paid; optional usage, domains and maintenance have separate costs.

What it can replace

Compare the workflow you need. These mappings describe overlap; full feature parity requires a separate comparison.

Resend logoResend ↗

Editorial workflow alternative for transactional email APIs, templates, delivery records and suppressions. Local review verified admin/template workflows only, found the Worker Test Mailbox API missing, and did not test real email delivery, provider operations, SLAs or full integration parity.

See supporting source ↗
Postmark logoPostmark ↗

Editorial workflow alternative for transactional email APIs, templates, delivery records and suppressions. Local review verified admin/template workflows only, found the Worker Test Mailbox API missing, and did not test real email delivery, provider operations, SLAs or full integration parity.

See supporting source ↗
Workflow overlap
Pricing not verified
→ D1 + Durable Objects + Email Workers
Workflow overlap
Pricing not verified
→ D1 + Durable Objects + Email Workers

How it works

The shape of EmailFlare on Cloudflare, and how it stacks up against the rented tools it replaces.

Diagram target: services/email-worker/wrangler.example.jsonc, services/inbox-worker/wrangler.example.jsonc. Other repository deployments are listed in the source evidence below; they are not required by this target.

Architecture

Diagram of deployment declarations at the reviewed commit. Each app has its own entrypoint; declared resources do not prove runtime calls. Follow file and line sources below.

View upstream source ↗

Configuration and workflow sources

Reviewed commit d448ea205937. This configuration evidence comes from reading source files. Execution checks, when available, appear in the project's runtime review.

Deployment configuration · 5 files
services/email-bridge/wrangler.jsonc ↗

Cloudflare Workers · compatibility 2025-05-01

emailflare-api-bridge · default

Entrypoint: src/index.ts

    No resource bindings declared in this scope.

    services/inbox-bridge/wrangler.jsonc ↗

    Cloudflare Workers · compatibility 2025-01-01

    emailflare-inbox-bridge · default

    Entrypoint: src/index.ts

      No resource bindings declared in this scope.

      services/email-worker/wrangler.example.jsonc ↗

      Cloudflare Workers · documented installation template; operator setup required · compatibility 2025-05-01

      Selected from the upstream installation instructions ↗. This is a template to configure in your account; no fresh deployment is established.

      emailflare-api-worker · default

      Entrypoint: src/index.ts

      Static assets: ../email-ui/dist · single-page-application

      • DB → D1
      • RATE_LIMIT_KV → KV
      • RATE_LIMITER → Workers Rate Limiting
      • ASSETS → Static assets
      services/inbox-worker/wrangler.example.jsonc ↗

      Cloudflare Workers · documented installation template; operator setup required · compatibility 2025-05-01

      Selected from the upstream installation instructions ↗. This is a template to configure in your account; no fresh deployment is established.

      emailflare-inbox-worker · default

      Entrypoint: src/index.ts

      Static assets: ../inbox-ui/dist · single-page-application

      Cron triggers (UTC): */5 * * * *

      • DB → D1
      • RATE_LIMIT_KV → KV
      • ATTACHMENTS → R2
      • NOTIFICATIONS → Durable Objects · class NotificationsHub
      • EMAIL_QUEUE → Queues (producer) · queue emailflare-inbox-sequences
      • emailflare-inbox-sequences → Queues (consumer) · queue emailflare-inbox-sequences
      • RATE_LIMITER → Workers Rate Limiting
      • ASSETS → Static assets
      services/landing/wrangler.jsonc ↗

      Cloudflare Workers · compatibility 2026-04-28

      emailflare · default

      Static assets: ./dist · 404-page

      • Static assets → Static assets

      Named environments are separate deployments. Bindings are shown only where declared. Configured routes are URL patterns, not verified application endpoints.

      Runtime source · handlers, binding usage and workflow steps

      Observed TypeScript/JavaScript declarations from Worker entrypoints and resolved relative imports. Calls and workflow steps may run conditionally; their listed order is not a proven end-to-end request flow. Router declarations may be mounted under a prefix or may not be registered. This shows code wiring, not a successful deployment or runtime test. Dynamic wiring, aliases and generated code may not resolve.

      scripts/setup.mjs ↗
      • L37 · loadConfig calls (conditional paths may differ): existsSync, parseToml, readFileSync, die
      • L69 · run calls (conditional paths may differ): execSync
      • L77 · capture calls (conditional paths may differ): spawnSync
      • L87 · log calls (conditional paths may differ): process.stdout.write
      • L91 · ok calls (conditional paths may differ): process.stdout.write
      • L95 · warn calls (conditional paths may differ): process.stdout.write
      • L99 · die calls (conditional paths may differ): process.stderr.write, process.exit
      • L104 · promptSecret calls (conditional paths may differ): process.stdout.write, createInterface, process.stdin.setRawMode, chunk.toString, process.stdin.removeListener, rl.close, resolve, process.exit, value.slice, process.stdin.on, process.stdin.resume
      • L115 · onData calls (conditional paths may differ): chunk.toString, process.stdin.setRawMode, process.stdin.removeListener, rl.close, process.stdout.write, resolve, process.exit, value.slice

      Environment references: process.env.EMAILFLARE_DB_NAME · process.env.CLOUDFLARE_API_TOKEN · process.env.CLOUDFLARE_ACCOUNT_ID

      packages/email-core/src/cloudflare.ts ↗
      • L31 · cfFetch calls (conditional paths may differ): fetch, res.json
      • L65 · listAllZones calls (conditional paths may differ): fetch, res.json, all.push
      • L100 · getZoneByHostname calls (conditional paths may differ): hostname.split, join, parts.slice, cfFetch, encodeURIComponent
      • L132 · createSendingSubdomain calls (conditional paths may differ): cfFetch, JSON.stringify
      • L139 · getSendingSubdomain calls (conditional paths may differ): cfFetch
      • L147 · listSendingSubdomains calls (conditional paths may differ): cfFetch
      • L161 · getSubdomainDnsRecords calls (conditional paths may differ): cfFetch
      • L180 · enableEmailRouting calls (conditional paths may differ): cfFetch
      • L191 · getCatchAllRule calls (conditional paths may differ): cfFetch
      • L200 · setCatchAllToWorker calls (conditional paths may differ): cfFetch, JSON.stringify
      • L233 · sendEmail calls (conditional paths may differ): Object.keys, cfFetch, JSON.stringify
      • L279 · getCloudflareTokenStatus calls (conditional paths may differ): cfFetch
      • L371 · getBounceWorkerInfo calls (conditional paths may differ): cfFetch
      • L394 · deployBounceForwarder calls (conditional paths may differ): JSON.stringify, join, fetch, res.json
      • L442 · setWorkerSecret calls (conditional paths may differ): cfFetch, JSON.stringify
      packages/email-core/src/index.ts ↗
      • L211 · shortId calls (conditional paths may differ): slice, generateId
      • L231 · parsePagination calls (conditional paths may differ): parseInt, Number.isFinite, Math.max, Math.min
      • L265 · hbsGet calls (conditional paths may differ): path.split
      • L279 · hbsTruthy calls (conditional paths may differ): Array.isArray
      • L288 · hbsRender calls (conditional paths may differ): template.indexOf, tokens.push, template.slice, trim, raw.startsWith, raw.slice, expr.match, hbsGet, Array.isArray, walk, Object.entries, hbsTruthy, String, expr.startsWith
      • L321 · walk calls (conditional paths may differ): expr.match, hbsGet, Array.isArray, walk, Object.entries, trim, hbsTruthy, String, expr.startsWith
      • L477 · applyVariables calls (conditional paths may differ): hbsRender
      • L485 · toSlug calls (conditional paths may differ): replace, name.toLowerCase
      • L497 · listUnsubscribeHeaders calls (conditional paths may differ): origin.replace, encodeURIComponent
      • L542 · sendWithLog calls (conditional paths may differ): toISOString, opts.resolveDomainId, opts.deliver, opts.insertLog, generateId
      • L603 · resolveDomainId calls (conditional paths may differ): fromAddress.split, db.query
      • L617 · checkSuppressed calls (conditional paths may differ): db.query, email.toLowerCase
      • L627 · issueUnsubscribeToken calls (conditional paths may differ): opts.generateToken, db.run, opts.email.toLowerCase, toISOString, listUnsubscribeHeaders
      packages/email-core/src/logger.ts ↗
      • L42 · createLogger calls (conditional paths may differ): getMinLevel, isProduction, toISOString, console.error, JSON.stringify, console.warn, console.log, slice, split, log
      • L46 · log calls (conditional paths may differ): toISOString, console.error, JSON.stringify, console.warn, console.log, slice, split

      Environment references: process.env.LOG_LEVEL · process.env.NODE_ENV

      packages/inbox-core/src/index.ts ↗
      • L240 · parseEmailAddress calls (conditional paths may differ): match, str.trim, replace, trim, toLowerCase
      • L252 · extractPlainText calls (conditional paths may differ): trim, replace, html.replace
      • L285 · buildReplyToAddress calls (conditional paths may differ): inboxEmail.lastIndexOf, inboxEmail.slice
      • L294 · parseThreadToken calls (conditional paths may differ): address.lastIndexOf, address.slice, local.match
      • L302 · stripThreadToken calls (conditional paths may differ): parseThreadToken, address.lastIndexOf, address.slice, local.replace
      • L329 · upsertPerson calls (conditional paths may differ): db.query, opts.generateId, db.run, toISOString
      • L357 · resolveThreadId calls (conditional paths may differ): db.query, opts.generateId
      scripts/deploy-inbox-standalone.mjs ↗
      • L37 · loadConfig calls (conditional paths may differ): existsSync, parseToml, readFileSync, die
      • L67 · run calls (conditional paths may differ): execSync
      • L75 · capture calls (conditional paths may differ): spawnSync
      • L85 · log calls (conditional paths may differ): process.stdout.write
      • L88 · ok calls (conditional paths may differ): process.stdout.write
      • L91 · warn calls (conditional paths may differ): process.stdout.write
      • L94 · die calls (conditional paths may differ): process.stderr.write, process.exit
      • L99 · prompt calls (conditional paths may differ): createInterface, rl.question, rl.close, resolve, answer.trim
      • L110 · promptSecret calls (conditional paths may differ): process.stdout.write, createInterface, process.stdin.setRawMode, chunk.toString, process.stdin.removeListener, rl.close, resolve, process.exit, value.slice, process.stdin.on, process.stdin.resume
      • L118 · onData calls (conditional paths may differ): chunk.toString, process.stdin.setRawMode, process.stdin.removeListener, rl.close, process.stdout.write, resolve, process.exit, value.slice
      • L231 · setSecret calls (conditional paths may differ): spawnSync, warn, ok
      • L300 · randomHex calls (conditional paths may differ): crypto.getRandomValues, randomFillSync, join, map, Array.from, padStart, b.toString

      Environment references: process.env.CLOUDFLARE_API_TOKEN

      scripts/deploy-inbox.mjs ↗
      • L42 · loadConfig calls (conditional paths may differ): existsSync, parseToml, readFileSync, die
      • L75 · run calls (conditional paths may differ): execSync
      • L83 · capture calls (conditional paths may differ): spawnSync
      • L93 · log calls (conditional paths may differ): process.stdout.write
      • L96 · ok calls (conditional paths may differ): process.stdout.write
      • L99 · warn calls (conditional paths may differ): process.stdout.write
      • L102 · die calls (conditional paths may differ): process.stderr.write, process.exit
      • L107 · prompt calls (conditional paths may differ): createInterface, rl.question, rl.close, resolve, answer.trim
      • L117 · promptSecret calls (conditional paths may differ): process.stdout.write, createInterface, process.stdin.setRawMode, chunk.toString, process.stdin.removeListener, rl.close, resolve, process.exit, value.slice, process.stdin.on, process.stdin.resume
      • L125 · onData calls (conditional paths may differ): chunk.toString, process.stdin.setRawMode, process.stdin.removeListener, rl.close, process.stdout.write, resolve, process.exit, value.slice

      Environment references: process.env.CLOUDFLARE_API_TOKEN · process.env.CLOUDFLARE_ACCOUNT_ID

      scripts/setup-cf-workers.mjs ↗
      • L38 · log calls (conditional paths may differ): process.stdout.write
      • L41 · ok calls (conditional paths may differ): process.stdout.write
      • L44 · warn calls (conditional paths may differ): process.stdout.write
      • L47 · info calls (conditional paths may differ): process.stdout.write
      • L50 · die calls (conditional paths may differ): process.stderr.write, process.exit
      • L54 · hr calls (conditional paths may differ): process.stdout.write, repeat
      • L61 · capture calls (conditional paths may differ): spawnSync
      • L71 · run calls (conditional paths may differ): execSync
      • L75 · generateSecret calls (conditional paths may differ): toString, randomBytes
      • L79 · prompt calls (conditional paths may differ): createInterface, rl.question, rl.close, resolve, answer.trim
      • L90 · promptSecret calls (conditional paths may differ): ok, process.stdout.write, createInterface, process.stdin.setRawMode, chunk.toString, process.stdin.removeListener, rl.close, resolve, process.exit, value.slice, process.stdin.on, process.stdin.resume
      • L100 · onData calls (conditional paths may differ): chunk.toString, process.stdin.setRawMode, process.stdin.removeListener, rl.close, process.stdout.write, resolve, process.exit, value.slice
      • L128 · promptMenu calls (conditional paths may differ): process.stdout.write, bold, choices.forEach, prompt, parseInt, warn
      • L141 · setSecret calls (conditional paths may differ): spawnSync, die, ok

      Environment references: process.env.CLOUDFLARE_API_TOKEN · process.env.CLOUDFLARE_ACCOUNT_ID

      scripts/setup-email-routing.mjs ↗
      • L31 · flag calls (conditional paths may differ): args.indexOf
      • L70 · cf calls (conditional paths may differ): fetch, JSON.stringify, res.text, JSON.parse
      • L90 · printCf calls (conditional paths may differ): trim, c.green, c.red, console.log, c.dim, join, j.messages.map, Array.isArray, j.result.map, JSON.stringify, result.text.slice
      • L119 · verifyToken calls (conditional paths may differ): console.log, c.cyan, cf, printCf, c.green, c.red
      • L133 · verifyAccount calls (conditional paths may differ): console.log, c.cyan, c.yellow, cf, printCf, c.green, join, r.json.result.map
      • L151 · findZone calls (conditional paths may differ): console.log, c.cyan, cf, encodeURIComponent, printCf, c.red, c.green, c.dim, c.yellow, perms.includes, missing.push, missing.join
      • L200 · enableRouting calls (conditional paths may differ): console.log, c.cyan, cf, printCf, test, c.yellow
      • L214 · setCatchAll calls (conditional paths may differ): console.log, c.cyan, cf, printCf
      • L229 · showCatchAll calls (conditional paths may differ): console.log, c.cyan, cf, printCf
      • L237 · main calls (conditional paths may differ): console.log, c.cyan, repeat, console.error, c.red, process.exit, c.dim, CF_API_TOKEN.slice, verifyToken, verifyAccount, prompt, findZone, enableRouting, setCatchAll, showCatchAll, c.green, c.yellow
      • L298 · prompt calls (conditional paths may differ): process.stdout.write, c.cyan, process.stdin.once, resolvePromise, trim, d.toString, process.stdin.resume

      Environment references: process.env.CF_API_TOKEN · process.env.CF_ACCOUNT_ID

      services/email-bridge/src/index.ts ↗
      • L17 · email handler exported · references EMAIL_SERVER_URL, WEBHOOK_SECRET · calls arrayBuffer, env.EMAIL_SERVER_URL.replace, fetch

      Environment references: env.EMAIL_SERVER_URL · env.WEBHOOK_SECRET

      services/email-server/src/db.ts ↗
      • L47 · deleteDomainCascade calls (conditional paths may differ): apiKeyDomains.delete, domains.delete
      • L54 · bootstrapSchema calls (conditional paths may differ): db.exec, log.info
      • L297 · seedSystemTemplates calls (conditional paths may differ): toISOString, Object.entries, templates.findOne, templates.insert, generateId, log.info

      Environment references: env.MESAHUB_URL · process.env.NODE_ENV

      services/email-server/src/env.ts ↗
      • L12 · sessionSecret calls (conditional paths may differ): toString, crypto.randomBytes, log.warn
      • L27 · adminToken calls (conditional paths may differ): required

      Environment references: process.env.SESSION_SECRET · process.env.NODE_ENV · process.env.PORT · process.env.CF_API_TOKEN · process.env.CF_ACCOUNT_ID · process.env.WEBHOOK_SECRET · process.env.BOUNCE_WORKER_NAME · process.env.PUBLIC_URL · process.env.RAILWAY_PUBLIC_DOMAIN

      services/email-server/src/index.ts ↗
      • L63 · app.use("*")
      • L64 · app.use("*")
      • L67 · app.use("/v1/*")
      • L77 · app.use("/api/*")
      • L88 · app.get("/health")
      • L97 · app.route("/v1/unsubscribe")
      • L100 · app.use("/v1/send")
      • L101 · app.use("/v1/send")
      • L112 · app.route("/v1/send")
      • L115 · app.route("/api/auth")
      • L119 · admin.use("*")
      • L120 · admin.get("/layouts")
      • L125 · admin.post("/layouts/:id/preview")
      • L133 · admin.route("/domains")
      • L134 · admin.route("/templates")
      • L135 · admin.route("/keys")
      • L136 · admin.route("/logs")
      • L137 · admin.route("/test-emails")
      • L138 · admin.route("/stats")
      • L139 · admin.route("/cloudflare")
      • L140 · admin.route("/suppressions")
      • L141 · admin.route("/lists")
      • L143 · app.route("/api")
      • L147 · app.route("/api/webhooks")
      • L38 · parseAdminOrigins calls (conditional paths may differ): map, filter, raw.split, d.trim, d.startsWith
      • L159 · main calls (conditional paths may differ): log.info, String, env.MESAHUB_URL.replace, bootstrapSchema, seedSystemTemplates, serve, server.close, process.exit, process.on, shutdown
      • L176 · shutdown calls (conditional paths may differ): log.info, server.close, process.exit

      Environment references: env.NODE_ENV · process.env.ADMIN_ORIGIN · env.PORT · env.MESAHUB_URL · env.ADMIN_TOKEN · env.CF_API_TOKEN

      services/email-server/src/lib/bounce-parser.ts ↗
      • L35 · isBounce calls (conditional paths may differ): toLowerCase, BOUNCE_SUBJECTS.some, sub.includes, BOUNCE_FROM.some, from.includes
      • L41 · isComplaint calls (conditional paths may differ): toLowerCase, email.headers.find, h.key.toLowerCase, includes, ct.toLowerCase, COMPLAINT_SUBJECTS.some, sub.includes, COMPLAINT_FROM.some, from.includes
      • L51 · extractRecipient calls (conditional paths may differ): content.match, toLowerCase, trim
      • L67 · classifyBounce calls (conditional paths may differ): content.match, code.startsWith, test, spamPhrases.some, includes, content.toLowerCase, hardPhrases.some
      • L106 · extractReason calls (conditional paths may differ): content.match, slice, split, trim
      • L124 · parseEmail calls (conditional paths may differ): parse
      services/email-server/src/lib/mesahub-url.ts ↗
      • L19 · parseMesahubUrl calls (conditional paths may differ): raw.startsWith, JSON.stringify, raw.slice, raw.replace, host.includes, host.endsWith, decodeURIComponent, replace, parsed.pathname.replace
      services/email-server/src/middleware/auth.ts ↗
      • L20 · getSession calls (conditional paths may differ): getCookie, unsealData
      • L30 · saveSession calls (conditional paths may differ): sealData, setCookie
      • L41 · clearSession calls (conditional paths may differ): deleteCookie

      Environment references: env.SESSION_SECRET · env.NODE_ENV

      services/email-server/src/middleware/loginRateLimit.ts ↗
      • L24 · checkLoginRateLimit calls (conditional paths may differ): Date.now, store.get, store.set
      services/email-server/src/middleware/rateLimit.ts ↗
      • L32 · checkRateLimit calls (conditional paths may differ): Date.now, store.get, store.set
      services/email-server/src/routes/auth.ts ↗
      • L12 · app.post("/login")
      • L32 · app.post("/logout")
      • L38 · app.get("/me")

      Environment references: env.ADMIN_TOKEN

      services/email-server/src/routes/cloudflare.ts ↗
      • L22 · app.get("/status")
      • L31 · app.get("/bounce-status")
      • L64 · app.post("/bounce-setup")
      • L97 · app.post("/bounce-setup-domain/:domainId")
      • L117 · app.post("/backfill-domains")

      Environment references: env.CF_API_TOKEN · env.CF_ACCOUNT_ID · env.BOUNCE_WORKER_NAME · env.PUBLIC_URL

      services/email-server/src/routes/domains.ts ↗
      • L21 · app.get("/")
      • L27 · app.get("/:id")
      • L34 · app.post("/")
      • L114 · app.get("/:id/dns")
      • L124 · app.post("/:id/verify")
      • L144 · app.delete("/:id")

      Environment references: env.CF_API_TOKEN · env.BOUNCE_WORKER_NAME · env.CF_ACCOUNT_ID

      services/email-server/src/routes/keys.ts ↗
      • L10 · app.get("/")
      • L17 · app.post("/")
      • L52 · app.delete("/:id")
      services/email-server/src/routes/lists.ts ↗
      • L14 · app.get("/")
      • L20 · app.post("/")
      • L36 · app.delete("/:id")
      services/email-server/src/routes/logs.ts ↗
      • L13 · app.get("/")
      • L80 · app.get("/:id")
      services/email-server/src/routes/send.ts ↗
      • L20 · app.post("/")

      Environment references: env.PUBLIC_URL · env.CF_API_TOKEN · env.CF_ACCOUNT_ID

      services/email-server/src/routes/stats.ts ↗
      • L26 · app.get("/")
      • L8 · rangeStart calls (conditional paths may differ): now.setDate, now.getDate, now.setHours, now.toISOString
      services/email-server/src/routes/suppressions.ts ↗
      • L15 · suppressionsRoutes.get("/")
      • L61 · suppressionsRoutes.post("/")
      • L83 · suppressionsRoutes.delete("/:id")
      services/email-server/src/routes/templates.ts ↗
      • L12 · app.get("/")
      • L25 · app.get("/themes")
      • L35 · app.get("/:idOrSlug")
      • L44 · app.post("/")
      • L70 · app.put("/:id")
      • L107 · app.delete("/:id")
      • L117 · app.post("/:id/preview")
      services/email-server/src/routes/testEmails.ts ↗
      • L13 · app.get("/")
      • L65 · app.get("/:id")
      • L73 · app.delete("/:id")
      services/email-server/src/routes/unsubscribe.ts ↗
      • L31 · app.get("/")
      • L44 · app.post("/")
      • L16 · performUnsubscribe calls (conditional paths may differ): unsubscribeTokens.findOne, db.exec, generateId, rec.email.toLowerCase, toISOString, unsubscribeTokens.delete
      services/email-server/src/routes/webhooks.ts ↗
      • L21 · webhooksRoutes.use("/bounce")
      • L49 · webhooksRoutes.post("/bounce")

      Environment references: env.WEBHOOK_SECRET

      services/email-server/src/services/testEmail.ts ↗
      • L12 · storeTestEmail calls (conditional paths may differ): crypto.randomUUID
      services/email-ui/src/components/Layout.tsx ↗
      • L88 · AppSidebar calls (conditional paths may differ): navSections.map, section.items.map
      • L209 · Layout calls (conditional paths may differ): useRouter, catch, api.post, console.error, router.navigate
      • L212 · handleLogout calls (conditional paths may differ): catch, api.post, console.error, router.navigate

      Environment references: env.VITE_DEPLOYMENT_MODE

      services/email-ui/src/components/ui/alert.tsx ↗
      • L22 · Alert calls (conditional paths may differ): cn, alertVariants
      • L26 · AlertTitle calls (conditional paths may differ): cn
      • L39 · AlertDescription calls (conditional paths may differ): cn
      • L52 · AlertAction calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/avatar.tsx ↗
      • L8 · Avatar calls (conditional paths may differ): cn
      • L28 · AvatarImage calls (conditional paths may differ): cn
      • L38 · AvatarFallback calls (conditional paths may differ): cn
      • L51 · AvatarBadge calls (conditional paths may differ): cn
      • L67 · AvatarGroup calls (conditional paths may differ): cn
      • L80 · AvatarGroupCount calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/badge.tsx ↗
      • L27 · Badge calls (conditional paths may differ): useRender, mergeProps, cn, badgeVariants
      services/email-ui/src/components/ui/button.tsx ↗
      • L40 · Button calls (conditional paths may differ): cn, buttonVariants
      services/email-ui/src/components/ui/card.tsx ↗
      • L5 · Card calls (conditional paths may differ): cn
      • L19 · CardHeader calls (conditional paths may differ): cn
      • L32 · CardTitle calls (conditional paths may differ): cn
      • L45 · CardDescription calls (conditional paths may differ): cn
      • L49 · CardAction calls (conditional paths may differ): cn
      • L59 · CardContent calls (conditional paths may differ): cn
      • L63 · CardFooter calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/chart.tsx ↗
      • L29 · useChart calls (conditional paths may differ): React.useContext
      • L39 · ChartContainer calls (conditional paths may differ): React.useId, uniqueId.replace, cn
      • L108 · ChartTooltipContent calls (conditional paths may differ): useChart, React.useMemo, getPayloadConfigFromPayload, cn, labelFormatter, map, payload.filter, formatter, item.value.toLocaleString, String
      • L243 · ChartLegendContent calls (conditional paths may differ): useChart, cn, map, payload.filter, getPayloadConfigFromPayload
      services/email-ui/src/components/ui/checkbox.tsx ↗
      • L8 · Checkbox calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/dialog.tsx ↗
      • L26 · DialogOverlay calls (conditional paths may differ): cn
      • L39 · DialogContent calls (conditional paths may differ): cn
      • L73 · DialogHeader calls (conditional paths may differ): cn
      • L77 · DialogFooter calls (conditional paths may differ): cn
      • L102 · DialogTitle calls (conditional paths may differ): cn
      • L112 · DialogDescription calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/input.tsx ↗
      • L6 · Input calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/label.tsx ↗
      • L5 · Label calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/progress.tsx ↗
      • L5 · Progress calls (conditional paths may differ): cn
      • L21 · ProgressTrack calls (conditional paths may differ): cn
      • L31 · ProgressIndicator calls (conditional paths may differ): cn
      • L41 · ProgressLabel calls (conditional paths may differ): cn
      • L51 · ProgressValue calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/scroll-area.tsx ↗
      • L6 · ScrollArea calls (conditional paths may differ): cn
      • L21 · ScrollBar calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/select.tsx ↗
      • L9 · SelectGroup calls (conditional paths may differ): cn
      • L13 · SelectValue calls (conditional paths may differ): cn
      • L19 · SelectTrigger calls (conditional paths may differ): cn
      • L45 · SelectContent calls (conditional paths may differ): cn
      • L84 · SelectLabel calls (conditional paths may differ): cn
      • L94 · SelectItem calls (conditional paths may differ): cn
      • L118 · SelectSeparator calls (conditional paths may differ): cn
      • L128 · SelectScrollUpButton calls (conditional paths may differ): cn
      • L143 · SelectScrollDownButton calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/separator.tsx ↗
      • L7 · Separator calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/sheet.tsx ↗
      • L24 · SheetOverlay calls (conditional paths may differ): cn
      • L37 · SheetContent calls (conditional paths may differ): cn
      • L74 · SheetHeader calls (conditional paths may differ): cn
      • L78 · SheetFooter calls (conditional paths may differ): cn
      • L82 · SheetTitle calls (conditional paths may differ): cn
      • L92 · SheetDescription calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/sidebar.tsx ↗
      • L35 · useSidebar calls (conditional paths may differ): React.useContext
      • L44 · SidebarProvider calls (conditional paths may differ): useIsMobile, React.useState, React.useCallback, value, setOpenProp, _setOpen, setOpenMobile, setOpen, React.useEffect, event.preventDefault, toggleSidebar, window.addEventListener, window.removeEventListener, React.useMemo, cn
      • L137 · Sidebar calls (conditional paths may differ): useSidebar, cn
      • L236 · SidebarTrigger calls (conditional paths may differ): useSidebar, cn, toggleSidebar
      • L258 · SidebarRail calls (conditional paths may differ): useSidebar, cn
      • L283 · SidebarInset calls (conditional paths may differ): cn
      • L296 · SidebarInput calls (conditional paths may differ): cn
      • L307 · SidebarHeader calls (conditional paths may differ): cn
      • L318 · SidebarFooter calls (conditional paths may differ): cn
      • L329 · SidebarSeparator calls (conditional paths may differ): cn
      • L340 · SidebarContent calls (conditional paths may differ): cn
      • L354 · SidebarGroup calls (conditional paths may differ): cn
      • L365 · SidebarGroupLabel calls (conditional paths may differ): useRender, mergeProps, cn
      • L389 · SidebarGroupAction calls (conditional paths may differ): useRender, mergeProps, cn
      • L413 · SidebarGroupContent calls (conditional paths may differ): cn
      • L424 · SidebarMenu calls (conditional paths may differ): cn
      • L435 · SidebarMenuItem calls (conditional paths may differ): cn
      • L468 · SidebarMenuButton calls (conditional paths may differ): useSidebar, useRender, mergeProps, cn, sidebarMenuButtonVariants
      • L517 · SidebarMenuAction calls (conditional paths may differ): useRender, mergeProps, cn
      • L547 · SidebarMenuBadge calls (conditional paths may differ): cn
      • L561 · SidebarMenuSkeleton calls (conditional paths may differ): React.useState, Math.floor, Math.random, cn
      • L594 · SidebarMenuSub calls (conditional paths may differ): cn
      • L608 · SidebarMenuSubItem calls (conditional paths may differ): cn
      • L619 · SidebarMenuSubButton calls (conditional paths may differ): useRender, mergeProps, cn
      services/email-ui/src/components/ui/skeleton.tsx ↗
      • L3 · Skeleton calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/table.tsx ↗
      • L7 · Table calls (conditional paths may differ): cn
      • L15 · TableHeader calls (conditional paths may differ): cn
      • L19 · TableBody calls (conditional paths may differ): cn
      • L23 · TableFooter calls (conditional paths may differ): cn
      • L33 · TableRow calls (conditional paths may differ): cn
      • L46 · TableHead calls (conditional paths may differ): cn
      • L59 · TableCell calls (conditional paths may differ): cn
      • L69 · TableCaption calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/tabs.tsx ↗
      • L6 · Tabs calls (conditional paths may differ): cn
      • L32 · TabsList calls (conditional paths may differ): cn, tabsListVariants
      • L47 · TabsTrigger calls (conditional paths may differ): cn
      • L63 · TabsContent calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/textarea.tsx ↗
      • L5 · Textarea calls (conditional paths may differ): cn
      services/email-ui/src/components/ui/tooltip.tsx ↗
      • L19 · TooltipContent calls (conditional paths may differ): cn
      services/email-ui/src/hooks/use-mobile.ts ↗
      • L5 · useIsMobile calls (conditional paths may differ): React.useState, React.useEffect, window.matchMedia, setIsMobile, mql.addEventListener, mql.removeEventListener
      services/email-ui/src/lib/utils.ts ↗
      • L4 · cn calls (conditional paths may differ): twMerge, clsx
      services/email-ui/src/pages/Dashboard.tsx ↗
      • L76 · fmt calls (conditional paths may differ): toFixed, Math.round, n.toLocaleString
      • L83 · timeAgo calls (conditional paths may differ): Math.floor, Date.now, getTime
      • L91 · shortDate calls (conditional paths may differ): toLocaleDateString
      • L97 · smoothPath calls (conditional paths may differ): x.toFixed, y.toFixed, toFixed
      • L113 · AreaChart calls (conditional paths may differ): useState, useRef, Math.max, daily.map, smoothPath, last.x.toFixed, toFixed, first.x.toFixed, svgRef.current.getBoundingClientRect, Math.min, Math.round, setTooltip, yGrid.map, shortDate, tooltip.d.sent.toLocaleString, map, Math.floor
      • L148 · handleMouseMove calls (conditional paths may differ): svgRef.current.getBoundingClientRect, Math.min, Math.max, Math.round, setTooltip
      • L278 · DashboardSkeleton calls (conditional paths may differ): map, Array
      • L307 · Dashboard calls (conditional paths may differ): useState, setRefreshing, Promise.all, api.get, catch, setStats, setLogs, setCfStatus, useEffect, load, deliveryRate.toFixed, Math.min, toLocaleDateString, RANGES.map, setRange, toLocaleString, fmt, cn, limitPct.toFixed, stats.daily.reduce
      • L314 · load calls (conditional paths may differ): setRefreshing, Promise.all, api.get, catch, setStats, setLogs, setCfStatus
      services/email-ui/src/pages/Domains.tsx ↗
      • L51 · DomainsPage calls (conditional paths may differ): useState, setLoading, api.get, setDomains, useEffect, load, e.preventDefault, setFormError, setSubmitting, api.post, setForm, setCreating, setVerifying, api.delete, setDeleteId, setDnsModal, map, Array, domains.map, handleDns
      • L62 · load calls (conditional paths may differ): setLoading, api.get, setDomains
      • L73 · handleCreate calls (conditional paths may differ): e.preventDefault, setFormError, setSubmitting, api.post, setForm, setCreating, load
      • L92 · handleVerify calls (conditional paths may differ): setVerifying, api.post, load
      • L102 · confirmDelete calls (conditional paths may differ): api.delete, setDeleteId, load
      • L109 · handleDns calls (conditional paths may differ): api.get, setDnsModal
      services/email-ui/src/pages/Keys.tsx ↗
      • L44 · timeAgo calls (conditional paths may differ): Math.floor, Date.now, getTime
      • L52 · KeysPage calls (conditional paths may differ): useState, setLoading, api.get, setKeys, data.filter, setDomains, useEffect, load, loadDomains, e.preventDefault, api.post, setNewKey, setCreating, setForm, api.delete, setRevokeId, navigator.clipboard.writeText, setCopied, setTimeout, copyKey
      • L67 · load calls (conditional paths may differ): setLoading, api.get, setKeys, data.filter
      • L74 · loadDomains calls (conditional paths may differ): api.get, setDomains
      • L84 · handleCreate calls (conditional paths may differ): e.preventDefault, api.post, setNewKey, setCreating, setForm, load
      • L106 · confirmRevoke calls (conditional paths may differ): api.delete, setRevokeId, load
      • L113 · copyKey calls (conditional paths may differ): navigator.clipboard.writeText, setCopied, setTimeout
      services/email-ui/src/pages/Lists.tsx ↗
      • L21 · ListsPage calls (conditional paths may differ): useState, setLoading, api.get, setLists, useEffect, load, e.preventDefault, setErr, setSaving, api.post, setForm, setCreating, setDeleting, api.delete, map, Array, lists.map, handleDelete
      • L30 · load calls (conditional paths may differ): setLoading, api.get, setLists
      • L41 · handleCreate calls (conditional paths may differ): e.preventDefault, setErr, setSaving, api.post, setForm, setCreating, load
      • L58 · handleDelete calls (conditional paths may differ): setDeleting, api.delete, load
      services/email-ui/src/pages/Login.tsx ↗
      • L10 · Login calls (conditional paths may differ): useNavigate, useState, e.preventDefault, setError, setLoading, api.post, navigate, map, setTokenInput, setShowToken, token.trim
      • L17 · handleSubmit calls (conditional paths may differ): e.preventDefault, setError, setLoading, api.post, navigate
      services/email-ui/src/pages/Logs.tsx ↗
      • L95 · DetailPanel calls (conditional paths may differ): sentAt.toLocaleString, map, bouncedAt.toLocaleString, sentAt.toISOString, bouncedAt.toISOString, cn
      • L268 · LogsPage calls (conditional paths may differ): useState, useCallback, setLoading, String, params.set, api.get, setResult, useEffect, load, setStatus, setPage, e.preventDefault, setSearch, setSearchInput, STATUS_OPTS.map, handleStatus, setFrom, setTo, map, Array
      • L295 · handleStatus calls (conditional paths may differ): setStatus, setPage
      • L299 · handleSearch calls (conditional paths may differ): e.preventDefault, setSearch, setPage
      • L304 · clearSearch calls (conditional paths may differ): setSearch, setSearchInput, setPage
      services/email-ui/src/pages/Playground.tsx ↗
      • L38 · ThemePicker calls (conditional paths may differ): EMAIL_THEMES.map, onChange, cn
      • L62 · beautifyHtml calls (conditional paths may differ): filter, map, split, html.replace, l.trim, join, lines.map, line.match, Math.max, tab.repeat, voids.test
      • L85 · SyntaxCode calls (conditional paths may differ): useMemo, beautifyHtml, hljs.highlight, result.replace, replace, code.replace
      • L125 · extractVars calls (conditional paths may differ): text.matchAll, vars.add, Array.from
      • L131 · applyVarsPreview calls (conditional paths may differ): text.replace
      • L141 · PlaygroundPage calls (conditional paths may differ): useState, apiKey.startsWith, useEffect, then, Promise.all, api.get, setTemplates, dom.filter, setDomains, setFromDomain, selectedId.startsWith, selectedId.slice, useMemo, templates.find, extractVars, setSelectedId, setVariables, setPreviewHtml, setPreviewSubject, setResult
      • L191 · handleSelect calls (conditional paths may differ): setSelectedId, setVariables, setPreviewHtml, setPreviewSubject, setResult, id.startsWith, templates.find, id.slice, setSubject
      • L288 · handleSend calls (conditional paths may differ): e.preventDefault, setResult, setSending, api.post, JSON.stringify
      services/email-ui/src/pages/Settings.tsx ↗
      • L44 · generateSecret calls (conditional paths may differ): join, map, Array.from, crypto.getRandomValues
      • L51 · CopyButton calls (conditional paths may differ): useState, navigator.clipboard.writeText, setCopied, setTimeout
      • L71 · DomainRow calls (conditional paths may differ): useState, setErr, setLoading, onSetupDomain
      • L83 · handle calls (conditional paths may differ): setErr, setLoading, onSetupDomain
      • L139 · SettingsPage calls (conditional paths may differ): useState, useCallback, api.get, setStatus, setBackendUrl, setWorkerName, setWebhookSecret, generateSecret, setLoading, useEffect, fetchStatus, setDeployError, setDeploySuccess, setDeploying, api.post, setBackfillError, setBackfillResult, setBackfilling, status.domains.every, toLocaleDateString
      • L180 · handleDeploy calls (conditional paths may differ): setDeployError, setDeploySuccess, setDeploying, api.post, fetchStatus
      • L200 · handleSetupDomain calls (conditional paths may differ): api.post, fetchStatus
      • L205 · handleBackfill calls (conditional paths may differ): setBackfillError, setBackfillResult, setBackfilling, api.post

      Environment references: env.VITE_DEPLOYMENT_MODE

      services/email-ui/src/pages/Suppressions.tsx ↗
      • L59 · AddDialog calls (conditional paths may differ): useState, e.preventDefault, setErr, setSaving, api.post, onAdded, onClose, setEmail, setReason
      • L65 · handleSubmit calls (conditional paths may differ): e.preventDefault, setErr, setSaving, api.post, onAdded, onClose, setEmail, setReason
      • L138 · SuppressionsPage calls (conditional paths may differ): useState, useCallback, setLoading, String, params.set, api.get, setResult, useEffect, load, setDeleting, api.delete, e.preventDefault, setSearch, setPage, setAddOpen, setSearchInput, setReason, REASON_FILTER_OPTS.map, map, Array
      • L162 · handleDelete calls (conditional paths may differ): setDeleting, api.delete, load
      • L172 · handleSearch calls (conditional paths may differ): e.preventDefault, setSearch, setPage
      services/email-ui/src/pages/Templates.tsx ↗
      • L49 · ThemePicker calls (conditional paths may differ): EMAIL_THEMES.map, onChange, cn
      • L72 · extractVars calls (conditional paths may differ): text.matchAll, vars.add, Array.from
      • L78 · TemplateCard calls (conditional paths may differ): cn, toLocaleDateString, detectedVars.map, onVarChange
      • L163 · TemplatesPage calls (conditional paths may differ): useState, setLoading, api.get, setTemplates, useEffect, load, setEditing, setForm, setMode, setPreviewing, setPreviewVars, setPreviewHtml, setPreviewSubject, setVarsOpen, setPreviewLoading, api.post, refreshPreview, e.preventDefault, api.put, api.delete
      • L180 · load calls (conditional paths may differ): setLoading, api.get, setTemplates
      • L191 · openCreate calls (conditional paths may differ): setEditing, setForm, setMode
      • L197 · openEdit calls (conditional paths may differ): setEditing, setForm, setMode
      • L210 · openPreview calls (conditional paths may differ): setPreviewing, setPreviewVars, setPreviewHtml, setPreviewSubject, setVarsOpen, setPreviewLoading, api.post
      • L231 · refreshPreview calls (conditional paths may differ): api.post, setPreviewHtml, setPreviewSubject
      • L250 · handleSave calls (conditional paths may differ): e.preventDefault, api.post, api.put, setMode, load
      • L269 · confirmDelete calls (conditional paths may differ): api.delete, setPreviewing, setDeleteTarget, load
      services/email-ui/src/pages/TestMailbox.tsx ↗
      • L51 · DetailPanel calls (conditional paths may differ): sentAt.toLocaleString, map, sentAt.toISOString, cn
      • L197 · TestMailboxPage calls (conditional paths may differ): useState, useCallback, setLoading, String, params.set, api.get, setResult, useEffect, load, confirm, api.delete, setSelected, e.preventDefault, setSearch, setPage, setSearchInput, setFrom, setTo, map, Array
      • L222 · handleDelete calls (conditional paths may differ): confirm, api.delete, setSelected, load
      • L230 · handleSearch calls (conditional paths may differ): e.preventDefault, setSearch, setPage
      • L235 · clearSearch calls (conditional paths may differ): setSearch, setSearchInput, setPage
      services/email-worker/src/db.ts ↗
      • L37 · buildWhere calls (conditional paths may differ): Object.keys, Object.entries, isComparison, clauses.push, params.push, clauses.join
      • L190 · makeDb calls (conditional paths may differ): db.table
      • L208 · deleteDomainCascade calls (conditional paths may differ): makeDb, apiKeyDomains.delete, domains.delete
      services/email-worker/src/email-handler.ts ↗
      • L31 · isBounce calls (conditional paths may differ): toLowerCase, BOUNCE_SUBJECTS.some, sub.includes, BOUNCE_FROM_PATTERNS.some, from.includes
      • L37 · isComplaint calls (conditional paths may differ): toLowerCase, email.headers.find, h.key.toLowerCase, includes, ct.toLowerCase, COMPLAINT_SUBJECTS.some, sub.includes, COMPLAINT_FROM_PATTERNS.some, from.includes
      • L51 · extractRecipient calls (conditional paths may differ): content.match, toLowerCase, trim
      • L72 · classifyBounce calls (conditional paths may differ): content.match, code.startsWith, test, spamPhrases.some, includes, content.toLowerCase, hardPhrases.some
      • L120 · extractReason calls (conditional paths may differ): content.match, slice, split, trim
      • L139 · handleInboundEmail calls (conditional paths may differ): arrayBuffer, log.warn, parse, join, toISOString, isBounce, processBounce, isComplaint, processComplaint
      • L174 · processBounce calls (conditional paths may differ): extractRecipient, log.warn, classifyBounce, extractReason, toISOString, Date.now, db.query, db.run, generateId, log.info, Number
      • L247 · processComplaint calls (conditional paths may differ): extractRecipient, log.warn, toISOString, Date.now, db.query, db.run, generateId, log.info

      Environment references: env.DB

      services/email-worker/src/index.ts ↗
      • L144 · fetch handler exported
      • L150 · email handler exported · calls handleInboundEmail
      • L57 · app.use("*")
      • L60 · app.use("/v1/*")
      • L69 · app.use("/api/*")
      • L84 · app.get("/health")
      • L87 · app.route("/v1/unsubscribe")
      • L90 · app.use("/v1/send")
      • L91 · app.use("/v1/send")
      • L92 · app.route("/v1/send")
      • L95 · app.route("/api/auth")
      • L99 · admin.use("*")
      • L102 · admin.get("/layouts")
      • L107 · admin.post("/layouts/:id/preview")
      • L115 · admin.route("/domains")
      • L116 · admin.route("/templates")
      • L117 · admin.route("/keys")
      • L118 · admin.route("/logs")
      • L119 · admin.route("/stats")
      • L120 · admin.route("/cloudflare")
      • L121 · admin.route("/suppressions")
      • L122 · admin.route("/lists")
      • L124 · app.route("/api")
      • L137 · app.post("/api/_seed")
      • L42 · parseAdminOrigins calls (conditional paths may differ): map, filter, raw.split, d.trim, d.startsWith

      Environment references: c.env.ADMIN_ORIGIN · c.env.DB

      services/email-worker/src/middleware/apiKey.ts ↗
      • L9 · sha256Hex calls (conditional paths may differ): encode, crypto.subtle.digest, join, map, Array.from, padStart, b.toString

      Environment references: c.env.DB

      services/email-worker/src/middleware/auth.ts ↗
      • L19 · secretKey calls (conditional paths may differ): encode
      • L23 · getSession calls (conditional paths may differ): getCookie, jwtVerify, secretKey, Boolean
      • L34 · saveSession calls (conditional paths may differ): sign, setExpirationTime, setIssuedAt, setProtectedHeader, secretKey, setCookie
      • L52 · clearSession calls (conditional paths may differ): deleteCookie

      Environment references: c.env.SESSION_SECRET

      services/email-worker/src/middleware/loginRateLimit.ts ↗
      • L11 · checkLoginRateLimit calls (conditional paths may differ): kv.get, parseInt, kv.put, String
      services/email-worker/src/middleware/rateLimit.ts ↗

        Environment references: c.env.RATE_LIMITER

        services/email-worker/src/routes/auth.ts ↗
        • L27 · app.post("/login")
        • L44 · app.post("/logout")
        • L50 · app.get("/me")
        • L11 · timingSafeEqual calls (conditional paths may differ): crypto.subtle.generateKey, Promise.all, crypto.subtle.sign, encoder.encode

        Environment references: c.env.RATE_LIMIT_KV · c.env.ADMIN_TOKEN

        services/email-worker/src/routes/cloudflare.ts ↗
        • L10 · app.get("/status")
        • L19 · app.post("/backfill-domains")

        Environment references: c.env.CF_API_TOKEN · c.env.CF_ACCOUNT_ID · c.env.DB

        services/email-worker/src/routes/domains.ts ↗
        • L18 · app.get("/")
        • L25 · app.get("/:id")
        • L33 · app.post("/")
        • L91 · app.get("/:id/dns")
        • L102 · app.post("/:id/verify")
        • L123 · app.delete("/:id")

        Environment references: c.env.DB · c.env.CF_API_TOKEN

        services/email-worker/src/routes/keys.ts ↗
        • L18 · app.get("/")
        • L25 · app.post("/")
        • L59 · app.delete("/:id")
        • L8 · randomHex calls (conditional paths may differ): crypto.getRandomValues, join, map, Array.from, padStart, b.toString

        Environment references: c.env.DB

        services/email-worker/src/routes/lists.ts ↗
        • L15 · app.get("/")
        • L22 · app.post("/")
        • L39 · app.delete("/:id")

        Environment references: c.env.DB

        services/email-worker/src/routes/logs.ts ↗
        • L9 · app.get("/")
        • L76 · app.get("/:id")

        Environment references: c.env.DB

        services/email-worker/src/routes/send.ts ↗
        • L20 · app.post("/")

        Environment references: c.env.DB · c.env.PUBLIC_URL · c.env.CF_API_TOKEN · c.env.CF_ACCOUNT_ID

        services/email-worker/src/routes/stats.ts ↗
        • L27 · app.get("/")
        • L9 · rangeStart calls (conditional paths may differ): now.setDate, now.getDate, now.setHours, now.toISOString

        Environment references: c.env.DB

        services/email-worker/src/routes/suppressions.ts ↗
        • L16 · app.get("/")
        • L63 · app.post("/")
        • L86 · app.delete("/:id")

        Environment references: c.env.DB

        services/email-worker/src/routes/templates.ts ↗
        • L13 · app.get("/")
        • L27 · app.get("/themes")
        • L37 · app.get("/:idOrSlug")
        • L47 · app.post("/")
        • L73 · app.put("/:id")
        • L110 · app.delete("/:id")
        • L121 · app.post("/:id/preview")

        Environment references: c.env.DB

        services/email-worker/src/routes/unsubscribe.ts ↗
        • L42 · app.get("/")
        • L55 · app.post("/")
        • L17 · resolveToken calls (conditional paths may differ): db.query
        • L25 · performUnsubscribe calls (conditional paths may differ): makeDb, resolveToken, db.run, generateId, rec.email.toLowerCase, toISOString

        Environment references: env.DB

        services/email-worker/src/seed.ts ↗
        • L62 · seedSystemTemplates calls (conditional paths may differ): makeDb, toISOString, Object.entries, templates.findOne, templates.insert, generateId
        services/emails/src/ThemeContext.ts ↗
        • L12 · runWithTheme calls (conditional paths may differ): storage.run
        • L20 · getThemeConfig calls (conditional paths may differ): storage.getStore
        services/emails/src/layouts/Alert.tsx ↗
        • L27 · severityStyles calls (conditional paths may differ): severity.toLowerCase
        services/emails/src/render.ts ↗
        • L293 · renderLayout calls (conditional paths may differ): themeToTailwindConfig, runWithTheme, render, React.createElement
        services/inbox-bridge/src/index.ts ↗
        • L31 · email handler exported · references INBOX_WEBHOOK_SECRET, INBOX_SERVER_URL · calls arrayBuffer, btoa, String.fromCharCode, JSON.stringify, message.headers.get, hmacSha256Hex, env.INBOX_SERVER_URL.replace, fetch
        • L16 · hmacSha256Hex calls (conditional paths may differ): crypto.subtle.importKey, encode, crypto.subtle.sign, join, map, Array.from, padStart, b.toString

        Environment references: env.INBOX_WEBHOOK_SECRET · env.INBOX_SERVER_URL

        services/inbox-server/src/db.ts ↗
        • L51 · buildWhere calls (conditional paths may differ): Object.keys, Object.entries, isComparison, clauses.push, params.push, clauses.join
        • L208 · deleteDomainCascade calls (conditional paths may differ): rawDb.run

        Environment references: env.MESAHUB_URL

        services/inbox-server/src/email-handler.ts ↗
        • L32 · handleIncomingEmail calls (conditional paths may differ): Buffer.from, PostalMime.parse, payload.from.toLowerCase, payload.to.toLowerCase, toISOString, parseThreadToken, stripThreadToken, rawDb.first, upsertPerson, encode, generateId, putObject, threadMessageId, resolveThreadId, rawDb.run, Buffer.isBuffer, rawDb.query, wsManager.notifyUser
        services/inbox-server/src/env.ts ↗
        • L28 · sessionSecret calls (conditional paths may differ): toString, crypto.randomBytes, log.warn

        Environment references: process.env.NODE_ENV · process.env.SESSION_SECRET · process.env.INBOX_SERVER_PORT · process.env.PORT · process.env.CF_API_TOKEN · process.env.CF_ACCOUNT_ID · process.env.VAPID_PUBLIC_KEY · process.env.VAPID_PRIVATE_KEY · process.env.R2_BUCKET_NAME · process.env.MIGRATIONS_DIR · process.env.PUBLIC_URL · process.env.INBOX_WORKER_NAME · process.env.DASHBOARD_DIST

        services/inbox-server/src/index.ts ↗
        • L66 · app.use("/v1/*")
        • L76 · app.get("/health")
        • L79 · app.route("/api/setup")
        • L80 · app.route("/api/auth")
        • L81 · app.route("/api")
        • L82 · app.route("/webhook")
        • L85 · app.route("/v1/unsubscribe")
        • L88 · app.use("/v1/*")
        • L89 · app.route("/v1/send")
        • L93 · protectedApp.use("/*")
        • L95 · protectedApp.route("/domains")
        • L96 · protectedApp.route("/keys")
        • L97 · protectedApp.route("/logs")
        • L98 · protectedApp.route("/templates")
        • L99 · protectedApp.route("/stats")
        • L100 · protectedApp.route("/cloudflare")
        • L101 · protectedApp.route("/lists")
        • L102 · protectedApp.route("/suppressions")
        • L106 · testMailboxApp.use("/*")
        • L107 · testMailboxApp.route("/")
        • L108 · protectedApp.route("/test-emails")
        • L110 · protectedApp.route("/inbox/people")
        • L111 · protectedApp.route("/inbox/compose")
        • L112 · protectedApp.route("/inbox/inboxes")
        • L113 · protectedApp.route("/inbox/sequences")
        • L114 · protectedApp.route("/inbox/templates")
        • L118 · adminOnlyApp.use("/*")
        • L119 · adminOnlyApp.route("/users")
        • L120 · protectedApp.route("/admin")
        • L123 · protectedApp.post("/seed")
        • L130 · app.route("/api")
        • L145 · main calls (conditional paths may differ): log.info, runMigrations, seedSystemTemplates, startScheduler, String, serve, wsManager.attach, server.on, socket.destroy, cookie.match, socket.write, jwtVerify, encode, rawDb.first, wsManager.handleUpgrade, stopScheduler, process.exit, process.on

        Environment references: env.PORT · env.SESSION_SECRET

        services/inbox-server/src/lib/mesahub-url.ts ↗
        • L13 · parseMesahubUrl calls (conditional paths may differ): raw.startsWith, JSON.stringify, raw.slice, raw.replace, host.includes, host.endsWith, decodeURIComponent, replace, parsed.pathname.replace
        services/inbox-server/src/lib/password.ts ↗
        • L10 · encode calls (conditional paths may differ): toString, Buffer.from
        • L14 · decode calls (conditional paths may differ): Buffer.from
        • L18 · hashPassword calls (conditional paths may differ): crypto.getRandomValues, crypto.subtle.importKey, encode, crypto.subtle.deriveBits
        • L31 · verifyPassword calls (conditional paths may differ): hash.split, decode, crypto.subtle.importKey, encode, crypto.subtle.deriveBits
        services/inbox-server/src/middleware/apiKey.ts ↗
        • L10 · sha256Hex calls (conditional paths may differ): encode, crypto.subtle.digest, join, map, Array.from, padStart, b.toString
        services/inbox-server/src/middleware/auth.ts ↗
        • L24 · secretKey calls (conditional paths may differ): encode
        • L28 · getSession calls (conditional paths may differ): getCookie, jwtVerify, secretKey
        • L51 · saveSession calls (conditional paths may differ): sign, setExpirationTime, setIssuedAt, setProtectedHeader, secretKey, setCookie
        • L74 · clearSession calls (conditional paths may differ): deleteCookie

        Environment references: env.SESSION_SECRET

        services/inbox-server/src/middleware/loginRateLimit.ts ↗
        • L16 · getRedis calls (conditional paths may differ): _redis.on, log.error
        • L28 · checkLoginRateLimit calls (conditional paths may differ): getRedis, redis.incr, redis.expire

        Environment references: env.REDIS_URL

        services/inbox-server/src/middleware/rateLimit.ts ↗
        • L18 · getRedis calls (conditional paths may differ): _redis.on, log.error

        Environment references: env.REDIS_URL

        services/inbox-server/src/migrate.ts ↗
        • L16 · splitStatements calls (conditional paths may differ): filter, map, split, replace, sql.replace, s.trim
        • L25 · ensureMigrationsTable calls (conditional paths may differ): log.info, mesaDb.exec
        • L36 · appliedMigrations calls (conditional paths may differ): mesaDb.query, result.rows.map, log.info, names.join
        • L47 · runMigrations calls (conditional paths may differ): log.info, readdir, sort, entries.filter, f.endsWith, String, files.join, log.warn, ensureMigrationsTable, appliedMigrations, applied.has, join, readFile, log.error, splitStatements, slice, stmt.replace, mesaDb.exec, toISOString

        Environment references: env.MIGRATIONS_DIR

        services/inbox-server/src/routes/admin/users.ts ↗
        • L11 · app.get("/")
        • L16 · app.delete("/:id")
        • L35 · app.patch("/:id/role")
        services/inbox-server/src/routes/auth.ts ↗
        • L13 · app.post("/login")
        • L43 · app.post("/logout")
        • L50 · app.get("/me")
        services/inbox-server/src/routes/cloudflare.ts ↗
        • L8 · app.get("/status")

        Environment references: env.CF_API_TOKEN · env.CF_ACCOUNT_ID

        services/inbox-server/src/routes/domains.ts ↗
        • L19 · app.get("/")
        • L25 · app.get("/:id")
        • L37 · app.post("/")
        • L94 · app.get("/:id/dns")
        • L104 · app.post("/:id/verify")
        • L122 · app.delete("/:id")

        Environment references: env.CF_API_TOKEN

        services/inbox-server/src/routes/inbox/compose.ts ↗
        • L21 · app.post("/")

        Environment references: env.CF_API_TOKEN · env.CF_ACCOUNT_ID

        services/inbox-server/src/routes/inbox/inbox-templates.ts ↗
        • L11 · app.get("/")
        • L16 · app.post("/")
        • L30 · app.put("/:id")
        • L47 · app.delete("/:id")
        services/inbox-server/src/routes/inbox/inboxes.ts ↗
        • L61 · app.get("/")
        • L66 · app.post("/")
        • L93 · app.post("/:id/routing")
        • L110 · app.put("/:id")
        • L124 · app.delete("/:id")
        • L134 · app.get("/:id/members")
        • L145 · app.post("/:id/members")
        • L156 · app.delete("/:id/members/:userId")
        • L18 · configureRouting calls (conditional paths may differ): email.split, getZoneByHostname, enableEmailRouting, setCatchAllToWorker

        Environment references: env.CF_API_TOKEN · env.INBOX_WORKER_NAME

        services/inbox-server/src/routes/inbox/people.ts ↗
        • L9 · app.get("/")
        • L52 · app.get("/:id")
        • L58 · app.get("/:id/thread")
        • L94 · app.post("/:id/mark-read")
        services/inbox-server/src/routes/inbox/sequences.ts ↗
        • L12 · app.get("/")
        • L22 · app.post("/")
        • L36 · app.put("/:id")
        • L52 · app.delete("/:id")
        • L65 · app.post("/:id/enroll")
        • L84 · app.delete("/enrollments/:enrollmentId")
        services/inbox-server/src/routes/invites.ts ↗
        • L25 · app.post("/admin/invites")
        • L63 · app.get("/invites/:token")
        • L80 · app.post("/invites/:token/accept")
        • L17 · sha256Hex calls (conditional paths may differ): crypto.subtle.digest, encode, join, map, Array.from, padStart, b.toString
        services/inbox-server/src/routes/keys.ts ↗
        • L18 · app.get("/")
        • L31 · app.post("/")
        • L63 · app.delete("/:id")
        • L9 · randomHex calls (conditional paths may differ): crypto.getRandomValues, join, map, Array.from, padStart, b.toString
        services/inbox-server/src/routes/lists.ts ↗
        • L14 · app.get("/")
        • L21 · app.post("/")
        • L38 · app.delete("/:id")
        services/inbox-server/src/routes/logs.ts ↗
        • L8 · app.get("/")
        • L66 · app.get("/:id")
        services/inbox-server/src/routes/send.ts ↗
        • L13 · app.post("/")

        Environment references: env.PUBLIC_URL · env.CF_API_TOKEN · env.CF_ACCOUNT_ID

        services/inbox-server/src/routes/setup.ts ↗
        • L15 · app.get("/status")
        • L31 · app.post("/")
        services/inbox-server/src/routes/stats.ts ↗
        • L25 · app.get("/")
        • L8 · rangeStart calls (conditional paths may differ): now.setDate, now.getDate, now.setHours, now.toISOString
        services/inbox-server/src/routes/suppressions.ts ↗
        • L15 · app.get("/")
        • L61 · app.post("/")
        • L83 · app.delete("/:id")
        services/inbox-server/src/routes/templates.ts ↗
        • L12 · app.get("/")
        • L25 · app.get("/themes")
        • L34 · app.get("/:idOrSlug")
        • L43 · app.post("/")
        • L68 · app.put("/:id")
        • L103 · app.delete("/:id")
        • L112 · app.post("/:id/preview")
        services/inbox-server/src/routes/testEmails.ts ↗
        • L13 · app.get("/")
        • L59 · app.get("/:id")
        • L68 · app.delete("/:id")
        services/inbox-server/src/routes/unsubscribe.ts ↗
        • L34 · app.get("/")
        • L47 · app.post("/")
        • L15 · performUnsubscribe calls (conditional paths may differ): makeDb, rawDb.first, rawDb.run, generateId, rec.email.toLowerCase, toISOString
        services/inbox-server/src/routes/webhook.ts ↗
        • L24 · webhook.post("/email")
        • L10 · hmacSha256Hex calls (conditional paths may differ): crypto.subtle.importKey, encode, crypto.subtle.sign, join, map, Array.from, padStart, b.toString

        Environment references: env.WEBHOOK_SECRET

        services/inbox-server/src/scheduler.ts ↗
        • L52 · processDueSequenceSteps calls (conditional paths may differ): rawDb.query, Date.now, JSON.parse, rawDb.run, getTime, sequenceQueue.add
        • L83 · startSequenceWorker calls (conditional paths may differ): rawDb.first, JSON.parse, person.email.toLowerCase, log.info, rawDb.run, env.PUBLIC_URL.replace, generateId, toISOString, listUnsubscribeHeaders, sendEmail, applyVariables
        • L157 · startScheduler calls (conditional paths may differ): startSequenceWorker, cron.schedule, catch, processDueSequenceSteps, log.error, log.info
        • L168 · stopScheduler calls (conditional paths may differ): worker.close, sequenceQueue.close, redisConnection.quit

        Environment references: env.REDIS_URL · env.PUBLIC_URL · env.CF_API_TOKEN · env.CF_ACCOUNT_ID

        services/inbox-server/src/seed.ts ↗
        • L62 · seedSystemTemplates calls (conditional paths may differ): makeDb, toISOString, Object.entries, templates.findOne, templates.insert, generateId
        services/inbox-server/src/storage.ts ↗
        • L19 · putObject calls (conditional paths may differ): Buffer.isBuffer, Buffer.from, r2.send
        • L39 · getPresignedUrl calls (conditional paths may differ): getSignedUrl

        Environment references: env.R2_ACCOUNT_ID · env.R2_ACCESS_KEY_ID · env.R2_SECRET_ACCESS_KEY · env.R2_BUCKET_NAME

        services/inbox-ui/src/UserContext.tsx ↗
        • L16 · UserProvider calls (conditional paths may differ): useState, useEffect, finally, catch, then, me, setLoading
        • L32 · useUser calls (conditional paths may differ): useContext
        services/inbox-ui/src/api.ts ↗
        • L28 · getSetupStatus calls (conditional paths may differ): api.get
        • L33 · setup calls (conditional paths may differ): api.post
        • L37 · login calls (conditional paths may differ): api.post
        • L41 · logout calls (conditional paths may differ): api.post
        • L53 · me calls (conditional paths may differ): api.get
        • L60 · createInvite calls (conditional paths may differ): api.post
        • L68 · getInvite calls (conditional paths may differ): api.get
        • L73 · acceptInvite calls (conditional paths may differ): api.post
        • L79 · getUsers calls (conditional paths may differ): api.get
        • L84 · revokeUser calls (conditional paths may differ): api.delete
        • L88 · changeUserRole calls (conditional paths may differ): api.patch
        • L101 · getDomains calls (conditional paths may differ): api.get
        • L179 · getPeople calls (conditional paths may differ): api.get
        • L188 · getThread calls (conditional paths may differ): api.get
        • L193 · markRead calls (conditional paths may differ): api.post
        • L199 · composeSend calls (conditional paths may differ): api.post
        • L210 · replyTo calls (conditional paths may differ): api.post
        • L232 · getInboxes calls (conditional paths may differ): api.get
        • L237 · createInbox calls (conditional paths may differ): api.post
        • L242 · updateInbox calls (conditional paths may differ): api.put
        • L247 · setupInboxRouting calls (conditional paths may differ): api.post
        • L252 · deleteInbox calls (conditional paths may differ): api.delete
        • L256 · getInboxMembers calls (conditional paths may differ): api.get
        • L261 · addInboxMember calls (conditional paths may differ): api.post
        • L265 · removeInboxMember calls (conditional paths may differ): api.delete
        • L271 · getSequences calls (conditional paths may differ): api.get
        • L276 · createSequence calls (conditional paths may differ): api.post
        • L281 · updateSequence calls (conditional paths may differ): api.put
        • L286 · deleteSequence calls (conditional paths may differ): api.delete
        • L290 · enrollInSequence calls (conditional paths may differ): api.post
        • L301 · cancelEnrollment calls (conditional paths may differ): api.delete
        • L307 · getInboxTemplates calls (conditional paths may differ): api.get
        • L312 · createInboxTemplate calls (conditional paths may differ): api.post
        • L319 · updateInboxTemplate calls (conditional paths may differ): api.put
        • L327 · deleteInboxTemplate calls (conditional paths may differ): api.delete
        services/inbox-ui/src/components/Layout.tsx ↗
        • L96 · Layout calls (conditional paths may differ): useRouter, useUser, useEffect, MEMBER_PATHS.some, path.startsWith, router.navigate, TESTER_PATHS.some, catch, api.post, console.error, toUpperCase, slice, join, map, user.name.split, Array.from
        • L119 · handleLogout calls (conditional paths may differ): catch, api.post, console.error, router.navigate
        services/inbox-ui/src/components/OwnerAccessBanner.tsx ↗
        • L9 · OwnerAccessBanner calls (conditional paths may differ): useUser
        services/inbox-ui/src/components/ui/alert.tsx ↗
        • L22 · Alert calls (conditional paths may differ): cn, alertVariants
        • L26 · AlertTitle calls (conditional paths may differ): cn
        • L39 · AlertDescription calls (conditional paths may differ): cn
        • L52 · AlertAction calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/avatar.tsx ↗
        • L8 · Avatar calls (conditional paths may differ): cn
        • L28 · AvatarImage calls (conditional paths may differ): cn
        • L38 · AvatarFallback calls (conditional paths may differ): cn
        • L51 · AvatarBadge calls (conditional paths may differ): cn
        • L67 · AvatarGroup calls (conditional paths may differ): cn
        • L80 · AvatarGroupCount calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/badge.tsx ↗
        • L27 · Badge calls (conditional paths may differ): useRender, mergeProps, cn, badgeVariants
        services/inbox-ui/src/components/ui/button.tsx ↗
        • L40 · Button calls (conditional paths may differ): cn, buttonVariants
        services/inbox-ui/src/components/ui/card.tsx ↗
        • L5 · Card calls (conditional paths may differ): cn
        • L19 · CardHeader calls (conditional paths may differ): cn
        • L32 · CardTitle calls (conditional paths may differ): cn
        • L45 · CardDescription calls (conditional paths may differ): cn
        • L49 · CardAction calls (conditional paths may differ): cn
        • L59 · CardContent calls (conditional paths may differ): cn
        • L63 · CardFooter calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/chart.tsx ↗
        • L29 · useChart calls (conditional paths may differ): React.useContext
        • L39 · ChartContainer calls (conditional paths may differ): React.useId, uniqueId.replace, cn
        • L108 · ChartTooltipContent calls (conditional paths may differ): useChart, React.useMemo, getPayloadConfigFromPayload, cn, labelFormatter, map, payload.filter, formatter, item.value.toLocaleString, String
        • L243 · ChartLegendContent calls (conditional paths may differ): useChart, cn, map, payload.filter, getPayloadConfigFromPayload
        services/inbox-ui/src/components/ui/checkbox.tsx ↗
        • L8 · Checkbox calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/dialog.tsx ↗
        • L26 · DialogOverlay calls (conditional paths may differ): cn
        • L39 · DialogContent calls (conditional paths may differ): cn
        • L73 · DialogHeader calls (conditional paths may differ): cn
        • L77 · DialogFooter calls (conditional paths may differ): cn
        • L102 · DialogTitle calls (conditional paths may differ): cn
        • L112 · DialogDescription calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/input.tsx ↗
        • L6 · Input calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/label.tsx ↗
        • L5 · Label calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/progress.tsx ↗
        • L5 · Progress calls (conditional paths may differ): cn
        • L21 · ProgressTrack calls (conditional paths may differ): cn
        • L31 · ProgressIndicator calls (conditional paths may differ): cn
        • L41 · ProgressLabel calls (conditional paths may differ): cn
        • L51 · ProgressValue calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/scroll-area.tsx ↗
        • L6 · ScrollArea calls (conditional paths may differ): cn
        • L21 · ScrollBar calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/select.tsx ↗
        • L9 · SelectGroup calls (conditional paths may differ): cn
        • L13 · SelectValue calls (conditional paths may differ): cn
        • L19 · SelectTrigger calls (conditional paths may differ): cn
        • L45 · SelectContent calls (conditional paths may differ): cn
        • L84 · SelectLabel calls (conditional paths may differ): cn
        • L94 · SelectItem calls (conditional paths may differ): cn
        • L118 · SelectSeparator calls (conditional paths may differ): cn
        • L128 · SelectScrollUpButton calls (conditional paths may differ): cn
        • L143 · SelectScrollDownButton calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/separator.tsx ↗
        • L7 · Separator calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/sheet.tsx ↗
        • L24 · SheetOverlay calls (conditional paths may differ): cn
        • L37 · SheetContent calls (conditional paths may differ): cn
        • L74 · SheetHeader calls (conditional paths may differ): cn
        • L78 · SheetFooter calls (conditional paths may differ): cn
        • L82 · SheetTitle calls (conditional paths may differ): cn
        • L92 · SheetDescription calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/sidebar.tsx ↗
        • L35 · useSidebar calls (conditional paths may differ): React.useContext
        • L44 · SidebarProvider calls (conditional paths may differ): useIsMobile, React.useState, React.useCallback, value, setOpenProp, _setOpen, setOpenMobile, setOpen, React.useEffect, event.preventDefault, toggleSidebar, window.addEventListener, window.removeEventListener, React.useMemo, cn
        • L137 · Sidebar calls (conditional paths may differ): useSidebar, cn
        • L236 · SidebarTrigger calls (conditional paths may differ): useSidebar, cn, toggleSidebar
        • L258 · SidebarRail calls (conditional paths may differ): useSidebar, cn
        • L283 · SidebarInset calls (conditional paths may differ): cn
        • L296 · SidebarInput calls (conditional paths may differ): cn
        • L307 · SidebarHeader calls (conditional paths may differ): cn
        • L318 · SidebarFooter calls (conditional paths may differ): cn
        • L329 · SidebarSeparator calls (conditional paths may differ): cn
        • L340 · SidebarContent calls (conditional paths may differ): cn
        • L354 · SidebarGroup calls (conditional paths may differ): cn
        • L365 · SidebarGroupLabel calls (conditional paths may differ): useRender, mergeProps, cn
        • L389 · SidebarGroupAction calls (conditional paths may differ): useRender, mergeProps, cn
        • L413 · SidebarGroupContent calls (conditional paths may differ): cn
        • L424 · SidebarMenu calls (conditional paths may differ): cn
        • L435 · SidebarMenuItem calls (conditional paths may differ): cn
        • L468 · SidebarMenuButton calls (conditional paths may differ): useSidebar, useRender, mergeProps, cn, sidebarMenuButtonVariants
        • L517 · SidebarMenuAction calls (conditional paths may differ): useRender, mergeProps, cn
        • L547 · SidebarMenuBadge calls (conditional paths may differ): cn
        • L561 · SidebarMenuSkeleton calls (conditional paths may differ): React.useState, Math.floor, Math.random, cn
        • L594 · SidebarMenuSub calls (conditional paths may differ): cn
        • L608 · SidebarMenuSubItem calls (conditional paths may differ): cn
        • L619 · SidebarMenuSubButton calls (conditional paths may differ): useRender, mergeProps, cn
        services/inbox-ui/src/components/ui/skeleton.tsx ↗
        • L3 · Skeleton calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/table.tsx ↗
        • L7 · Table calls (conditional paths may differ): cn
        • L15 · TableHeader calls (conditional paths may differ): cn
        • L19 · TableBody calls (conditional paths may differ): cn
        • L23 · TableFooter calls (conditional paths may differ): cn
        • L33 · TableRow calls (conditional paths may differ): cn
        • L46 · TableHead calls (conditional paths may differ): cn
        • L59 · TableCell calls (conditional paths may differ): cn
        • L69 · TableCaption calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/tabs.tsx ↗
        • L6 · Tabs calls (conditional paths may differ): cn
        • L32 · TabsList calls (conditional paths may differ): cn, tabsListVariants
        • L47 · TabsTrigger calls (conditional paths may differ): cn
        • L63 · TabsContent calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/textarea.tsx ↗
        • L5 · Textarea calls (conditional paths may differ): cn
        services/inbox-ui/src/components/ui/tooltip.tsx ↗
        • L19 · TooltipContent calls (conditional paths may differ): cn
        services/inbox-ui/src/hooks/use-mobile.ts ↗
        • L5 · useIsMobile calls (conditional paths may differ): React.useState, React.useEffect, window.matchMedia, setIsMobile, mql.addEventListener, mql.removeEventListener
        services/inbox-ui/src/lib/threading.ts ↗
        • L16 · strip calls (conditional paths may differ): id.trim, t.startsWith, t.endsWith, t.slice
        • L21 · refIds calls (conditional paths may differ): map, filter, s.split
        • L26 · isPrefixed calls (conditional paths may differ): test
        • L30 · normalizeSubject calls (conditional paths may differ): toLowerCase, trim, replace
        • L38 · groupThread calls (conditional paths may differ): sort, getTime, groupMap.get, groupMap.set, g.items.push, findRoot, groupMap.values
        • L78 · findRoot calls (conditional paths may differ): strip, byId.has, byId.set, byId.get, refIds, isPrefixed, normalizeSubject, getTime, seen.has, seen.add, findParent
        • L86 · findParent calls (conditional paths may differ): byId.get, strip, refIds, isPrefixed, normalizeSubject, getTime
        • L120 · replyReferences calls (conditional paths may differ): join, filter
        services/inbox-ui/src/lib/utils.ts ↗
        • L4 · cn calls (conditional paths may differ): twMerge, clsx
        services/inbox-ui/src/pages/AcceptInvite.tsx ↗
        • L27 · AcceptInvite calls (conditional paths may differ): useParams, useNavigate, useState, useEffect, catch, then, getInvite, setInviteEmail, setNotFound, e.preventDefault, setError, setLoading, acceptInvite, name.trim, navigate, setName, setPassword, setShowPw, setConfirm
        • L47 · handleSubmit calls (conditional paths may differ): e.preventDefault, setError, setLoading, acceptInvite, name.trim, navigate
        services/inbox-ui/src/pages/Dashboard.tsx ↗
        • L96 · fmt calls (conditional paths may differ): toFixed, Math.round, n.toLocaleString
        • L103 · timeAgo calls (conditional paths may differ): Math.floor, Date.now, getTime
        • L111 · shortDate calls (conditional paths may differ): toLocaleDateString
        • L117 · smoothPath calls (conditional paths may differ): x.toFixed, y.toFixed, toFixed
        • L133 · AreaChart calls (conditional paths may differ): useState, useRef, Math.max, daily.map, smoothPath, last.x.toFixed, toFixed, first.x.toFixed, svgRef.current.getBoundingClientRect, Math.min, Math.round, setTooltip, yGrid.map, shortDate, tooltip.d.sent.toLocaleString, map, Math.floor
        • L168 · handleMouseMove calls (conditional paths may differ): svgRef.current.getBoundingClientRect, Math.min, Math.max, Math.round, setTooltip
        • L298 · DashboardSkeleton calls (conditional paths may differ): map, Array
        • L327 · Dashboard calls (conditional paths may differ): useState, setRefreshing, Promise.all, api.get, catch, setStats, setLogs, setCfStatus, useEffect, load, deliveryRate.toFixed, Math.min, toLocaleDateString, RANGES.map, setRange, toLocaleString, fmt, cn, limitPct.toFixed, stats.daily.reduce
        • L334 · load calls (conditional paths may differ): setRefreshing, Promise.all, api.get, catch, setStats, setLogs, setCfStatus
        services/inbox-ui/src/pages/Domains.tsx ↗
        • L51 · DomainsPage calls (conditional paths may differ): useState, setLoading, api.get, setDomains, useEffect, load, e.preventDefault, setFormError, setSubmitting, api.post, setForm, setCreating, setVerifying, api.delete, setDeleteId, setDnsModal, map, Array, domains.map, handleDns
        • L62 · load calls (conditional paths may differ): setLoading, api.get, setDomains
        • L73 · handleCreate calls (conditional paths may differ): e.preventDefault, setFormError, setSubmitting, api.post, setForm, setCreating, load
        • L92 · handleVerify calls (conditional paths may differ): setVerifying, api.post, load
        • L102 · confirmDelete calls (conditional paths may differ): api.delete, setDeleteId, load
        • L109 · handleDns calls (conditional paths may differ): api.get, setDnsModal
        services/inbox-ui/src/pages/Keys.tsx ↗
        • L37 · timeAgo calls (conditional paths may differ): Math.floor, Date.now, getTime
        • L45 · KeysPage calls (conditional paths may differ): useState, setLoading, api.get, setKeys, data.filter, useEffect, load, e.preventDefault, api.post, setNewKey, setCreating, setForm, api.delete, setRevokeId, navigator.clipboard.writeText, setCopied, setTimeout, copyKey, map, Array
        • L54 · load calls (conditional paths may differ): setLoading, api.get, setKeys, data.filter
        • L65 · handleCreate calls (conditional paths may differ): e.preventDefault, api.post, setNewKey, setCreating, setForm, load
        • L74 · confirmRevoke calls (conditional paths may differ): api.delete, setRevokeId, load
        • L81 · copyKey calls (conditional paths may differ): navigator.clipboard.writeText, setCopied, setTimeout
        services/inbox-ui/src/pages/Lists.tsx ↗
        • L20 · ListsPage calls (conditional paths may differ): useState, setLoading, api.get, setLists, useEffect, load, e.preventDefault, setErr, setSaving, api.post, setForm, setCreating, setDeleting, api.delete, map, Array, lists.map, handleDelete
        • L29 · load calls (conditional paths may differ): setLoading, api.get, setLists
        • L40 · handleCreate calls (conditional paths may differ): e.preventDefault, setErr, setSaving, api.post, setForm, setCreating, load
        • L57 · handleDelete calls (conditional paths may differ): setDeleting, api.delete, load
        services/inbox-ui/src/pages/Login.tsx ↗
        • L23 · Login calls (conditional paths may differ): useNavigate, useState, e.preventDefault, setError, setLoading, login, navigate, map, setEmail, setPassword, setShowPassword, email.trim, password.trim
        • L31 · handleSubmit calls (conditional paths may differ): e.preventDefault, setError, setLoading, login, navigate
        services/inbox-ui/src/pages/Logs.tsx ↗
        • L55 · DetailPanel calls (conditional paths may differ): sentAt.toLocaleString, map, sentAt.toISOString, cn
        • L209 · LogsPage calls (conditional paths may differ): useState, useCallback, setLoading, String, params.set, api.get, setResult, useEffect, load, setStatus, setPage, e.preventDefault, setSearch, setSearchInput, STATUS_OPTS.map, handleStatus, setFrom, setTo, map, Array
        • L236 · handleStatus calls (conditional paths may differ): setStatus, setPage
        • L240 · handleSearch calls (conditional paths may differ): e.preventDefault, setSearch, setPage
        • L245 · clearSearch calls (conditional paths may differ): setSearch, setSearchInput, setPage
        services/inbox-ui/src/pages/Playground.tsx ↗
        • L38 · ThemePicker calls (conditional paths may differ): EMAIL_THEMES.map, onChange, cn
        • L62 · beautifyHtml calls (conditional paths may differ): filter, map, split, html.replace, l.trim, join, lines.map, line.match, Math.max, tab.repeat, voids.test
        • L85 · SyntaxCode calls (conditional paths may differ): useMemo, beautifyHtml, hljs.highlight, result.replace, replace, code.replace
        • L125 · extractVars calls (conditional paths may differ): text.matchAll, vars.add, Array.from
        • L131 · applyVarsPreview calls (conditional paths may differ): text.replace
        • L141 · PlaygroundPage calls (conditional paths may differ): useState, apiKey.startsWith, useEffect, then, Promise.all, api.get, setTemplates, dom.filter, setDomains, setFromDomain, selectedId.startsWith, selectedId.slice, useMemo, templates.find, extractVars, setSelectedId, setVariables, setPreviewHtml, setPreviewSubject, setResult
        • L191 · handleSelect calls (conditional paths may differ): setSelectedId, setVariables, setPreviewHtml, setPreviewSubject, setResult, id.startsWith, templates.find, id.slice, setSubject
        • L288 · handleSend calls (conditional paths may differ): e.preventDefault, setResult, setSending, api.post, JSON.stringify
        services/inbox-ui/src/pages/Setup.tsx ↗
        • L23 · Setup calls (conditional paths may differ): useNavigate, useState, e.preventDefault, setError, setLoading, setup, name.trim, email.trim, navigate, setName, setEmail, setPassword, setShowPw, setConfirm
        • L33 · handleSubmit calls (conditional paths may differ): e.preventDefault, setError, setLoading, setup, name.trim, email.trim, navigate
        services/inbox-ui/src/pages/Suppressions.tsx ↗
        • L59 · AddDialog calls (conditional paths may differ): useState, e.preventDefault, setErr, setSaving, api.post, onAdded, onClose, setEmail, setReason
        • L65 · handleSubmit calls (conditional paths may differ): e.preventDefault, setErr, setSaving, api.post, onAdded, onClose, setEmail, setReason
        • L138 · SuppressionsPage calls (conditional paths may differ): useState, useCallback, setLoading, String, params.set, api.get, setResult, useEffect, load, setDeleting, api.delete, e.preventDefault, setSearch, setPage, setAddOpen, setSearchInput, setReason, REASON_FILTER_OPTS.map, map, Array
        • L162 · handleDelete calls (conditional paths may differ): setDeleting, api.delete, load
        • L172 · handleSearch calls (conditional paths may differ): e.preventDefault, setSearch, setPage
        services/inbox-ui/src/pages/Templates.tsx ↗
        • L49 · ThemePicker calls (conditional paths may differ): EMAIL_THEMES.map, onChange, cn
        • L72 · extractVars calls (conditional paths may differ): text.matchAll, vars.add, Array.from
        • L78 · TemplateCard calls (conditional paths may differ): cn, toLocaleDateString, detectedVars.map, onVarChange
        • L163 · TemplatesPage calls (conditional paths may differ): useState, setLoading, api.get, setTemplates, useEffect, load, setEditing, setForm, setMode, setPreviewing, setPreviewVars, setPreviewHtml, setPreviewSubject, setVarsOpen, setPreviewLoading, api.post, refreshPreview, e.preventDefault, api.put, api.delete
        • L180 · load calls (conditional paths may differ): setLoading, api.get, setTemplates
        • L191 · openCreate calls (conditional paths may differ): setEditing, setForm, setMode
        • L197 · openEdit calls (conditional paths may differ): setEditing, setForm, setMode
        • L210 · openPreview calls (conditional paths may differ): setPreviewing, setPreviewVars, setPreviewHtml, setPreviewSubject, setVarsOpen, setPreviewLoading, api.post
        • L231 · refreshPreview calls (conditional paths may differ): api.post, setPreviewHtml, setPreviewSubject
        • L250 · handleSave calls (conditional paths may differ): e.preventDefault, api.post, api.put, setMode, load
        • L269 · confirmDelete calls (conditional paths may differ): api.delete, setPreviewing, setDeleteTarget, load
        services/inbox-ui/src/pages/TestMailbox.tsx ↗
        • L51 · DetailPanel calls (conditional paths may differ): sentAt.toLocaleString, map, sentAt.toISOString, cn
        • L197 · TestMailboxPage calls (conditional paths may differ): useState, useCallback, setLoading, String, params.set, api.get, setResult, useEffect, load, confirm, api.delete, setSelected, e.preventDefault, setSearch, setPage, setSearchInput, setFrom, setTo, map, Array
        • L222 · handleDelete calls (conditional paths may differ): confirm, api.delete, setSelected, load
        • L230 · handleSearch calls (conditional paths may differ): e.preventDefault, setSearch, setPage
        • L235 · clearSearch calls (conditional paths may differ): setSearch, setSearchInput, setPage
        services/inbox-ui/src/pages/inbox/InboxSettings.tsx ↗
        • L31 · InboxSettings calls (conditional paths may differ): useState, useEffect, finally, then, Promise.all, getInboxes, getDomains, setInboxes, setDomains, setLoading, setLocalPart, setSelectedDomain, setDisplayName, setMode, setCreateStep, setCreatedInbox, setAssignUsers, setAssignMembers, setAssignUserId, setCreateOpen
        • L72 · openCreate calls (conditional paths may differ): setLocalPart, setSelectedDomain, setDisplayName, setMode, setCreateStep, setCreatedInbox, setAssignUsers, setAssignMembers, setAssignUserId, setCreateOpen
        • L85 · openEdit calls (conditional paths may differ): setEditing, setDisplayName, setMode
        • L92 · handleCreateInbox calls (conditional paths may differ): setCreating, createInbox, localPart.trim, setCreatedInbox, setInboxes, setCreateStep
        • L109 · handleRetryRouting calls (conditional paths may differ): setRoutingId, setupInboxRouting, setCreatedInbox, setInboxes, prev.map
        • L128 · goToAssign calls (conditional paths may differ): setCreateStep, setAssignUserId, setAssignUsers, getUsers
        • L138 · handleAssignMember calls (conditional paths may differ): setAssignAdding, addInboxMember, assignUsers.find, setAssignMembers, setAssignUserId
        • L151 · finishCreate calls (conditional paths may differ): setCreateOpen, setCreatedInbox, setCreateStep
        • L157 · handleEditSave calls (conditional paths may differ): setSaving, updateInbox, setInboxes, prev.map, setEditing
        • L169 · handleDelete calls (conditional paths may differ): setDeleting, deleteInbox, setInboxes, prev.filter, setDeleteId
        • L181 · handleSetupRouting calls (conditional paths may differ): setRoutingId, setupInboxRouting, setInboxes, prev.map
        • L196 · openMembers calls (conditional paths may differ): setMembersInbox, setAddUserId, setLoadingMembers, Promise.all, getInboxMembers, getUsers, setMembers, setAllUsers
        • L209 · handleAddMember calls (conditional paths may differ): setAddingMember, addInboxMember, getInboxMembers, setMembers, setAddUserId
        • L222 · handleRemoveMember calls (conditional paths may differ): catch, removeInboxMember, console.error, setMembers, prev.filter
        services/inbox-ui/src/pages/inbox/People.tsx ↗
        • L22 · initials calls (conditional paths may differ): toUpperCase, slice, join, map, name.split
        • L33 · relativeTime calls (conditional paths may differ): Date.now, getTime, Math.floor, toLocaleDateString
        • L50 · stripQuotedReply calls (conditional paths may differ): body.match, trim, body.slice, body.split, lines.findIndex, test, join, lines.slice, body.trim
        • L69 · ContactRow calls (conditional paths may differ): cn, initials, relativeTime
        • L120 · EmailCard calls (conditional paths may differ): useState, stripQuotedReply, cn, setOpen, date.toLocaleString, onReply
        • L213 · ThreadPanel calls (conditional paths may differ): useRef, groupThread, inboxGroups.has, inboxGroups.set, push, inboxGroups.get, useEffect, initials, map, Array.from, inboxGroups.entries, inboxThreads.map, group.items.map
        • L315 · People calls (conditional paths may differ): useState, setLoadingPeople, finally, then, getPeople, setPeople, useEffect, loadPeople, catch, getInboxes, console.error, setSelectedId, setLoadingThread, getThread, setThread, markRead, prev.map, setReplyTarget, setComposeTo, setComposeFrom
        • L334 · loadPeople calls (conditional paths may differ): setLoadingPeople, finally, then, getPeople, setPeople
        • L353 · selectPerson calls (conditional paths may differ): setSelectedId, setLoadingThread, getThread, setThread, catch, markRead, console.error, setPeople, prev.map
        • L369 · openCompose calls (conditional paths may differ): setReplyTarget, setComposeTo, setComposeFrom, setComposeSubject, setComposeBody, setComposeOpen
        • L380 · openReply calls (conditional paths may differ): setReplyTarget, setComposeTo, setComposeFrom, setComposeSubject, setComposeBody, setComposeOpen
        • L389 · handleComposeSend calls (conditional paths may differ): composeBody.trim, composeTo.trim, composeFrom.trim, setComposeSending, replyTo, replyReferences, composeSend, setSelectedId, setComposeOpen, loadPeople, getThread, setThread
        services/inbox-ui/src/pages/inbox/Sequences.tsx ↗
        • L24 · StepRow calls (conditional paths may differ): onChange, parseInt
        • L90 · SequenceCard calls (conditional paths may differ): seq.steps.map, toLocaleDateString
        • L140 · Sequences calls (conditional paths may differ): useState, emptyStep, useEffect, finally, then, getSequences, setLoading, setEditing, setName, setSteps, setSheetOpen, name.trim, setSaving, steps.filter, s.templateSlug.trim, updateSequence, setSequences, prev.map, createSequence, setDeleting
        • L157 · openCreate calls (conditional paths may differ): setEditing, setName, setSteps, emptyStep, setSheetOpen
        • L164 · openEdit calls (conditional paths may differ): setEditing, setName, setSteps, emptyStep, setSheetOpen
        • L171 · handleSave calls (conditional paths may differ): name.trim, setSaving, steps.filter, s.templateSlug.trim, updateSequence, setSequences, prev.map, createSequence, setSheetOpen
        • L189 · handleDelete calls (conditional paths may differ): setDeleting, deleteSequence, setSequences, prev.filter, setDeleteId
        • L201 · updateStep calls (conditional paths may differ): setSteps, prev.map
        services/inbox-ui/src/pages/settings/Users.tsx ↗
        • L43 · UsersPage calls (conditional paths may differ): useUser, useState, useEffect, finally, then, getUsers, setLoading, setInviteError, setInviting, createInvite, inviteEmail.trim, setInviteUrl, setInviteOpen, setInviteEmail, setInviteRole, setCopied, navigator.clipboard.writeText, setTimeout, setRevoking, revokeUser
        • L64 · handleInvite calls (conditional paths may differ): setInviteError, setInviting, createInvite, inviteEmail.trim, setInviteUrl
        • L79 · closeInviteDialog calls (conditional paths may differ): setInviteOpen, setInviteEmail, setInviteRole, setInviteUrl, setInviteError, setCopied
        • L88 · copyInviteUrl calls (conditional paths may differ): navigator.clipboard.writeText, setCopied, setTimeout
        • L94 · handleRevoke calls (conditional paths may differ): setRevoking, revokeUser, setUsers, prev.filter, setRevokeId
        • L106 · handleRoleChange calls (conditional paths may differ): setChangingRoleId, changeUserRole, setUsers, prev.map
        services/inbox-ui/src/routes/__root.tsx ↗
        • L6 · AuthGate calls (conditional paths may differ): useNavigate, useState, useEffect, path.startsWith, setChecked, then, Promise.all, catch, getSetupStatus, me, navigate
        services/inbox-ui/vite.config.ts ↗

          Environment references: process.env.VITE_BACKEND_PORT

          services/inbox-worker/src/db.ts ↗
          • L39 · buildWhere calls (conditional paths may differ): Object.keys, Object.entries, isComparison, clauses.push, params.push, clauses.join
          • L192 · makeDb calls (conditional paths may differ): db.table
          • L210 · deleteDomainCascade calls (conditional paths may differ): makeDb, apiKeyDomains.delete, domains.delete
          services/inbox-worker/src/email-handler.ts ↗
          • L21 · handleIncomingEmail calls (conditional paths may differ): arrayBuffer, PostalMime.parse, message.from.toLowerCase, message.to.toLowerCase, toISOString, parseThreadToken, stripThreadToken, first, bind, env.DB.prepare, upsertPerson, encode, generateId, env.ATTACHMENTS.put, threadMessageId, resolveThreadId, run, message.headers.get, all, env.NOTIFICATIONS.idFromName

          Environment references: env.DB · env.ATTACHMENTS · env.NOTIFICATIONS

          services/inbox-worker/src/index.ts ↗
          • L161 · fetch handler exported · calls app.fetch
          • L166 · email handler exported · calls handleIncomingEmail
          • L171 · scheduled handler exported · calls processDueSequenceSteps
          • L176 · queue handler exported · calls handleSequenceQueueMessage, msg.ack, msg.retry
          • L68 · app.use("/v1/*")
          • L78 · app.get("/health")
          • L79 · app.route("/api/setup")
          • L80 · app.route("/api/auth")
          • L81 · app.route("/api")
          • L84 · app.route("/v1/unsubscribe")
          • L87 · app.use("/v1/*")
          • L88 · app.route("/v1/send")
          • L92 · adminApp.use("/*")
          • L94 · adminApp.route("/domains")
          • L95 · adminApp.route("/keys")
          • L96 · adminApp.route("/logs")
          • L97 · adminApp.route("/templates")
          • L98 · adminApp.route("/stats")
          • L99 · adminApp.route("/cloudflare")
          • L100 · adminApp.route("/lists")
          • L101 · adminApp.route("/suppressions")
          • L105 · testMailboxApp.use("/*")
          • L106 · testMailboxApp.route("/")
          • L107 · adminApp.route("/test-emails")
          • L110 · adminApp.route("/inbox/people")
          • L111 · adminApp.route("/inbox/compose")
          • L112 · adminApp.route("/inbox/inboxes")
          • L113 · adminApp.route("/inbox/sequences")
          • L114 · adminApp.route("/inbox/templates")
          • L118 · adminOnlyApp.use("/*")
          • L119 · adminOnlyApp.route("/users")
          • L120 · adminApp.route("/admin")
          • L123 · adminApp.get("/notifications/ws")
          • L131 · adminApp.post("/seed")
          • L136 · app.route("/api")
          • L148 · app.all("*")

          Environment references: c.env.NOTIFICATIONS · c.env.DB · c.env.ASSETS

          services/inbox-worker/src/lib/password.ts ↗
          • L10 · deriveKey calls (conditional paths may differ): crypto.subtle.importKey, encode, crypto.subtle.deriveBits
          • L22 · toBase64 calls (conditional paths may differ): btoa, String.fromCharCode
          • L26 · fromBase64 calls (conditional paths may differ): Uint8Array.from, atob, c.charCodeAt
          • L30 · hashPassword calls (conditional paths may differ): crypto.getRandomValues, deriveKey, toBase64
          • L36 · verifyPassword calls (conditional paths may differ): stored.split, fromBase64, deriveKey
          services/inbox-worker/src/middleware/apiKey.ts ↗
          • L9 · sha256Hex calls (conditional paths may differ): encode, crypto.subtle.digest, join, map, Array.from, padStart, b.toString

          Environment references: c.env.DB

          services/inbox-worker/src/middleware/auth.ts ↗
          • L22 · secretKey calls (conditional paths may differ): encode
          • L26 · getSession calls (conditional paths may differ): getCookie, jwtVerify, secretKey
          • L49 · saveSession calls (conditional paths may differ): sign, setExpirationTime, setIssuedAt, setProtectedHeader, secretKey, setCookie
          • L72 · clearSession calls (conditional paths may differ): deleteCookie

          Environment references: c.env.SESSION_SECRET

          services/inbox-worker/src/middleware/loginRateLimit.ts ↗
          • L11 · checkLoginRateLimit calls (conditional paths may differ): kv.get, parseInt, kv.put, String
          services/inbox-worker/src/middleware/rateLimit.ts ↗

            Environment references: c.env.RATE_LIMITER

            services/inbox-worker/src/routes/admin/users.ts ↗
            • L15 · app.get("/")
            • L23 · app.delete("/:id")
            • L44 · app.patch("/:id/role")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/auth.ts ↗
            • L15 · app.post("/login")
            • L48 · app.post("/logout")
            • L55 · app.get("/me")

            Environment references: c.env.RATE_LIMIT_KV · c.env.DB

            services/inbox-worker/src/routes/cloudflare.ts ↗
            • L8 · app.get("/status")

            Environment references: c.env.CF_API_TOKEN · c.env.CF_ACCOUNT_ID

            services/inbox-worker/src/routes/domains.ts ↗
            • L18 · app.get("/")
            • L25 · app.get("/:id")
            • L33 · app.post("/")
            • L91 · app.get("/:id/dns")
            • L102 · app.post("/:id/verify")
            • L123 · app.delete("/:id")

            Environment references: c.env.DB · c.env.CF_API_TOKEN

            services/inbox-worker/src/routes/inbox/compose.ts ↗
            • L25 · app.post("/")

            Environment references: c.env.DB · c.env.CF_API_TOKEN · c.env.CF_ACCOUNT_ID

            services/inbox-worker/src/routes/inbox/inbox-templates.ts ↗
            • L16 · app.get("/")
            • L22 · app.post("/")
            • L41 · app.put("/:id")
            • L63 · app.delete("/:id")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/inbox/inboxes.ts ↗
            • L58 · app.get("/")
            • L64 · app.post("/")
            • L93 · app.post("/:id/routing")
            • L109 · app.put("/:id")
            • L127 · app.delete("/:id")
            • L139 · app.get("/:id/members")
            • L152 · app.post("/:id/members")
            • L164 · app.delete("/:id/members/:userId")
            • L25 · configureRouting calls (conditional paths may differ): email.split, getZoneByHostname, enableEmailRouting, setCatchAllToWorker

            Environment references: c.env.DB · c.env.CF_API_TOKEN · c.env.INBOX_WORKER_NAME

            services/inbox-worker/src/routes/inbox/people.ts ↗
            • L14 · app.get("/")
            • L61 · app.get("/:id")
            • L68 · app.get("/:id/thread")
            • L110 · app.post("/:id/mark-read")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/inbox/sequences.ts ↗
            • L19 · app.get("/")
            • L25 · app.post("/")
            • L36 · app.put("/:id")
            • L55 · app.delete("/:id")
            • L69 · app.post("/:id/enroll")
            • L90 · app.delete("/enrollments/:enrollmentId")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/invites.ts ↗
            • L25 · app.post("/admin/invites")
            • L64 · app.get("/invites/:token")
            • L87 · app.post("/invites/:token/accept")
            • L17 · sha256Hex calls (conditional paths may differ): crypto.subtle.digest, encode, join, map, Array.from, padStart, b.toString

            Environment references: c.env.DB

            services/inbox-worker/src/routes/keys.ts ↗
            • L18 · app.get("/")
            • L25 · app.post("/")
            • L59 · app.delete("/:id")
            • L8 · randomHex calls (conditional paths may differ): crypto.getRandomValues, join, map, Array.from, padStart, b.toString

            Environment references: c.env.DB

            services/inbox-worker/src/routes/lists.ts ↗
            • L15 · app.get("/")
            • L22 · app.post("/")
            • L39 · app.delete("/:id")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/logs.ts ↗
            • L9 · app.get("/")
            • L76 · app.get("/:id")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/send.ts ↗
            • L18 · app.post("/")

            Environment references: c.env.DB · c.env.PUBLIC_URL · c.env.CF_API_TOKEN · c.env.CF_ACCOUNT_ID

            services/inbox-worker/src/routes/setup.ts ↗
            • L15 · app.get("/status")
            • L27 · app.post("/")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/stats.ts ↗
            • L27 · app.get("/")
            • L9 · rangeStart calls (conditional paths may differ): now.setDate, now.getDate, now.setHours, now.toISOString

            Environment references: c.env.DB

            services/inbox-worker/src/routes/suppressions.ts ↗
            • L16 · app.get("/")
            • L63 · app.post("/")
            • L86 · app.delete("/:id")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/templates.ts ↗
            • L13 · app.get("/")
            • L27 · app.get("/themes")
            • L37 · app.get("/:idOrSlug")
            • L47 · app.post("/")
            • L73 · app.put("/:id")
            • L110 · app.delete("/:id")
            • L121 · app.post("/:id/preview")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/testEmails.ts ↗
            • L14 · app.get("/")
            • L61 · app.get("/:id")
            • L70 · app.delete("/:id")

            Environment references: c.env.DB

            services/inbox-worker/src/routes/unsubscribe.ts ↗
            • L37 · app.get("/")
            • L50 · app.post("/")
            • L16 · performUnsubscribe calls (conditional paths may differ): makeDb, then, db.query, db.run, generateId, rec.email.toLowerCase, toISOString

            Environment references: env.DB

            services/inbox-worker/src/seed.ts ↗
            • L62 · seedSystemTemplates calls (conditional paths may differ): makeDb, toISOString, Object.entries, templates.findOne, templates.insert, generateId
            services/inbox-worker/src/sequence-processor.ts ↗
            • L43 · processDueSequenceSteps calls (conditional paths may differ): all, env.DB.prepare, Date.now, JSON.parse, run, bind, getTime, toEnqueue.push, env.EMAIL_QUEUE.sendBatch, toEnqueue.map
            • L77 · handleSequenceQueueMessage calls (conditional paths may differ): first, bind, env.DB.prepare, JSON.parse, person.email.toLowerCase, log.info, run, replace, generateId, toISOString, listUnsubscribeHeaders, sendEmail, applyVariables, log.error

            Environment references: env.DB · env.EMAIL_QUEUE · env.PUBLIC_URL · env.CF_API_TOKEN · env.CF_ACCOUNT_ID

            Build and deployment pipeline · 3 GitHub Actions workflows

            Repository CI declarations, separate from runtime request processing. Job dependencies and conditions are shown as written; long commands are shortened with an ellipsis; a workflow file does not prove a recent successful run.

            Deploy Cloudflare Workers · .github/workflows/deploy-workers.yml ↗

            Triggers: workflow_dispatch

            Deploy emailflare-api-worker · no job dependencies declared

            Condition: ${{ github.event.inputs.target == 'cf-api' || github.event.inputs.target == 'all' }}

            1. actions/checkout@v4actions/checkout@v4
            2. Enable Corepackcorepack enable
            3. actions/setup-node@v4actions/setup-node@v4
            4. Install workspace dependenciespnpm install --frozen-lockfile
            5. Build shared packagespnpm run build:shared
            6. Build admin UI (email-ui)pnpm install --frozen-lockfile pnpm build
            7. Install worker depspnpm install --frozen-lockfile
            8. Audit dependenciespnpm audit --audit-level=high
            9. Generate wrangler.jsoncsed -e "s/REPLACE_WITH_D1_DATABASE_ID/${{ vars.EMAIL_WORKER_D1_ID }}/g" \ -e "s/REPLACE_WITH_KV_NAMESPACE_ID/${{ vars.EMAIL_WORKER_KV_ID }}/g" \ wrangler.example.jsonc > wrangler.jsonc
            10. Apply D1 migrationspnpm run migrations:apply
            11. Deploy workernpx wrangler deploy

            Deploy emailflare-inbox-worker · no job dependencies declared

            Condition: ${{ github.event.inputs.target == 'cf-inbox' || github.event.inputs.target == 'all' }}

            1. actions/checkout@v4actions/checkout@v4
            2. Enable Corepackcorepack enable
            3. actions/setup-node@v4actions/setup-node@v4
            4. Install workspace dependenciespnpm install --frozen-lockfile
            5. Build shared packagespnpm run build:shared
            6. Build inbox UI (inbox-ui)pnpm install --frozen-lockfile pnpm build
            7. Install worker depspnpm install --frozen-lockfile
            8. Audit dependenciespnpm audit --audit-level=high
            9. Generate wrangler.jsoncsed -e "s/REPLACE_WITH_D1_DATABASE_ID/${{ vars.EMAIL_WORKER_D1_ID }}/g" \ -e "s/REPLACE_WITH_KV_NAMESPACE_ID/${{ vars.INBOX_WORKER_KV_ID }}/g" \ wrangler.example.jsonc > wrangler.jsonc
            10. Apply D1 migrationspnpm run migrations:apply
            11. Deploy workernpx wrangler deploy

            Deploy bridges · no job dependencies declared

            Condition: ${{ github.event.inputs.target == 'cf-worker' || github.event.inputs.target == 'all' }}

            1. actions/checkout@v4actions/checkout@v4
            2. Enable Corepackcorepack enable
            3. actions/setup-node@v4actions/setup-node@v4
            4. Install workspace dependenciespnpm install --frozen-lockfile
            5. Deploy bridgenpx wrangler deploy
            Docker Build Check · .github/workflows/docker-check.yml ↗

            Triggers: push

            Check emailflare-api Dockerfile · no job dependencies declared

            1. actions/checkout@v4actions/checkout@v4
            2. docker/setup-buildx-action@v3docker/setup-buildx-action@v3
            3. Build (no push)docker/build-push-action@v6

            Check emailflare-inbox Dockerfile · no job dependencies declared

            1. actions/checkout@v4actions/checkout@v4
            2. docker/setup-buildx-action@v3docker/setup-buildx-action@v3
            3. Build (no push)docker/build-push-action@v6

            Verify ${{ matrix.name }} · no job dependencies declared

            1. actions/checkout@v4actions/checkout@v4
            2. Enable Corepackcorepack enable
            3. actions/setup-node@v4actions/setup-node@v4
            4. Install workspace dependenciespnpm install --frozen-lockfile
            5. Build shared packagespnpm run build:shared
            6. Check (${{ matrix.check }})${{ matrix.check }}
            7. Audit dependenciespnpm audit --audit-level=high
            Build, Verify & Publish · .github/workflows/docker-publish.yml ↗

            Triggers: push, workflow_dispatch

            Verify API · ${{ matrix.name }} · no job dependencies declared

            1. actions/checkout@v4actions/checkout@v4
            2. Enable Corepackcorepack enable
            3. actions/setup-node@v4actions/setup-node@v4
            4. Install workspace dependenciespnpm install --frozen-lockfile
            5. Build shared packagespnpm run build:shared
            6. Buildpnpm run build
            7. Audit dependenciespnpm audit --audit-level=high

            Verify Inbox · ${{ matrix.name }} · no job dependencies declared

            1. actions/checkout@v4actions/checkout@v4
            2. Enable Corepackcorepack enable
            3. actions/setup-node@v4actions/setup-node@v4
            4. Install workspace dependenciespnpm install --frozen-lockfile
            5. Build shared packagespnpm run build:shared
            6. Buildpnpm run build
            7. Audit dependenciespnpm audit --audit-level=high

            Build emailflare-api image · after verify-api

            1. actions/checkout@v4actions/checkout@v4
            2. Resolve image nameif [[ "${{ github.ref_name }}" =~ ^s[0-9] ]]; then echo "image=${{ env.REGISTRY }}/${{ github.repository_owner }}/emailflare-api-staging" >> $GITHUB_OUTPUT echo "is_staging=true" >> $GITHUB_OUTPUT else echo "image=${{ env.REGISTRY }}/${{ github.repository_owner }}/emailflare-api" >> $GITHUB_OUTPUT echo "is_staging=false" >> $GITHUB_OUTPUT fi
            3. docker/setup-qemu-action@v3docker/setup-qemu-action@v3
            4. docker/setup-buildx-action@v3docker/setup-buildx-action@v3
            5. Log in to GitHub Container Registrydocker/login-action@v3Condition: github.event_name != 'pull_request'
            6. Extract Docker metadatadocker/metadata-action@v5
            7. Build and pushdocker/build-push-action@v6

            Build emailflare-inbox image · after verify-inbox

            1. actions/checkout@v4actions/checkout@v4
            2. Resolve image nameif [[ "${{ github.ref_name }}" =~ ^s[0-9] ]]; then echo "image=${{ env.REGISTRY }}/${{ github.repository_owner }}/emailflare-inbox-staging" >> $GITHUB_OUTPUT echo "is_staging=true" >> $GITHUB_OUTPUT else echo "image=${{ env.REGISTRY }}/${{ github.repository_owner }}/emailflare-inbox" >> $GITHUB_OUTPUT echo "is_staging=false" >> $GITHUB_OUTPUT fi
            3. docker/setup-qemu-action@v3docker/setup-qemu-action@v3
            4. docker/setup-buildx-action@v3docker/setup-buildx-action@v3
            5. Log in to GitHub Container Registrydocker/login-action@v3Condition: github.event_name != 'pull_request'
            6. Extract Docker metadatadocker/metadata-action@v5
            7. Build and pushdocker/build-push-action@v6
            package.json ↗
            • build:email-core: pnpm --filter @emailflare/email-core build
            • build:inbox-core: pnpm --filter @emailflare/inbox-core build
            • build:emails: pnpm --filter @emailflare/emails build
            • build:shared: pnpm run build:email-core && pnpm run build:inbox-core && pnpm run build:emails
            • build:email-server: pnpm --filter @emailflare/email-server build
            • build:inbox-server: pnpm --filter @emailflare/inbox-server build
            • build:email-ui: pnpm --filter @emailflare/email-ui build
            • build:inbox-ui: pnpm --filter @emailflare/inbox-ui build
            services/email-ui/package.json ↗
            • build: vite build && tsc --noEmit
            services/email-worker/package.json ↗
            • deploy: wrangler deploy
            • migrations:apply:local: wrangler d1 migrations apply emailflare --local
            • migrations:apply: wrangler d1 migrations apply emailflare --remote
            services/inbox-server/package.json ↗
            • build: tsc
            • migrate: node dist/migrate.js
            services/inbox-ui/package.json ↗
            • build: vite build && tsc --noEmit
            services/inbox-worker/package.json ↗
            • deploy: wrangler deploy
            • migrations:apply:local: wrangler d1 migrations apply emailflare --local
            • migrations:apply: wrangler d1 migrations apply emailflare --remote
            • build:packages: pnpm --filter @emailflare/email-core build && pnpm --filter @emailflare/inbox-core build
            • build:ui: pnpm --filter @emailflare/inbox-ui build
            • deploy:full: pnpm run build:packages && pnpm run build:ui && wrangler d1 migrations apply emailflare --remote && wrangler deploy
            services/landing/package.json ↗
            • build: astro build
            • deploy: pnpm build && wrangler deploy

            Full upstream document by @0xdps · README.md · snapshot d448ea2

            EmailFlare logo

            EmailFlare

            EmailFlare is a Cloudflare-native email platform with two independent services that work together:

            • emailflare-api — transactional email sending API with an admin dashboard (domains, templates, API keys, logs, suppressions, lists + one-click unsubscribe)
            • emailflare-inbox — team inbox and lightweight CRM (receive, thread, reply, sequences, multi-user, lists + one-click unsubscribe)

            Both services are built on Cloudflare — Email Sending, Email Routing, D1, KV, R2, Queues, and Durable Objects — and deploy as Cloudflare Workers (primary, zero-ops) or as a single Docker container with embedded SQLite (secondary, for self-hosting).


            emailflare-api · Email Sending API

            A Hono API for sending transactional email via the Cloudflare Email Sending API, with a React admin panel for managing domains, templates, API keys, and logs.

            Cloudflare Worker deployment (primary — no Docker, edge-native)

            just install
            cp scripts/config.example.toml scripts/config.toml
            # fill in your values
            just emailflare-api-worker-setup
            

            Read the full guide: docs/CLOUDFLARE.md

            Docker self-host (secondary)

            gcr.io/0xdps/emailflare-api:latest
            
            cp .env.api.example .env.local
            # fill in SESSION_SECRET, ADMIN_TOKEN, CF_API_TOKEN, CF_ACCOUNT_ID
            
            docker compose --env-file .env.local -f deploy/docker/compose.email-api.yaml up -d
            

            Open http://localhost:8090. Read the full guide: docs/SELF_HOSTING.md

            Railway

            Deploy on Railway


            emailflare-inbox · Team Inbox & CRM

            A Node.js inbox server with a React dashboard for receiving inbound email via Cloudflare Email Routing, threading conversations, replying, running sequences, and managing contacts across a team.

            Cloudflare Worker deployment (primary — inbox-worker, D1 + R2 + KV + DO + Queues)

            just install
            cp scripts/config.example.toml scripts/config.toml
            # fill in your values
            just emailflare-inbox-deploy
            

            Read the full guide: docs/CLOUDFLARE.md

            Docker self-host (secondary)

            ghcr.io/0xdps/emailflare-inbox:latest
            
            cp .env.inbox.example .env.inbox.local
            # fill in SESSION_SECRET, WEBHOOK_SECRET, CF_API_TOKEN, CF_ACCOUNT_ID, REDIS_URL
            
            docker compose --env-file .env.inbox.local -f deploy/docker/compose.email-inbox.yaml up -d
            

            Open http://localhost:8091. Read the full guide: docs/SELF_HOSTING.md


            What ships in this repo

            Email API

            • services/email-worker — Cloudflare Worker bundling API + admin UI (D1 + KV) — primary deploy
            • services/email-server — Hono API (Node.js): domains, templates, keys, stats, send — for Docker
            • services/email-ui — React admin panel (Vite + TanStack Router)
            • services/email-bridge — CF Worker: receives bounce/complaint email and forwards to email-server webhook
            • deploy/docker/Dockerfile.email-api — production image for emailflare-api
            • deploy/docker/compose.email-api.yaml — single-container production compose
            • deploy/docker/compose.email-api.dev.yaml — local dev stack with hot reload

            Inbox

            • services/inbox-worker — Cloudflare Worker variant of the inbox (D1 + R2 + KV + DO + Queues) — primary deploy
            • services/inbox-server — Hono inbox API (Node.js): inboxes, people, threads, sequences, templates — for Docker
            • services/inbox-ui — React inbox dashboard (Vite + TanStack Router)
            • services/inbox-bridge — CF Worker: receives inbound email via CF Email Routing, forwards to inbox-server
            • deploy/docker/Dockerfile.email-inbox — production image for emailflare-inbox
            • deploy/docker/compose.email-inbox.yaml — single-container production compose
            • deploy/docker/compose.email-inbox.dev.yaml — local dev stack with hot reload

            Shared

            • services/emails — shared email layouts and rendering used by both servers
            • scripts/ — setup tooling for CF Worker deployments (setup.mjs, config.example.toml)
            • justfile — task runner for dev, prod, and Cloudflare Worker operations (docs/RECIPES.md)
            • docs/CLOUDFLARE.md — Cloudflare Workers deployment guide (primary)
            • docs/SELF_HOSTING.md — Docker self-hosting guide (secondary)

            Deployment modes

            EmailFlare supports two deployment modes for each product:

            Mode Products Stack When to use
            Cloudflare Workers (primary) emailflare-api, emailflare-inbox D1 + KV (+ R2, Queues, DO for inbox) Default — zero-ops, edge-native
            Docker (secondary) emailflare-api, emailflare-inbox single container + embedded SQLite Self-hosting on your own VPS/VM

            The Docker path uses SQLite via embedded mesahub-core (one image, one volume at /data).

            Read the full guides: docs/CLOUDFLARE.md · docs/SELF_HOSTING.md


            Minimum required environment

            emailflare-api (.env.local):

            Variable Description
            ADMIN_TOKEN Admin API token (32+ chars)
            SESSION_SECRET Session signing secret (32+ chars)
            MESAHUB_URL mh://local/emailflare for embedded SQLite
            CF_API_TOKEN Cloudflare token with Email Sending + Zone permissions
            CF_ACCOUNT_ID Cloudflare account ID
            PUBLIC_URL Public base URL, used for one-click unsubscribe links (optional)

            emailflare-inbox (.env.inbox.local):

            Variable Description
            SESSION_SECRET Session signing secret (32+ chars)
            WEBHOOK_SECRET Shared secret for inbox-bridge webhook auth
            MESAHUB_URL mh://local/inbox-db for embedded SQLite
            REDIS_URL Redis connection string (rate limiting + BullMQ)
            CF_API_TOKEN Cloudflare token for sending replies
            CF_ACCOUNT_ID Cloudflare account ID
            PUBLIC_URL Public base URL, used for one-click unsubscribe links in sequences (optional)

            Open source

            Frequently asked about EmailFlare

            What is EmailFlare?+

            EmailFlare is a self-hosted Postmark/Resend alternative built on the Cloudflare developer platform. Run transactional email APIs and a team inbox on Cloudflare Workers.

            What does EmailFlare replace?+

            EmailFlare is listed as an alternative to Postmark, Resend. Compare the features and tradeoffs before migrating.

            What Cloudflare primitives does EmailFlare use?+

            EmailFlare is built on D1, Durable Objects, Email Workers, KV, Queues, R2, Workers.

            How much does EmailFlare cost to run?+

            EmailFlare has a documented low-volume paid Cloudflare path beginning with Workers Paid ($5 USD/account/month), with separately metered usage. Arbitrary-recipient email requires Paid; database, storage and email usage above included allowances add charges. Use Workers Paid for arbitrary-recipient email, starting at $5 USD/account/month; 3,000 outbound emails/month are included, then $0.35 per 1,000. Workers Paid starts at $5 USD/account/month and includes 10 million requests/month plus 30 million CPU milliseconds/month; higher CPU limits do not make execution unmetered. Workers Paid D1 includes 25 billion rows read/month, 50 million written/month and 5 GB storage; database usage above those amounts is metered. Workers Paid KV includes 10 million reads/month, 1 million writes, deletes and lists/month each, plus 1 GB; additional usage is metered. Use R2 Standard storage, at most 10 GB-month, 1 million Class A operations and 10 million Class B operations/month; provision an eligible billing-enabled R2 account. Paid SQLite Durable Objects include 1 million requests/month, 400,000 GB-s duration/month and 5 GB-month SQL storage; active duration and excess database operations are metered. Workers Paid Queues includes 1 million operations/month; count writes, reads, deletes, retries and each 64 KB chunk, with usage above the allowance metered. Workers Paid Email Service includes 3,000 outbound emails/account/month, then $0.35 per 1,000; inbound Email Routing remains unmetered apart from Worker processing. Use a small personal or team workload; domain registration and optional third-party providers are separate costs. Provision your own IDs, secrets and migrations. Check current Cloudflare pricing before deploying.

            Is EmailFlare open source?+

            The upstream repository declares the MIT license. Read its terms at https://raw.githubusercontent.com/0xdps/emailflare/d448ea205937a5e82683f89013d4c23159da5b7d/LICENSE. Source code and contributor credit are available at https://github.com/0xdps/emailflare.

            Community rating

            No ratings yet. Tried this project? Share your experience.

            One rating per verified account. You can change or remove yours. Accounts are email verified; use of the software is self-reported.

            Discuss your experience ↓
            Sign in to rate

            Discussion · 0

            sign in to comment →
            No comments yet — be the first.