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
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
Choose the documented Cloudflare Email Service path: Workers Paid starts at $5 USD/account/month, with 3,000 sends/month then $0.35/1,000 plus storage/compute overages. The alternative Resend path has its own plan/limits. An owned sending domain and provider onboarding are required.
Hosting requirements
- Do not infer unlimited free sending from the Workers deployment. Enable actual sending entitlement and domain DNS, and measure storage/request workload.
- Optional TypeSafe classification and Telegram notifications are external services with separate costs/credentials; they are not prerequisites for the core inbox.
- Source and configuration review establishes a deployment path and conditional costs; selected local inbox workflows were executed, but production provider setup and workload limits remain untested.
Review findings & limitations
- Do not infer unlimited free sending from the Workers deployment. Enable actual sending entitlement and domain DNS, and measure storage/request workload.
- Optional TypeSafe classification and Telegram notifications are external services with separate costs/credentials; they are not prerequisites for the core inbox.
- Competitor links describe the stated workflow overlap, not feature parity or a verified savings claim.
- The original SvelteKit inbox and Worker email handler ran locally with synthetic mail. Login, conversation grouping, message-id deduplication, a byte-exact R2 attachment download, search, starring and saving a draft passed. Provider setup and real delivery were not tested; the separate fixture harness seeded a mailbox directly through upstream helpers. The npm lockfile is stale, while the pinned Bun lockfile installed successfully.
Sources checked 01/10/2026
Repository snapshot: 2d2c7d6. Hosting eligibility reflects the deployment documentation and listed assumptions.
- gmail ↗
Self-hosted email for your own domain, running on Cloudflare Workers. Get `you@yourdomain.com` with a full web client — no third-party mailbox, no servers to maintain.
- fastmail ↗
Self-hosted email for your own domain, running on Cloudflare Workers. Get `you@yourdomain.com` with a full web client — no third-party mailbox, no servers to maintain.
- workers ↗
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "quickmail", "main": ".svelte-kit/cloudflare/_worker.js", "compatibility_date": "2025-06-01", "compatibility_flags": ["nodejs_compat", "enable_nodejs_http_modules"], "workers_dev": true, // Your Cloudflare account is picked up from `wrangler login`. If you belong // to more than one account, set CLOUDFLARE_ACCOUNT_ID in your environment // or uncomment this a
- d1 ↗
LOUDFLARE_MAIL_DOMAINS": "example.com" }, "send_email": [ { "name": "EMAIL", "remote": true } ], "d1_databases": [ { "binding": "DB", "database_name": "quickmail", // `bun run setup` fills this in, or: wrangler d1 create <name> "database_id": "REPLACE_WITH_YOUR_D1_DATABASE_ID", "migrations_dir": "migrations" } ], "r2_buckets": [ { "binding": "ATTACHMENTS", // `bun run setup` creates this, or: wrangler r2 bucket create <name> "bucket_name": "quickmai
- r2 ↗
d1 create <name> "database_id": "REPLACE_WITH_YOUR_D1_DATABASE_ID", "migrations_dir": "migrations" } ], "r2_buckets": [ { "binding": "ATTACHMENTS", // `bun run setup` creates this, or: wrangler r2 bucket create <name> "bucket_name": "quickmail-attachments" } ], "observability": { "enabled": true } }
- paid ↗
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "quickmail", "main": ".svelte-kit/cloudflare/_worker.js", "compatibility_date": "2025-06-01", "compatibility_flags": ["nodejs_compat", "enable_nodejs_http_modules"], "workers_dev": true, // Your Cloudflare account is picked up from `wrangler login`. If you belong // to more than one account, set CLOUDFLARE_ACCOUNT_ID in your environment // or uncomment this and paste the ID from the Cloudflare dashboard sidebar. // "account_id": "", // Deploys to <name>.<your-subdomain>.workers.dev out of the box. To serve it // from your own domain instead, uncomment this and make sure the zone is on // the same Cloudflare account. // "routes": [ // { // "pattern": "mail.example.com", // "custom_domain": true // }
- paid ↗
The Workers Paid plan includes Workers, Pages 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).
- paid ↗
| Rows read | 5 million / day | First 25 billion / month included + $0.001 / million rows |
- paid ↗
| Storage | 10 GB-month / month |
- paid ↗
| **Outbound emails (Email Sending)** | Not available | 3,000 included per month, then $0.35 per 1,000 emails |
- paid ↗
| Class A Operations | 1 million requests / month |
- paid ↗
| Class B Operations | 10 million requests / month |
- paid ↗
| Rows written | 100,000 / day | First 50 million / month included + $1.00 / million rows |
- MIT ↗
MIT License Copyright (c) 2026 Irasubiza Divin Prince 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 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
- architecture ↗
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "quickmail", "main": ".svelte-kit/cloudflare/_worker.js", "compatibility_date": "2025-06-01", "compatibility_flags": ["nodejs_compat", "enable_nodejs_http_modules"], "workers_dev": true, // Your Cloudflare account is picked up from `wrangler login`. If you belong // to more than one account, set CLOUDFLARE_ACCOUNT_ID in your environment // or uncomment this and paste the ID from the Cloudflare dashboard sidebar. // "account_id": "", // Deploys to <name>.<your-subdomain>.workers.dev out of the box. To serve it // from your own domain instead, uncomment this and make sure the zone is on // the same Cloudflare account. // "routes": [ // { // "pattern": "mail.example.com", // "custom_domain": true // }
- architecture ↗
{ "$schema": "node_modules/wrangler/config-schema.json", "name": "quickmail", "main": ".svelte-kit/cloudflare/_worker.js", "compatibility_date": "2025-06-01", "compatibility_flags": ["nodejs_compat", "enable_nodejs_http_modules"], "workers_dev": true, // Your Cloudflare account is picked up from `wrangler login`. If you belong // to more than one account, set CLOUDFLARE_ACCOUNT_ID in your environment // or uncomment this a
- architecture ↗
LOUDFLARE_MAIL_DOMAINS": "example.com" }, "send_email": [ { "name": "EMAIL", "remote": true } ], "d1_databases": [ { "binding": "DB", "database_name": "quickmail", // `bun run setup` fills this in, or: wrangler d1 create <name> "database_id": "REPLACE_WITH_YOUR_D1_DATABASE_ID", "migrations_dir": "migrations" } ], "r2_buckets": [ { "binding": "ATTACHMENTS", // `bun run setup` creates this, or: wrangler r2 bucket create <name> "bucket_name": "quickmai
- architecture ↗
d1 create <name> "database_id": "REPLACE_WITH_YOUR_D1_DATABASE_ID", "migrations_dir": "migrations" } ], "r2_buckets": [ { "binding": "ATTACHMENTS", // `bun run setup` creates this, or: wrangler r2 bucket create <name> "bucket_name": "quickmail-attachments" } ], "observability": { "enabled": true } }
Locally captured application screenshot · DivinPrince/quickinbox repository contributors; captured locally by Cloudsteading ↗. Uses demonstration data. Local execution does not verify a production Cloudflare deployment.
What we tested locally
Wrangler 4.145.0 workerd with a locally compiled SvelteKit/Cloudflare Worker, local D1 and R2. A synthetic review@example.invalid mailbox was seeded through upstream account/domain/address helpers. Four RFC MIME test messages were passed to the original Worker email handler, including a reply, an HTML alternative and a text attachment. An unsent local draft was saved through the original API.
- Passed: Unauthenticated inbox API rejected. The original mail API returned HTTP 401 before the synthetic local account signed in.
- Passed: Synthetic mailbox fixture prepared. A separate protected loopback fixture called upstream bootstrapAdmin/domain/address helpers to seed a synthetic mailbox; provider first-run onboarding was not exercised.
- Passed: Original MIME ingestion. The original Worker email handler parsed four synthetic RFC MIME messages and stored them in local D1; one includes an HTML alternative and one a text attachment.
- Passed: Duplicate inbound message suppressed. Replaying the same message through the original email handler kept four stored messages, using its message-id deduplication.
- Passed: Wrong password rejected. The original login API rejected a synthetic incorrect password with HTTP 401.
- Passed: Original password login. The original password verification and session API signed in the synthetic local account using its HttpOnly cookie.
- Passed: Conversation grouping. The original inbox API groups four messages into three conversations; the reply shares the launch checklist thread.
- Passed: Read full conversation. The original thread API returns both launch-checklist messages and marks the conversation read.
- Passed: Exact attachment bytes from R2. The original authenticated download route returned the exact synthetic text attachment stored in local R2.
- Passed: Starred conversation filter. Starring the launch conversation through the original actions API produces one result in the starred mailbox.
- Passed: Inbox text search. The original mail API search for setup notes returns the matching synthetic conversation.
- Passed: Save unsent draft. The original draft API saved a synthetic outgoing draft in local D1 without calling an email provider.
- Passed: Sending fails without mail binding. With the outbound EMAIL binding absent, the original sending API returns a configuration error before any provider call. No mail was sent.
- Not tested: Provider setup and production delivery. Provider first-run onboarding, real DNS, Resend/Cloudflare delivery, AI classification, push/Telegram notifications and production workload costs were not exercised.
- Passed: Browser login and HTML conversation view. Codex Browser signed in through the original login form, opened the real two-message thread and expanded its HTML email in the original sandboxed message frame.
Capture setup and limits
- All original application source files and the upstream Wrangler file are preserved byte-for-byte. During the adapter build only, a temporary local Wrangler configuration supplied isolated D1/R2 bindings and removed the remote EMAIL sending binding; the original configuration was restored afterward.
- The local runtime uses a separate loopback port 4391, independent D1/R2 storage and a protected fixture wrapper that calls the unmodified application fetch/email handlers. The wrapper is not part of the upstream product and was not deployed.
- EMAIL_PROVIDER is cloudflare for the original inbound handler, with a reserved example.invalid fixture domain. The outbound EMAIL binding and all Resend, TypeSafe, Telegram and push credentials are absent, so no external mail or notifications are sent.
- Dependencies were installed with Bun 1.4.2 from the upstream frozen bun.lock, with installation scripts disabled. The upstream npm lockfile is stale and cannot be used with npm ci; the Vite build and the upstream Worker wrapping script ran with Node.js.
- This is a local runtime review, not a production installation, workload test or guarantee of free hosting. The actual Cloudflare Email Service path requires its paid entitlement; the alternative Resend path has separate limits and onboarding.
- The fixture seeds a local mailbox directly through upstream helpers. The real first-run provider/domain setup flow and external mail delivery remain untested; the fixture wrapper must not be mistaken for a production onboarding route.
- AI classification, push/Telegram delivery, OAuth/MCP client authorization, multi-account flows, CSV/import workflows and broader application security were not exhaustively tested.
- A thread UUID in the captured URL selects a synthetic local conversation; it contains no account or sign-in token. The screenshot shows original application pixels with demonstration data.
What it can replace
Compare the workflow you need. These mappings describe overlap; full feature parity requires a separate comparison.
Own-domain browser inboxes, attachments and configured outbound mail; no Gmail-account migration, IMAP service or complete hosted email-platform parity.
See supporting source ↗Own-domain browser inboxes, attachments and configured outbound mail; no Gmail-account migration, IMAP service or complete hosted email-platform parity.
See supporting source ↗How it works
The shape of Quickinbox on Cloudflare, and how it stacks up against the rented tools it replaces.
Diagram target: wrangler.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 2d2c7d62f250. This configuration evidence comes from reading source files. Execution checks, when available, appear in the project's runtime review.
Deployment configuration · 1 file
Cloudflare Workers · compatibility 2025-06-01
quickmail · default
Entrypoint: .svelte-kit/cloudflare/_worker.js
Static assets: .svelte-kit/cloudflare
DB→ D1ATTACHMENTS→ R2EMAIL→ Send EmailASSETS→ 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.
- L43 · isPublicPath calls (conditional paths may differ): PUBLIC_PREFIXES.some, pathname.startsWith
- L56 · isMcpPath calls (conditional paths may differ): MCP_PREFIXES.some, pathname.startsWith
- L60 · corsHeaders calls (conditional paths may differ): request.headers.get
- L73 · withCors calls (conditional paths may differ): Object.entries, corsHeaders, headers.set
- L79 · jsonError calls (conditional paths may differ): JSON.stringify
- L86 · render calls (conditional paths may differ): resolve, html.replace
Environment references: event.platform.env.DB
- L6 · readNext calls (conditional paths may differ): catch, response.json
- L15 · switchAccount calls (conditional paths may differ): fetch, JSON.stringify, catch, response.json, window.location.assign, readNext
- L33 · logoutAccount calls (conditional paths may differ): disablePushForCurrentAccount, console.warn, fetch, readNext
- L16 · isMailboxPath calls (conditional paths may differ): MAILBOX_PATHS.some
- L21 · isStackedPath calls (conditional paths may differ): pathname.startsWith
- L25 · isPrimaryTab calls (conditional paths may differ): PRIMARY_TABS.some
- L30 · isUtilityPath calls (conditional paths may differ): pathname.startsWith
- L39 · isMorePath calls (conditional paths may differ): pathname.startsWith
- L52 · isMobileViewport calls (conditional paths may differ): window.matchMedia
- L56 · isStandaloneDisplay calls (conditional paths may differ): window.matchMedia
- L66 · isIOS calls (conditional paths may differ): test
- L74 · registerAppServiceWorker calls (conditional paths may differ): catch, navigator.serviceWorker.register, console.warn
- L83 · navDirection calls (conditional paths may differ): isStackedPath
- L117 · noteInAppNavigation calls (conditional paths may differ): Math.max
- L137 · notifyInstallPrompt calls (conditional paths may differ): listener
- L142 · captureInstallPrompt calls (conditional paths may differ): window.addEventListener, event.preventDefault, notifyInstallPrompt
- L156 · subscribeInstallPrompt calls (conditional paths may differ): installPromptListeners.add, listener, installPromptListeners.delete
- L166 · clearInstallPrompt calls (conditional paths may differ): notifyInstallPrompt
Environment references: env.DEV
- L4 · formatDeviceActivity calls (conditional paths may differ): translate, Date.parse, Number.isFinite, Math.max, Math.floor, Date.now
- L4 · normalizeEmailSignature calls (conditional paths may differ): trim, join, map, split, value.replace, line.trimEnd
- L13 · escapeHtml calls (conditional paths may differ): replaceAll, value.replaceAll
- L23 · pickEmailSignature calls (conditional paths may differ): normalizeEmailSignature
- L31 · parseMailboxSignature calls (conditional paths may differ): normalizeEmailSignature
- L40 · appendEmailSignature calls (conditional paths may differ): normalizeEmailSignature, input.text.trimEnd, input.html.trimEnd, replaceAll, escapeHtml
- L36 · isLocale calls (conditional paths may differ): includes
- L41 · matchLocale calls (conditional paths may differ): replaceAll, toLowerCase, value.trim, LOCALES.find, locale.toLowerCase, lower.split, startsWith
- L57 · parseLocale calls (conditional paths may differ): matchLocale
- L61 · localeFromAcceptLanguage calls (conditional paths may differ): sort, filter, map, header.split, split, part.trim, params.find, startsWith, param.trim, Number, slice, quality.trim, matchLocale
- L86 · intlLocale calls (conditional paths may differ): parseLocale
- L31 · classifyExistingBatchSize calls (conditional paths may differ): Number.isFinite, Math.min, Math.floor
- L15 · folderTitle calls (conditional paths may differ): translate
- L48 · viewFromLocation calls (conditional paths may differ): search.get
- L79 · participantName calls (conditional paths may differ): participants.filter, translate, join, others.map, participants.find
- L93 · initials calls (conditional paths may differ): value.trim, slice, trimmed.split, join, parts.map
- L106 · parseAddressList calls (conditional paths may differ): parts.push, value.slice, part.trim, trimmed.match, toLowerCase, trim, email.includes, seen.has, seen.add, people.push
- L22 · fetchMailboxCursor calls (conditional paths may differ): fetch, mailboxSyncUrl, readMailboxCursor, response.json
- L40 · waitUntilVisible calls (conditional paths may differ): reject, resolve, cleanup, signal.removeEventListener, document.removeEventListener, signal.addEventListener, document.addEventListener
- L74 · startMailboxLiveSync calls (conditional paths may differ): waitUntilVisible, isAbortError, lifecycle.signal.addEventListener, fetchMailboxCursor, shouldRefreshMailbox, invalidate, window.dispatchEvent, waitForAbortable, resolve, lifecycle.signal.removeEventListener, stopPoll, wake, document.addEventListener, window.addEventListener, isMailChangedMessage, run, lifecycle.abort, document.removeEventListener, window.removeEventListener
- L39 · hostFrom calls (conditional paths may differ): toLowerCase, url.hostname.replace, url.protocol.replace
- L55 · clientBrand calls (conditional paths may differ): filter, hostFrom, Boolean, brand.match.test
- L71 · clientInitials calls (conditional paths may differ): filter, split, name.replace, toUpperCase, slice
- L82 · redirectHost calls (conditional paths may differ): url.protocol.replace
- L5 · providerName calls (conditional paths may differ): translate
- L18 · missingProviderTitle calls (conditional paths may differ): translate
- L31 · missingProviderHint calls (conditional paths may differ): translate
- L44 · noDomainsTitle calls (conditional paths may differ): translate
- L57 · noDomainsBody calls (conditional paths may differ): translate
- L70 · domainPickerSubtitle calls (conditional paths may differ): translate
- L83 · onboardingSubtitle calls (conditional paths may differ): translate
- L96 · receivingHint calls (conditional paths may differ): translate
- L12 · base64UrlToApplicationServerKey calls (conditional paths may differ): repeat, replaceAll, atob, binary.charCodeAt
- L23 · applicationServerKeyMatches calls (conditional paths may differ): base64UrlToApplicationServerKey, actual.every
- L38 · subscriptionUsesPublicKey calls (conditional paths may differ): applicationServerKeyMatches
- L48 · getPushSubscription calls (conditional paths may differ): navigator.serviceWorker.getRegistration
- L53 · waitUntilActive calls (conditional paths may differ): Promise.resolve, setTimeout, reject, clearTimeout, resolve, installing.addEventListener, finish, registration.addEventListener, pending.removeEventListener, pending.addEventListener, onState
- L100 · ensurePushRegistration calls (conditional paths may differ): navigator.serviceWorker.register, waitUntilActive
- L115 · prewarmPushRegistration calls (conditional paths may differ): supportsWebPush, Promise.resolve, catch, then, ensurePushRegistration
- L132 · subscribeToPushImmediately calls (conditional paths may differ): registration.pushManager.subscribe, base64UrlToApplicationServerKey
- L143 · subscribeToPush calls (conditional paths may differ): ensurePushRegistration, registration.pushManager.getSubscription, subscriptionUsesPublicKey, catch, deletePushSubscription, unsubscribeSubscription, registration.pushManager.subscribe, base64UrlToApplicationServerKey
- L163 · unsubscribeSubscription calls (conditional paths may differ): subscription.unsubscribe
- L170 · readError calls (conditional paths may differ): catch, response.json
- L176 · base64UrlEncode calls (conditional paths may differ): String.fromCharCode, replace, replaceAll, btoa
- L187 · keyAsBase64Url calls (conditional paths may differ): base64UrlEncode, value.buffer.slice
- L200 · pushSubscriptionPayload calls (conditional paths may differ): JSON.stringify, subscription.toJSON, keyAsBase64Url, subscription.getKey, console.warn, Object.getPrototypeOf, Object.getOwnPropertyNames, String
- L250 · savePushSubscription calls (conditional paths may differ): fetch, pushSubscriptionPayload, readError
- L259 · deletePushSubscription calls (conditional paths may differ): fetch, JSON.stringify, readError
- L268 · isPushSubscriptionRegistered calls (conditional paths may differ): encodeURIComponent, fetch, readError, response.json
- L279 · disablePushForCurrentAccount calls (conditional paths may differ): supportsWebPush, getPushSubscription, deletePushSubscription, unsubscribeSubscription
- L302 · discardPushSubscriptionFromAnotherAccount calls (conditional paths may differ): supportsWebPush, getPushSubscription, isPushSubscriptionRegistered, unsubscribeSubscription
- L38 · parseLinkedTokens calls (conditional paths may differ): JSON.parse, Array.isArray, tokens.includes, tokens.push
- L57 · serializeLinkedTokens calls (conditional paths may differ): JSON.stringify, tokens.slice
- L61 · readLinkedTokens calls (conditional paths may differ): parseLinkedTokens, cookies.get
- L66 · writeLinkedTokens calls (conditional paths may differ): tokens.filter, tokens.indexOf, cookies.delete, cookies.set, serializeLinkedTokens, sessionCookieOptions
- L88 · resolveLinkedSessions calls (conditional paths may differ): tokens.filter, tokens.indexOf, Promise.all, unique.map, hashToken, join, hashes.map, all, bind, db.prepare, results.map, unique.forEach, byHash.get, seenUsers.has, seenUsers.add, resolved.push
- L139 · toLinkedAccounts calls (conditional paths may differ): accounts.push
- L14 · isPrefix calls (conditional paths may differ): pathname.startsWith
- L204 · canAccessDuringFirstLogin calls (conditional paths may differ): method.toUpperCase
- L229 · isMailAction calls (conditional paths may differ): includes
- L233 · hasScope calls (conditional paths may differ): needed.some, granted.includes
- L237 · hasAllScopes calls (conditional paths may differ): needed.every, granted.includes
- L246 · authorizeMailAction calls (conditional paths may differ): input.scopes.includes, hasAllScopes
- L291 · authorizeMailPatch calls (conditional paths may differ): authorizeMailAction
- L308 · authorizeApiRequest calls (conditional paths may differ): input.method.toUpperCase, MOBILE_SESSION_ROUTES.some, route.match, isPrefix, BEARER_ROUTES.find, entry.match, hasScope, rule.scopes.join
- L38 · tokenPrefix calls (conditional paths may differ): token.startsWith
- L45 · isPlausibleApiToken calls (conditional paths may differ): tokenPrefix, Boolean
- L50 · isApiScope calls (conditional paths may differ): includes
- L54 · isValidScope calls (conditional paths may differ): parseScopes
- L59 · parseScopes calls (conditional paths may differ): Array.isArray, isApiScope, scopes.includes, scopes.push
- L72 · toBase64Url calls (conditional paths may differ): String.fromCharCode, replace, btoa
- L79 · generateToken calls (conditional paths may differ): crypto.getRandomValues, toBase64Url
- L85 · previewFor calls (conditional paths may differ): tokenPrefix, token.slice, random.slice
- L92 · parseStoredScopes calls (conditional paths may differ): filter, map, value.split, scope.trim
- L99 · mapRow calls (conditional paths may differ): parseStoredScopes
- L110 · createApiToken calls (conditional paths may differ): generateToken, hashToken, crypto.randomUUID, slice, trim, toISOString, run, bind, db.prepare, previewFor, scopes.join
- L143 · listApiTokens calls (conditional paths may differ): all, bind, db.prepare, results.map
- L155 · revokeApiToken calls (conditional paths may differ): run, bind, db.prepare
- L184 · getUserByApiToken calls (conditional paths may differ): isPlausibleApiToken, hashToken, first, bind, db.prepare, Date.parse, Date.now, run, toISOString, parseStoredScopes
- L225 · readBearerToken calls (conditional paths may differ): request.headers.get, exec, header.trim
- L14 · insertAttachments calls (conditional paths may differ): base64ToBytes, crypto.randomUUID, buildStorageKey, bucket.put, run, bind, db.prepare, normalizeDisposition, normalizeContentId
- L69 · normalizeContentId calls (conditional paths may differ): test, toLowerCase, trim, replace, value.trim
- L76 · insertAttachmentBytes calls (conditional paths may differ): crypto.randomUUID, buildStorageKey, bucket.put, run, bind, db.prepare, normalizeDisposition, normalizeContentId
- L130 · readOutboundAttachments calls (conditional paths may differ): all, bind, db.prepare, readAttachmentBytes, normalizeDisposition, normalizeContentId, attachments.push, bytesToBase64
- L169 · listAttachments calls (conditional paths may differ): all, bind, db.prepare, results.map, normalizeDisposition, normalizeContentId
- L192 · listAttachmentNamesByEmail calls (conditional paths may differ): emailIds.slice, join, group.map, all, bind, db.prepare, names.get, bucket.push, names.set
- L220 · getAttachmentForUser calls (conditional paths may differ): first, bind, db.prepare, normalizeDisposition, normalizeContentId
- L247 · readAttachmentBytes calls (conditional paths may differ): bucket.get, object.arrayBuffer, base64ToBytes
- L264 · buildStorageKey calls (conditional paths may differ): slice, filename.replace
- L273 · base64ToBytes calls (conditional paths may differ): Uint8Array.from, atob, char.charCodeAt
- L281 · bytesToBase64 calls (conditional paths may differ): String.fromCharCode, bytes.subarray, btoa
- L292 · base64ByteLength calls (conditional paths may differ): base64.endsWith, Math.floor
- L31 · countUsers calls (conditional paths may differ): first, db.prepare
- L36 · getUserByEmail calls (conditional paths may differ): first, bind, db.prepare, email.toLowerCase, mapUser
- L47 · getUserById calls (conditional paths may differ): first, bind, db.prepare, mapUser
- L58 · listUsers calls (conditional paths may differ): all, db.prepare, results.map
- L68 · createUser calls (conditional paths may differ): trim, input.email.toLowerCase, test, getUserByEmail, crypto.randomUUID, hashPassword, run, bind, db.prepare, input.name.trim, getUserById
- L116 · deletePendingUser calls (conditional paths may differ): run, bind, db.prepare
- L123 · bootstrapAdmin calls (conditional paths may differ): countUsers, createUser
- L135 · login calls (conditional paths may differ): getUserByEmail, verifyPassword, createSessionToken, hashToken, crypto.randomUUID, toISOString, Date.now, run, bind, db.prepare
- L178 · toIsoTimestamp calls (conditional paths may differ): test, value.replace, Number.isNaN, parsed.getTime, parsed.toISOString
- L185 · createMobileSession calls (conditional paths may differ): createSessionToken, hashToken, crypto.randomUUID, toISOString, Date.now, run, bind, db.prepare
- L214 · listDeviceSessions calls (conditional paths may differ): all, bind, db.prepare, results.map, toIsoTimestamp
- L239 · listAllMobileDeviceSessions calls (conditional paths may differ): all, db.prepare, results.map, toIsoTimestamp
- L263 · revokeSession calls (conditional paths may differ): run, bind, db.prepare
- L273 · createPairingCode calls (conditional paths may differ): crypto.getRandomValues, toBase64Url, hashToken, crypto.randomUUID, toISOString, Date.now, deleteExpiredPairingCodes, run, bind, db.prepare
- L300 · redeemPairingCode calls (conditional paths may differ): hashToken, createSessionToken, crypto.randomUUID, toISOString, Date.now, trim, device.name.slice, db.batch, bind, db.prepare
- L344 · deleteExpiredPairingCodes calls (conditional paths may differ): run, db.prepare
- L354 · toBase64Url calls (conditional paths may differ): String.fromCharCode, replace, replaceAll, btoa
- L366 · checkRateLimit calls (conditional paths may differ): Math.floor, Date.now, first, bind, db.prepare, run, Boolean
- L400 · logout calls (conditional paths may differ): hashToken, run, bind, db.prepare
- L405 · setUserPassword calls (conditional paths may differ): hashPassword, run, bind, db.prepare, db.batch
- L433 · completeFirstLogin calls (conditional paths may differ): input.name.trim, first, bind, db.prepare, verifyPassword, hashPassword, db.batch
- L509 · setUserAdmin calls (conditional paths may differ): getUserById, run, bind, db.prepare
- L548 · deleteUser calls (conditional paths may differ): getUserById, db.batch, bind, db.prepare, map, Promise.allSettled, storageKeys.map, bucket.delete, purged.forEach, console.error
- L651 · getAuthenticatedSession calls (conditional paths may differ): hashToken, first, bind, db.prepare, Date.parse, toIsoTimestamp, Number.isFinite, Date.now, run, mapUser, Boolean
- L698 · getUserFromSession calls (conditional paths may differ): getAuthenticatedSession
- L719 · readSessionToken calls (conditional paths may differ): cookies.get
- L76 · classifyThenNotify calls (conditional paths may differ): classifyInboundEmail, console.error, scheduleNewMailNotification, scheduleTelegramNotification, getThreadKey
- L97 · scheduleInboundClassification calls (conditional paths may differ): classifyThenNotify, env.waitUntil
- L109 · classifyInboundEmail calls (conditional paths may differ): classifyStoredEmail
- L117 · classifyStoredEmail calls (conditional paths may differ): getEmailForUser, configuredTypesafeKey, Promise.all, getSenderPref, getThreadUserCategory, listAutoLabels, Promise.resolve, map, listAttachments, judge, persistClassification, decideClassification, Boolean, persistMailDecision
- L170 · persistMailDecision calls (conditional paths may differ): expandToThreads, setEmailFlags, judgments.labels.map, setEmailAutoLabels, decision.labelIds.map, scores.get, bumpMailboxEpoch
- L217 · bodyForJudge calls (conditional paths may differ): stripHtml
- L225 · classifyNextExisting calls (conditional paths may differ): countUnclassifiedInbound, classifyExistingBatchSize, listUnclassifiedInbound, configuredTypesafeKey, Promise.all, listAutoLabels, Promise.resolve, listSenderPrefs, listThreadUserCategories, listAttachmentNamesByEmail, emails.map, senderPrefs.get, toLowerCase, email.from_addr.trim, userCategories.get, bodyForJudge, attachmentNames.get, contexts.filter, needJudge.map, needJudge.forEach
Environment references: env.DB · env.TYPESAFE_API_KEY · env.waitUntil
- L37 · handleCloudflareInbound calls (conditional paths may differ): arrayBuffer, PostalMime.parse, parseEmailAddress, collectInboundRecipients, envelopeTo.includes, mailboxAddresses, firstMailboxIdentity, inboundSender, message.headers.get, normalizeMessageId, inboundProviderId, recipients.join, emailExistsByProviderId, resolveInboundRoute, recordUnroutedEmail, scheduleTelegramNotification, stripHtml, insertEmail, join, storeInboundAttachments
- L132 · storeInboundAttachments calls (conditional paths may differ): attachments.slice, attachmentBytes, inboundAttachmentMetadata, insertAttachmentBytes, stored.push, console.error
- L181 · inboundSender calls (conditional paths may differ): parseEmailAddress, header.includes
- L195 · mailboxAddresses calls (conditional paths may differ): Array.isArray, addresses.push
- L212 · firstMailboxIdentity calls (conditional paths may differ): Array.isArray, parseEmailAddress
- L235 · attachmentBytes calls (conditional paths may differ): ArrayBuffer.isView, encode
- L246 · inboundProviderId calls (conditional paths may differ): crypto.subtle.digest, encode, join, map, padStart, byte.toString, hex.slice
Environment references: env.DB · env.ATTACHMENTS
- L26 · safeEmailProviderKind calls (conditional paths may differ): getEmailProviderKind
- L34 · getEmailProvider calls (conditional paths may differ): getEmailProviderKind, createResendProvider, createCloudflareProvider
- L63 · hasProviderConfigured calls (conditional paths may differ): getEmailProviderKind, Boolean, parseMailDomains
- L81 · listAvailableDomains calls (conditional paths may differ): listDomains, getEmailProvider, remote.map, toAvailableDomain, connected.has
- L91 · getResendClient calls (conditional paths may differ): getResendReceivingClient
Environment references: platform.env.EMAIL_PROVIDER · platform.env.RESEND_API_KEY · platform.env.EMAIL · platform.env.CLOUDFLARE_MAIL_DOMAINS · platform.env.RESEND_WEBHOOK_SECRET
- L3 · toBase64 calls (conditional paths may differ): btoa, String.fromCharCode
- L7 · fromBase64 calls (conditional paths may differ): atob, binary.charCodeAt
- L16 · deriveKey calls (conditional paths may differ): crypto.subtle.importKey, encode, crypto.subtle.deriveBits
- L37 · hashPassword calls (conditional paths may differ): crypto.getRandomValues, deriveKey, toBase64
- L43 · verifyPassword calls (conditional paths may differ): stored.split, fromBase64, deriveKey
- L60 · hashToken calls (conditional paths may differ): crypto.subtle.digest, encode, toBase64
- L65 · createSessionToken calls (conditional paths may differ): crypto.getRandomValues, toBase64
- L62 · listDomains calls (conditional paths may differ): all, db.prepare, results.map
- L69 · countDomains calls (conditional paths may differ): first, db.prepare
- L74 · getDomain calls (conditional paths may differ): first, bind, db.prepare, mapDomain
- L79 · getDomainByName calls (conditional paths may differ): first, bind, db.prepare, name.toLowerCase, mapDomain
- L91 · upsertDomain calls (conditional paths may differ): run, bind, db.prepare, domain.name.toLowerCase, getDomain
- L119 · disconnectDomain calls (conditional paths may differ): run, bind, db.prepare
- L123 · setCatchallUser calls (conditional paths may differ): run, bind, db.prepare
- L135 · syncDomains calls (conditional paths may differ): listDomains, provider.listDomains, remote.map, byId.get, upsertDomain, run, bind, db.prepare
- L169 · listAddressesForUser calls (conditional paths may differ): all, bind, db.prepare, results.map
- L180 · listAllAddresses calls (conditional paths may differ): all, db.prepare, results.map
- L187 · getAddressForUser calls (conditional paths may differ): first, bind, db.prepare, mapAddress
- L199 · getDefaultAddress calls (conditional paths may differ): listAddressesForUser
- L209 · createAddress calls (conditional paths may differ): getDomain, replace, toLowerCase, input.localPart.trim, LOCAL_PART.test, first, bind, db.prepare, crypto.randomUUID, listAddressesForUser, run, getAddressForUser
- L248 · updateAddress calls (conditional paths may differ): getAddressForUser, parseMailboxSignature, run, bind, db.prepare
- L275 · setDefaultAddress calls (conditional paths may differ): db.batch, bind, db.prepare
- L288 · deleteAddress calls (conditional paths may differ): run, bind, db.prepare
- L318 · resolveInboundRoute calls (conditional paths may differ): filter, recipients.map, toLowerCase, value.trim, value.includes, join, candidates.map, all, bind, db.prepare, results.find, row.address.toLowerCase, candidate.split, first
- L376 · recordUnroutedEmail calls (conditional paths may differ): run, bind, db.prepare, crypto.randomUUID
- L407 · listUnroutedEmails calls (conditional paths may differ): all, bind, db.prepare
- L6 · parseEmailIdentity calls (conditional paths may differ): value.trim, trimmed.match, parseEmailAddress, trim, rawName.startsWith, rawName.endsWith, replace, rawName.slice
- L24 · parseEmailAddress calls (conditional paths may differ): value.trim, trimmed.match, trim, toLowerCase
- L35 · parseEmailIdentities calls (conditional paths may differ): parts.push, value.slice, filter, parts.map, identity.address.includes
- L66 · formatEmailAddress calls (conditional paths may differ): parseEmailAddress, replaceAll, cleanName.replaceAll
- L75 · parseEmailAddresses calls (conditional paths may differ): Array.isArray, value.split, parseEmailAddress, parsed.includes, addresses.add
- L93 · domainOf calls (conditional paths may differ): parseEmailAddress, parsed.split
- L105 · collectInboundRecipients calls (conditional paths may differ): parseEmailAddresses, recipients.add
- L76 · parseMailDomains calls (conditional paths may differ): value.split, replace, toLowerCase, part.trim, seen.has, TEMPLATE_PLACEHOLDER_DOMAINS.has, seen.add, domains.push
- L19 · readForwardedAttachments calls (conditional paths may differ): flat, Promise.all, originals.map, readOutboundAttachments
- L36 · sendForwardedMessages calls (conditional paths may differ): parseRecipients, orderForwardedMessages, buildForwardedMessages, resolveReplyFromAddress, readForwardedAttachments, sendAndStore
Environment references: env.DB · env.ATTACHMENTS
- L26 · forwardTimestamp calls (conditional paths may differ): test, value.trim, replace, getTime, Number.isNaN
- L34 · orderForwardedMessages calls (conditional paths may differ): sort, forwardTimestamp
- L40 · forwardSubject calls (conditional paths may differ): subject.trim, FORWARD_PREFIX.test
- L51 · formatForwardDate calls (conditional paths may differ): test, createdAt.trim, replace, Number.isNaN, date.getTime, date.toUTCString
- L61 · asHtmlParagraph calls (conditional paths may differ): replaceAll, escapeHtml
- L71 · forwardedHeaders calls (conditional paths may differ): formatForwardDate, headers.push, original.cc_addr.trim
- L88 · buildForwardedMessages calls (conditional paths may differ): orderForwardedMessages, stripHtml, asHtmlParagraph, ordered.map, forwardedHeaders, join, headers.map, textMessages.join, escapeHtml, forwardSubject, htmlMessages.join
- L139 · buildForwardedMessage calls (conditional paths may differ): buildForwardedMessages
- L5 · stripHtml calls (conditional paths may differ): trim, replace, html.replace
- L72 · handleResendWebhook calls (conditional paths may differ): handleInboundEmail, handleDeliveryStatus
- L89 · handleDeliveryStatus calls (conditional paths may differ): readString, updateEmailStatusByProviderId
- L109 · handleInboundEmail calls (conditional paths may differ): readString, emailExistsByProviderId, client.getReceivedEmail, collectInboundRecipients, parseEmailIdentity, resolveInboundRoute, recordUnroutedEmail, recipients.join, scheduleTelegramNotification, stripHtml, insertEmail, storeInboundAttachments, scheduleInboundClassification, storedAttachments.map
- L215 · storeInboundAttachments calls (conditional paths may differ): client.listReceivedAttachments, console.error, attachments.slice, console.warn, client.downloadAttachment, inboundAttachmentMetadata, insertAttachmentBytes, stored.push
- L268 · claimWebhookEvent calls (conditional paths may differ): run, bind, db.prepare
- L281 · readString calls (conditional paths may differ): value.trim
Environment references: env.DB · env.ATTACHMENTS
- L25 · isLabelColor calls (conditional paths may differ): COLOR_SET.has
- L36 · parseLabelWriteBody calls (conditional paths may differ): Array.isArray, raw.name.trim, isLabelColor
- L89 · slugifyLabel calls (conditional paths may differ): slice, replace, trim, name.toLowerCase
- L111 · listLabels calls (conditional paths may differ): all, bind, db.prepare, results.map
- L124 · getLabel calls (conditional paths may differ): first, bind, db.prepare, toMailLabel
- L140 · listAutoLabels calls (conditional paths may differ): listLabels, slice, labels.filter, Boolean
- L147 · uniqueSlug calls (conditional paths may differ): first, bind, db.prepare, base.slice
- L165 · createLabel calls (conditional paths may differ): input.name.trim, crypto.randomUUID, uniqueSlug, slugifyLabel, isLabelColor, first, bind, db.prepare, run, getLabel
- L207 · updateLabel calls (conditional paths may differ): getLabel, uniqueSlug, slugifyLabel, isLabelColor, Boolean, run, bind, db.prepare
- L244 · deleteLabel calls (conditional paths may differ): first, bind, db.prepare, run
- L256 · labelsForEmails calls (conditional paths may differ): join, emailIds.map, all, bind, db.prepare, byEmail.get, bucket.some, bucket.push, byEmail.set
- L293 · setEmailAutoLabels calls (conditional paths may differ): run, bind, db.prepare
- L315 · setThreadLabels calls (conditional paths may differ): join, unique.map, all, bind, db.prepare, emailIds.map, run
- L357 · getSenderPref calls (conditional paths may differ): first, bind, db.prepare, toLowerCase, fromAddr.trim
- L370 · listSenderPrefs calls (conditional paths may differ): all, bind, db.prepare, prefs.set, toLowerCase, row.from_addr.trim
- L387 · setSenderPref calls (conditional paths may differ): run, bind, db.prepare, toLowerCase, fromAddr.trim
- L405 · rememberSenders calls (conditional paths may differ): join, emailIds.map, all, bind, db.prepare, setSenderPref
- L28 · chunkIds calls (conditional paths may differ): groups.push, ids.slice
- L36 · getUserIdByEmail calls (conditional paths may differ): first, bind, db.prepare, email.toLowerCase
- L45 · insertEmail calls (conditional paths may differ): crypto.randomUUID, truncate, resolveThreadId, run, bind, db.prepare, normalizeSubject
- L159 · getThreadKey calls (conditional paths may differ): first, bind, db.prepare
- L169 · emailExistsByProviderId calls (conditional paths may differ): first, bind, db.prepare, Boolean
- L181 · updateEmailStatusByProviderId calls (conditional paths may differ): run, bind, db.prepare
- L281 · buildScope calls (conditional paths may differ): filters.push, bindings.push, viewFilter, replaceAll, term.replaceAll, filters.join
- L332 · listMailbox calls (conditional paths may differ): buildScope, displayFilter, first, bind, db.prepare, Math.max, Math.ceil, Math.min, all, rows.map, join, threadIds.map, byThread.get, bucket.push, byThread.set, labelsForEmails, messages.map, map, filter, Boolean
- L413 · toThreadSummary calls (conditional paths may differ): buildThreadParticipants, find, reverse, labelsByEmail.get, labels.some, labels.push, displaySubject, buildPreview, messages.every, messages.some, parseInboxCategory
- L452 · buildPreview calls (conditional paths may differ): slice, trim, replace, stripQuotedText
- L458 · listEmails calls (conditional paths may differ): buildScope, all, bind, db.prepare, results.map, buildPreview
- L518 · getMailboxCursor calls (conditional paths may differ): bindings.push, Promise.all, first, bind, db.prepare, encodeMailboxCursor, Number
- L551 · bumpMailboxEpoch calls (conditional paths may differ): run, bind, db.prepare
- L562 · getMailboxCounts calls (conditional paths may differ): bindings.push, first, bind, db.prepare, byCategory, emptyMailboxCounts
- L649 · countUnread calls (conditional paths may differ): getMailboxCounts
- L663 · expandToThreads calls (conditional paths may differ): chunkIds, join, group.map, all, bind, db.prepare, found.add
- L701 · setEmailFlags calls (conditional paths may differ): assignments.push, bindings.push, chunkIds, join, group.map, run, bind, db.prepare, assignments.join, bumpMailboxEpoch
- L764 · deleteEmailsPermanently calls (conditional paths may differ): join, ids.map, all, bind, db.prepare, owned.results.map, ownedIds.map, Promise.all, files.map, bucket.delete, run
- L816 · markAllRead calls (conditional paths may differ): bindings.push, run, bind, db.prepare
- L847 · emptySpam calls (conditional paths may differ): all, bind, db.prepare, deleteEmailsPermanently, results.map
- L865 · getThreadUserCategory calls (conditional paths may differ): first, bind, db.prepare, parseInboxCategory
- L883 · listThreadUserCategories calls (conditional paths may differ): all, bind, db.prepare, locked.set, parseInboxCategory
- L904 · emptyTrash calls (conditional paths may differ): all, bind, db.prepare, deleteEmailsPermanently, results.map
- L936 · saveDraft calls (conditional paths may differ): first, bind, db.prepare, run, normalizeSubject, insertEmail
- L993 · getDraft calls (conditional paths may differ): first, bind, db.prepare
- L1006 · deleteDraft calls (conditional paths may differ): run, bind, db.prepare
- L1013 · getEmailForUser calls (conditional paths may differ): first, bind, db.prepare
- L1031 · listForwardThreadMessages calls (conditional paths may differ): all, bind, db.prepare
- L1056 · listThreadMessages calls (conditional paths may differ): all, bind, db.prepare, labelsForEmails, results.map, join, parseInboxCategory, files.filter, labelsByEmail.get
- L1121 · markThreadRead calls (conditional paths may differ): run, bind, db.prepare
- L1147 · countUnclassifiedInbound calls (conditional paths may differ): first, bind, db.prepare, Number
- L1159 · listUnclassifiedInbound calls (conditional paths may differ): clauses.push, bindings.push, all, bind, db.prepare, clauses.join
- L1185 · truncate calls (conditional paths may differ): value.slice
- L55 · textResult calls (conditional paths may differ): JSON.stringify
- L62 · fail calls (conditional paths may differ): textResult, describeProviderError
- L67 · compactMessage calls (conditional paths may differ): text.slice, Boolean, message.attachments.map
- L92 · loadThread calls (conditional paths may differ): getEmailForUser, listThreadMessages, displaySubject
- L104 · hasScope calls (conditional paths may differ): scopes.includes
- L109 · createMcpServer calls (conditional paths may differ): hasScope, server.registerTool, listAddressesForUser, textResult, addresses.map, fail, describe, optional, z.enum, z.string, positive, int, z.number, z.boolean, listMailbox, loadThread, markThreadRead, thread.messages.map, compactMessage, thread.messages.flatMap
- L429 · handleMcpRequest calls (conditional paths may differ): createMcpServer, server.connect, transport.handleRequest, catch, transport.close
- L76 · protectedResourceMetadata calls (conditional paths may differ): mcpResourceUri
- L89 · isOAuthScope calls (conditional paths may differ): includes
- L98 · normalizeScope calls (conditional paths may differ): filter, split, OAUTH_SCOPES.filter, requested.includes, OAUTH_SCOPES.join
- L108 · parseStoredScope calls (conditional paths may differ): filter, value.split
- L123 · isAllowedRedirectUri calls (conditional paths may differ): LOOPBACK_HOSTS.has, FORBIDDEN_SCHEMES.has, test
- L138 · redirectUriMatches calls (conditional paths may differ): registered.includes, LOOPBACK_HOSTS.has, registered.some
- L176 · mapClient calls (conditional paths may differ): JSON.parse, Array.isArray, uris.filter
- L203 · cleanName calls (conditional paths may differ): trim, value.replace, slice
- L209 · parseClientMetadata calls (conditional paths may differ): Array.isArray, isAllowedRedirectUri, redirectUris.includes, redirectUris.push, String, httpsOrNull, cleanName
- L263 · randomToken calls (conditional paths may differ): crypto.getRandomValues, toBase64Url
- L268 · toBase64Url calls (conditional paths may differ): String.fromCharCode, replace, btoa
- L275 · registerClient calls (conditional paths may differ): parseClientMetadata, randomToken, toISOString, run, bind, db.prepare, JSON.stringify
- L299 · registrationResponse calls (conditional paths may differ): Math.floor, Date.parse
- L314 · isClientMetadataUrl calls (conditional paths may differ): isBlockedMetadataHost
- L330 · isBlockedMetadataHost calls (conditional paths may differ): toLowerCase, hostname.replace, host.endsWith, test, map, host.split, parts.some, host.includes, host.startsWith
- L367 · readCappedText calls (conditional paths may differ): Number, response.headers.get, Number.isFinite, reader.read, reader.cancel, chunks.push, bytes.set, decode
- L395 · fetchClientMetadataDocument calls (conditional paths may differ): setTimeout, controller.abort, fetchImpl, clearTimeout, readCappedText, JSON.parse, parseClientMetadata
- L438 · getClient calls (conditional paths may differ): first, bind, db.prepare, Date.now, Date.parse, mapClient, isClientMetadataUrl, fetchClientMetadataDocument, toISOString, run, JSON.stringify
- L483 · isValidCodeChallenge calls (conditional paths may differ): test
- L487 · isValidCodeVerifier calls (conditional paths may differ): test
- L491 · s256 calls (conditional paths may differ): crypto.subtle.digest, encode, toBase64Url
- L496 · constantTimeEqual calls (conditional paths may differ): a.charCodeAt, b.charCodeAt
- L503 · verifyPkce calls (conditional paths may differ): constantTimeEqual, s256
- L518 · issueAuthorizationCode calls (conditional paths may differ): randomToken, Date.now, run, bind, db.prepare, hashToken, input.scope.join, toISOString
- L559 · consumeAuthorizationCode calls (conditional paths may differ): hashToken, first, bind, db.prepare, Date.parse, Date.now, parseStoredScope
- L585 · deleteExpiredCodes calls (conditional paths may differ): run, bind, db.prepare, toISOString
- L599 · insertGrant calls (conditional paths may differ): randomToken, Date.now, run, bind, db.prepare, crypto.randomUUID, input.scope.join, hashToken, toISOString, Math.floor
- L636 · issueGrant calls (conditional paths may differ): insertGrant, crypto.randomUUID
- L658 · refreshGrant calls (conditional paths may differ): input.refreshToken.startsWith, hashToken, first, bind, db.prepare, revokeFamily, Date.parse, Date.now, parseStoredScope, normalizeScope, requested.some, granted.includes, run, toISOString, insertGrant
- L715 · revokeFamily calls (conditional paths may differ): run, bind, db.prepare, toISOString
- L727 · revokeToken calls (conditional paths may differ): hashToken, first, bind, db.prepare, revokeFamily
- L762 · getUserByOAuthToken calls (conditional paths may differ): token.startsWith, hashToken, first, bind, db.prepare, Date.parse, Date.now, run, toISOString, parseStoredScope
- L813 · listConnectedApps calls (conditional paths may differ): all, bind, db.prepare, toISOString, results.map, clientNameFromId, OAUTH_SCOPES.filter, includes, row.scopes.split
- L851 · revokeClientForUser calls (conditional paths may differ): run, bind, db.prepare, toISOString
- L862 · bearerChallenge calls (conditional paths may differ): extra.description.replaceAll, OAUTH_SCOPES.join, params.join
- L50 · assertOutboundAttachments calls (conditional paths may differ): base64ByteLength, assertTotalAttachmentBytes, attachments.reduce
- L75 · resolveFromAddress calls (conditional paths may differ): getAddressForUser, getDefaultAddress
- L106 · persistableAddressId calls (conditional paths may differ): id.startsWith
- L111 · resolveReplyFromAddress calls (conditional paths may differ): parseEmailAddress, listAddressesForUser, owned.find, address.address.toLowerCase, mailbox.split, getDomainByName, owned.some, mailbox.includes, toISOString, getDefaultAddress
- L149 · sendAndStore calls (conditional paths may differ): resolveFromAddress, stripHtml, appendEmailSignature, pickEmailSignature, getEmailSignature, assertOutboundAttachments, sendOutboundEmail, insertEmail, join, parseRecipients, input.subject.trim, replaceAll, escapeHtml, persistableAddressId, initialOutboundStatus, insertAttachments
Environment references: env.DB · env.ATTACHMENTS
- L44 · createCloudflareProvider calls (conditional paths may differ): email.send, Object.keys, input.attachments.map, wrapCloudflareError, map, parseMailDomains, domains.find, id.toLowerCase, cloudflareDomain
- L98 · toCloudflareAttachment calls (conditional paths may differ): base64ToArrayBuffer
- L129 · base64ToArrayBuffer calls (conditional paths may differ): base64ToBytes, copy.set
- L15 · createResendProvider calls (conditional paths may differ): createResendClient, client.send, formatEmailAddress, Object.keys, input.attachments.map, wrapResendError, client.listDomains, remote.map, toProviderDomain, client.getDomain
- L82 · getResendReceivingClient calls (conditional paths may differ): createResendClient
- L86 · toProviderDomain calls (conditional paths may differ): isDomainSendable, isDomainReceivable
- L56 · isRecord calls (conditional paths may differ): Array.isArray
- L60 · decodeBase64Url calls (conditional paths may differ): BASE64URL.test, value.replace, replaceAll, unpadded.replaceAll, repeat, atob, Uint8Array.from, character.charCodeAt
- L83 · validPublicKey calls (conditional paths may differ): decodeBase64Url
- L88 · validAuthSecret calls (conditional paths may differ): decodeBase64Url
- L92 · validVapidKeyPair calls (conditional paths may differ): decodeBase64Url, createECDH, ecdh.setPrivateKey, ecdh.getPublicKey, derivedPublicKey.every
- L112 · validEndpoint calls (conditional paths may differ): value.trim
- L126 · parsePushSubscription calls (conditional paths may differ): isRecord, validEndpoint, value.endpoint.trim, validPublicKey, validAuthSecret, Number.isFinite
- L151 · readVapidConfiguration calls (conditional paths may differ): validVapidKeyPair, subjectUrl.pathname.trim
- L168 · savePushSubscription calls (conditional paths may differ): run, bind, db.prepare, crypto.randomUUID, capUserSubscriptions
- L201 · capUserSubscriptions calls (conditional paths may differ): all, bind, db.prepare, map, results.slice, db.batch, extraIds.map
- L223 · hasPushSubscription calls (conditional paths may differ): validEndpoint, first, bind, db.prepare, endpoint.trim
- L236 · removePushSubscription calls (conditional paths may differ): run, bind, db.prepare
- L248 · listPushSubscriptions calls (conditional paths may differ): all, bind, db.prepare
- L264 · removeDeadSubscriptions calls (conditional paths may differ): db.batch, endpoints.map, bind, db.prepare
- L273 · truncate calls (conditional paths may differ): replace, value.trim, normalized.slice
- L278 · buildNewMailPayload calls (conditional paths may differ): truncate, encodeURIComponent
- L287 · pushErrorStatus calls (conditional paths may differ): isRecord
- L296 · notifyNewMail calls (conditional paths may differ): deliverNewMailNotification, console.error
- L311 · scheduleNewMailNotification calls (conditional paths may differ): notifyNewMail, env.waitUntil
- L323 · deliverNewMailNotification calls (conditional paths may differ): readVapidConfiguration, listPushSubscriptions, webpush.setVapidDetails, JSON.stringify, buildNewMailPayload, Promise.all, subscriptions.map, webpush.sendNotification, pushErrorStatus, deadEndpoints.push, console.error, removeDeadSubscriptions
Environment references: env.VAPID_PUBLIC_KEY · env.VAPID_PRIVATE_KEY · env.VAPID_SUBJECT · env.waitUntil · env.DB
- L109 · createResendClient calls (conditional paths may differ): fetch, response.text, safeJsonParse, request, JSON.stringify, response.arrayBuffer
- L114 · request calls (conditional paths may differ): fetch, response.text, safeJsonParse
- L197 · safeJsonParse calls (conditional paths may differ): JSON.parse
- L24 · escapeHtml calls (conditional paths may differ): replaceAll, text.replaceAll
- L32 · formatMessageId calls (conditional paths may differ): value.trim, trimmed.startsWith, trimmed.endsWith, trimmed.replace
- L39 · normalizeMessageId calls (conditional paths may differ): replace, value.trim
- L45 · formatReferences calls (conditional paths may differ): filter, map, value.split, replace, part.trim, join, ids.map
- L56 · validateSubject calls (conditional paths may differ): subject.trim
- L64 · parseRecipients calls (conditional paths may differ): Array.isArray, value.split, filter, parts.map, part.trim, part.includes
- L85 · sendOutboundEmail calls (conditional paths may differ): validateSubject, parseRecipients, input.text.trim, replaceAll, escapeHtml, formatMessageId, formatReferences, provider.send, input.subject.trim, buildHtmlEmail, Object.keys, crypto.randomUUID
- L45 · escapeHtml calls (conditional paths may differ): replace, value.replace
- L49 · clamp calls (conditional paths may differ): value.trim, text.slice
- L55 · tidyBody calls (conditional paths may differ): trim, replace, body.replace
- L63 · formatBytes calls (conditional paths may differ): value.toFixed, Math.round
- L80 · buildTelegramMessage calls (conditional paths may differ): escapeHtml, clamp, lines.push, tidyBody, formatBytes, threadLink, lines.join, text.slice
- L118 · threadLink calls (conditional paths may differ): encodeURIComponent
- L130 · buildRichMessage calls (conditional paths may differ): escapeHtml, clamp, parts.push, tidyBody, replace, entries, uploadableAttachments, isPhoto, media.push, formatBytes, threadLink, parts.join
- L177 · uploadableAttachments calls (conditional paths may differ): filter
- L183 · isPhoto calls (conditional paths may differ): file.contentType.toLowerCase, type.startsWith, type.includes
- L192 · call calls (conditional paths may differ): fetch, console.error, response.text
- L217 · sendAttachment calls (conditional paths may differ): isPhoto, formatBytes, form.set, String, call, upload
- L232 · upload calls (conditional paths may differ): form.set, String
- L249 · sendRich calls (conditional paths may differ): buildRichMessage, uploadableAttachments, form.set, String, media.map, JSON.stringify, call
- L278 · scheduleTelegramNotification calls (conditional paths may differ): Number, Number.isInteger, catch, sendRich, call, JSON.stringify, buildTelegramMessage, sendAttachment, console.error
Environment references: env.TELEGRAM_BOT_TOKEN · env.TELEGRAM_CHAT_ID · env.TELEGRAM_THREAD_ID · env.APP_URL · env.waitUntil
- L15 · buildThreadParticipants calls (conditional paths may differ): parseEmailIdentity, participants.find, entry.address.toLowerCase, participants.push, addParticipant, parseEmailIdentities, formatEmailAddress
- L32 · normalizeSubject calls (conditional paths may differ): toLowerCase, stripSubjectPrefixes
- L36 · stripSubjectPrefixes calls (conditional paths may differ): subject.trim, trim, value.replace
- L51 · displaySubject calls (conditional paths may differ): stripSubjectPrefixes, subject.trim
- L56 · parseMessageIds calls (conditional paths may differ): header.split, replace, part.trim, ids.includes, ids.push
- L71 · buildReferences calls (conditional paths may differ): parseMessageIds, join, map, ids.slice
- L80 · addressesIn calls (conditional paths may differ): filter, map, value.split, part.match, toLowerCase, trim, address.includes
- L113 · resolveThreadId calls (conditional paths may differ): first, bind, db.prepare, slice, parseMessageIds, join, referenced.map, normalizeSubject, addressesIn, participants.map
- L12 · configuredTypesafeKey calls (conditional paths may differ): test
- L66 · spamQuestion calls (conditional paths may differ): noul
- L70 · phishingQuestion calls (conditional paths may differ): noul
- L77 · categoryQuestion calls (conditional paths may differ): choice
- L81 · labelQuestions calls (conditional paths may differ): noul
- L107 · mailBatchPayload calls (conditional paths may differ): inputs.forEach, mailSlot, slice, input.attachmentNames.slice, spamQuestion, phishingQuestion, categoryQuestion, Object.assign, labelQuestions
- L138 · judgmentsFromBatchAnswers calls (conditional paths may differ): inputs.map, mailSlot, labels.push, String
- L184 · chunkInputs calls (conditional paths may differ): groups.push, items.slice
- L196 · judgeInboundMail calls (conditional paths may differ): judgeInboundMailBatch
- L209 · judgeInboundMailBatch calls (conditional paths may differ): apiKey.trim, inputs.map, typesafeClient, chunkInputs, Promise.all, groups.map, mailBatchPayload, client.systemOne, judgmentsFromBatchAnswers, console.error, group.map, judged.flat
- L20 · readHeader calls (conditional paths may differ): headers.get
- L25 · verifyWebhookSignature calls (conditional paths may differ): readHeader, Number, Number.isFinite, Math.abs, Math.floor, Date.now, crypto.subtle.importKey, base64ToBytes, secret.replace, crypto.subtle.sign, encode, bytesToBase64, signature.split, entry.split, timingSafeEqual
- L77 · timingSafeEqual calls (conditional paths may differ): a.charCodeAt, b.charCodeAt
- L86 · base64ToBytes calls (conditional paths may differ): atob, binary.charCodeAt
- L95 · bytesToBase64 calls (conditional paths may differ): String.fromCharCode, btoa
- L16 · readThemePreference calls (conditional paths may differ): localStorage.getItem, isPreference
- L27 · resolveTheme calls (conditional paths may differ): window.matchMedia
- L32 · syncThemeColor calls (conditional paths may differ): document.querySelectorAll, document.createElement, document.head.appendChild, meta.setAttribute
- L51 · applyTheme calls (conditional paths may differ): resolveTheme, syncThemeColor
- L57 · setThemePreference calls (conditional paths may differ): localStorage.setItem, applyTheme
- L63 · watchSystemTheme calls (conditional paths may differ): window.matchMedia, readThemePreference, applyTheme, query.addEventListener, query.removeEventListener
- L13 · extraThemes calls (conditional paths may differ): Object.entries, builtins.some, path.includes, extras.push
- L26 · listThemeIds calls (conditional paths may differ): themes.map
- L30 · listThemes calls (conditional paths may differ): themes.map
- L34 · getTheme calls (conditional paths may differ): parseThemeId, listThemeIds, themes.find
- L4 · formatRelativeDate calls (conditional paths may differ): intlLocale, now.getTime, date.getTime, Math.floor, translate, date.getDate, now.getDate, date.toLocaleTimeString, date.toLocaleDateString
- L24 · formatFullDate calls (conditional paths may differ): toLocaleString, intlLocale
- L34 · validDate calls (conditional paths may differ): Number.isNaN, date.getTime
- L39 · isSameCalendarDay calls (conditional paths may differ): a.getFullYear, b.getFullYear, a.getMonth, b.getMonth, a.getDate, b.getDate
- L48 · formatMailDate calls (conditional paths may differ): validDate, now.getTime, date.getTime, isSameCalendarDay, formatMailTime, now.getFullYear, date.getFullYear, now.getMonth, date.getMonth, date.toLocaleDateString, intlLocale
- L68 · formatMailTime calls (conditional paths may differ): validDate, date.toLocaleTimeString, intlLocale
- L75 · shouldShowSeparateTime calls (conditional paths may differ): validDate, isSameCalendarDay, now.getTime, date.getTime
- L44 · ownContent calls (conditional paths may differ): marker.exec, html.slice
- L56 · isRichHtml calls (conditional paths may differ): ownContent, LAYOUT_MARKERS.some, marker.test
- L67 · supportsDarkScheme calls (conditional paths may differ): test
- L94 · rgba calls (conditional paths may differ): toLowerCase, literal.trim, value.startsWith, value.slice, join, map, Number.parseInt, Number.isNaN, filter, split, value.replace, Number.parseFloat, part.endsWith, Math.min, Math.max, channel, alpha
- L155 · darkModeColour calls (conditional paths may differ): rgba, property.toLowerCase, normalized.includes
- L177 · adaptDarkColours calls (conditional paths may differ): source.replace, declaration.replace, darkModeColour, declarationsAdapted.replace, tag.replace, attribute.replace
- L280 · isFullDocument calls (conditional paths may differ): test
- L308 · headEnd calls (conditional paths may differ): emailCss
- L318 · spliceHead calls (conditional paths may differ): exec, html.slice, withBefore.search, withBefore.slice
- L341 · withTheme calls (conditional paths may differ): html.replace, tag.replace
- L348 · buildEmailDocument calls (conditional paths may differ): headStart, headEnd, supportsDarkScheme, adaptDarkColours, isFullDocument, withTheme, spliceHead
- L1 · htmlToPlainText calls (conditional paths may differ): parseFromString, trim, replace
- L7 · stripMarkup calls (conditional paths may differ): replace, html.replace, Number.parseInt, Number.isNaN, String.fromCharCode
- L17 · isHtmlEmpty calls (conditional paths may differ): html.trim, html.includes, trim, stripMarkup, htmlToPlainText
- L27 · formatFileSize calls (conditional paths may differ): toFixed
- L16 · bare calls (conditional paths may differ): value.trim, decodeURIComponent, toLowerCase, trim, text.replace
- L26 · isImage calls (conditional paths may differ): startsWith, attachment.content_type.toLowerCase
- L35 · soleImageFallback calls (conditional paths may differ): html.matchAll, referenced.add, bare, attachments.filter
- L52 · visibleAttachments calls (conditional paths may differ): inlineAttachmentIds, attachments.filter, inlined.has
- L62 · inlineAttachmentIds calls (conditional paths may differ): includes, html.toLowerCase, byContentId.set, bare, soleImageFallback, html.matchAll, byContentId.get, ids.add
- L84 · resolveInlineImages calls (conditional paths may differ): includes, html.toLowerCase, byContentId.set, bare, soleImageFallback, html.replace, byContentId.get, attachmentHref
- L35 · canFoldQuotes calls (conditional paths may differ): test
- L40 · remainsVisible calls (conditional paths may differ): folded.has, Array.from, walk, text.trim
- L66 · splitQuotedText calls (conditional paths may differ): text.split, trim, test, ATTRIBUTION.test, slice, line.startsWith, join, lines.slice, text.trim
- L97 · stripQuotedText calls (conditional paths may differ): splitQuotedText
- L112 · foldQuotedHtml calls (conditional paths may differ): Array.from, container.querySelectorAll, container.querySelector, ATTRIBUTION.test, hidden.push, remainsVisible, node.classList.add
- L5 · setupMobileViewTransitions calls (conditional paths may differ): onNavigate, skipNextViewTransition, isMobileViewport, window.matchMedia, navDirection, document.startViewTransition, resolve
- L5 · SvelteKit GET request handler exported · calls json, authorizationServerMetadata
- L5 · SvelteKit GET request handler exported · calls json, protectedResourceMetadata
- L5 · SvelteKit GET request handler exported · calls json, protectedResourceMetadata
- L4 · SvelteKit GET request handler exported · calls json, url.searchParams.get, locals.apiScopes.includes, listAllAddresses, listAddressesForUser
- L21 · SvelteKit POST request handler exported · calls json, request.json, createAddress
Environment references: platform.env.DB
- L9 · SvelteKit PATCH request handler exported · calls json, request.json, updateAddress, setDefaultAddress, listAddressesForUser
- L41 · SvelteKit DELETE request handler exported · calls json, listAddressesForUser, deleteAddress, remaining.some, setDefaultAddress
Environment references: platform.env.DB
- L4 · SvelteKit GET request handler exported · calls json, Math.min, Math.max, Number, url.searchParams.get, listUnroutedEmails
Environment references: platform.env.DB
- L5 · SvelteKit GET request handler exported · calls json, Promise.all, listUsers, listAllAddresses
- L21 · SvelteKit POST request handler exported · calls json, request.json, getDomain, replace, toLowerCase, body.localPart.trim, createUser, createAddress, deletePendingUser, console.error
Environment references: platform.env.DB
- L4 · SvelteKit PATCH request handler exported · calls json, request.json, setUserAdmin, setUserPassword
- L46 · SvelteKit DELETE request handler exported · calls json, deleteUser
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L4 · SvelteKit GET request handler exported · calls json, listApiTokens
- L17 · SvelteKit POST request handler exported · calls json, catch, request.json, parseScopes, createApiToken
Environment references: platform.env.DB
- L4 · SvelteKit DELETE request handler exported · calls json, revokeApiToken, listApiTokens
Environment references: platform.env.DB
- L21 · SvelteKit POST request handler exported · calls setupError, request.json, Array.isArray, body.name.trim, completeFirstLogin, cookies.delete, json
- L17 · setupError calls (conditional paths may differ): json
Environment references: platform.env.DB
- L6 · SvelteKit POST request handler exported · calls json, request.json, readSessionToken, resolveLinkedSessions, readLinkedTokens, existing.some, trim, toLowerCase, login, existing.filter, Promise.all, replaced.map, logout, cookies.set, sessionCookieOptions, writeLinkedTokens, parked.map
- L57 · SvelteKit DELETE request handler exported · calls readSessionToken, filter, readLinkedTokens, url.searchParams.get, logout, Promise.all, linked.map, cookies.delete, json, resolveLinkedSessions, remaining.shift, cookies.set, sessionCookieOptions, writeLinkedTokens, remaining.map
Environment references: platform.env.DB
- L3 · SvelteKit GET request handler exported · calls json
- L5 · SvelteKit POST request handler exported · calls json, createPairingCode
Environment references: platform.env.DB
- L42 · SvelteKit POST request handler exported · calls json, Number, request.headers.get, Number.isFinite, getClientAddress, checkRateLimit, String, readBodyWithLimit, JSON.parse, Array.isArray, test, deleteExpiredPairingCodes, redeemPairingCode
- L11 · readBodyWithLimit calls (conditional paths may differ): request.body.getReader, reader.read, reader.cancel, chunks.push, bytes.set, decode
Environment references: platform.env.DB
- L5 · SvelteKit DELETE request handler exported · calls json, revokeSession, cookies.delete
Environment references: platform.env.DB
- L11 · SvelteKit POST request handler exported · calls json, catch, request.json, readSessionToken, resolveLinkedSessions, filter, readLinkedTokens, parked.find, map, parked.filter, others.unshift, cookies.set, sessionCookieOptions, writeLinkedTokens
Environment references: platform.env.DB
- L4 · SvelteKit GET request handler exported · calls json, listDeviceSessions
Environment references: platform.env.DB
- L4 · SvelteKit DELETE request handler exported · calls json, revokeSession
Environment references: platform.env.DB
- L18 · SvelteKit GET request handler exported · calls json, listDomains, safeEmailProviderKind, getEmailProvider, url.searchParams.get, syncDomains, listAvailableDomains, connected.map, hasProviderConfigured, providerLoadError
- L80 · SvelteKit POST request handler exported · calls json, request.json, getEmailProvider, connected.push, upsertDomain, provider.getDomain, listDomains
Environment references: platform.env.DB
- L6 · SvelteKit PATCH request handler exported · calls json, getDomain, request.json, getEmailProvider, provider.getDomain, upsertDomain, setCatchallUser
- L43 · SvelteKit DELETE request handler exported · calls json, disconnectDomain
Environment references: platform.env.DB
- L6 · SvelteKit POST request handler exported · calls json, request.json, locals.domains.some, cookies.set, cookies.delete
- L17 · SvelteKit POST request handler exported · calls json, request.json, resolveFromAddress, saveDraft
Environment references: platform.env.DB
- L4 · SvelteKit GET request handler exported · calls json, getDraft
- L28 · SvelteKit DELETE request handler exported · calls json, deleteDraft
Environment references: platform.env.DB
- L5 · SvelteKit GET request handler exported · calls json, listLabels
- L14 · SvelteKit POST request handler exported · calls json, parseLabelWriteBody, catch, request.json, createLabel, bumpMailboxEpoch
Environment references: platform.env.DB
- L5 · SvelteKit PATCH request handler exported · calls json, parseLabelWriteBody, catch, request.json, updateLabel, bumpMailboxEpoch
- L23 · SvelteKit DELETE request handler exported · calls json, deleteLabel, bumpMailboxEpoch
Environment references: platform.env.DB
- L52 · SvelteKit GET request handler exported · calls json, mailboxView, mailboxCategoryFilter, url.searchParams.get, listMailbox, Number
- L82 · SvelteKit POST request handler exported · calls json, request.json, getEmailProvider, sendAndStore, deleteDraft, describeProviderError, statusForProviderError
- L25 · mailboxView calls (conditional paths may differ): url.searchParams.get
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L32 · SvelteKit GET request handler exported · calls json, getEmailForUser, markThreadRead, listThreadMessages, displaySubject
- L54 · SvelteKit PATCH request handler exported · calls json, request.json, authorizeMailPatch, expandToThreads, isInboxCategory, setEmailFlags, rememberSenders
- L113 · SvelteKit DELETE request handler exported · calls json, expandToThreads, deleteEmailsPermanently
- L129 · SvelteKit POST request handler exported · calls json, getEmailForUser, request.json, test, resolveReplyFromAddress, getEmailProvider, sendAndStore, buildReferences, describeProviderError, statusForProviderError
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L6 · SvelteKit GET request handler exported · calls error, getAttachmentForUser, readAttachmentBytes, url.searchParams.get, isPreviewableInline, encodeURIComponent, String
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L12 · SvelteKit POST request handler exported · calls json, getEmailForUser, request.json, parseRecipients, getEmailProvider, sendForwardedMessages, describeProviderError, statusForProviderError
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L5 · SvelteKit PUT request handler exported · calls json, request.json, Array.isArray, body.labelIds.some, expandToThreads, setThreadLabels, bumpMailboxEpoch
Environment references: platform.env.DB
- L25 · SvelteKit POST request handler exported · calls json, request.json, isMailAction, authorizeMailAction, filter, WHOLE_MAILBOX.includes, expandToThreads, setEmailFlags, rememberSenders, isInboxCategory, deleteEmailsPermanently, markAllRead, emptyTrash, emptySpam, getMailboxCounts
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L10 · SvelteKit GET request handler exported · calls json, url.searchParams.get, getMailboxCursor, Date.now, waitForAbortable
Environment references: platform.env.DB
- L12 · SvelteKit POST request handler exported · calls json, listForwardThreadMessages, request.json, parseRecipients, getEmailProvider, sendForwardedMessages, describeProviderError, statusForProviderError
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L5 · SvelteKit GET request handler exported · calls json, listConnectedApps
- L12 · SvelteKit DELETE request handler exported · calls json, url.searchParams.get, revokeClientForUser, listConnectedApps
Environment references: platform.env.DB
- L17 · SvelteKit GET request handler exported · calls json, url.searchParams.get, hasPushSubscription
- L28 · SvelteKit POST request handler exported · calls json, rejectCrossOrigin, catch, request.json, parsePushSubscription, savePushSubscription, request.headers.get
- L51 · SvelteKit DELETE request handler exported · calls json, rejectCrossOrigin, catch, request.json, body.endpoint.trim, removePushSubscription
- L9 · rejectCrossOrigin calls (conditional paths may differ): request.headers.get, json
Environment references: platform.env.DB
- L7 · SvelteKit GET request handler exported · calls json, Boolean, configuredTypesafeKey, countUnclassifiedInbound
- L21 · SvelteKit POST request handler exported · calls json, configuredTypesafeKey, request.headers.get, request.json, parseClassifyCursor, classifyNextExisting, console.error
Environment references: platform.env.DB · platform.env.TYPESAFE_API_KEY
- L5 · SvelteKit PATCH request handler exported · calls json, request.json, isLocale, setUserLocale, cookies.set
Environment references: platform.env.DB
- L5 · SvelteKit GET request handler exported · calls json, getEmailSignature
- L17 · SvelteKit PATCH request handler exported · calls json, request.json, updateEmailSignature
Environment references: platform.env.DB
- L6 · SvelteKit PATCH request handler exported · calls json, request.json, parseThemeId, setUserUiTheme, cookies.set
Environment references: platform.env.DB
- L19 · SvelteKit GET request handler exported · calls json, countUsers, hasProviderConfigured, safeEmailProviderKind
- L38 · SvelteKit POST request handler exported · calls json, countUsers, request.json, getEmailProvider, upsertDomain, provider.getDomain, replace, toLowerCase, body.localPart.trim, bootstrapAdmin, createAddress, setCatchallUser, login, cookies.set, sessionCookieOptions, Boolean
Environment references: platform.env.DB
- L12 · SvelteKit POST request handler exported · calls json, getWebhookSecret, console.error, request.text, verifyWebhookSignature, console.warn, JSON.parse, request.headers.get, crypto.randomUUID, claimWebhookEvent, text, getResendClient, handleResendWebhook, platform.ctx.waitUntil, run, bind, db.prepare
Environment references: platform.env.DB · platform.env.ATTACHMENTS · platform.env.VAPID_PUBLIC_KEY · platform.env.VAPID_PRIVATE_KEY · platform.env.VAPID_SUBJECT · platform.env.TELEGRAM_BOT_TOKEN · platform.env.TELEGRAM_CHAT_ID · platform.env.TELEGRAM_THREAD_ID · platform.env.APP_URL · platform.env.TYPESAFE_API_KEY
- L35 · SvelteKit POST request handler exported · calls rpcError, readBearerToken, bearerChallenge, authenticate, handleMcpRequest, getEmailProvider
- L15 · rpcError calls (conditional paths may differ): JSON.stringify
- L22 · authenticate calls (conditional paths may differ): readBearerToken, getUserByOAuthToken, getUserByApiToken
Environment references: platform.env.DB · platform.env.ATTACHMENTS
- L50 · param calls (conditional paths may differ): source.get, value.trim
- L58 · parseAuthorizeRequest calls (conditional paths may differ): param, getClient, redirectUriMatches, bounce, isValidCodeChallenge, normalizeScope, mcpResourceUri
- L120 · redirectWith calls (conditional paths may differ): Object.entries, url.searchParams.set, url.toString
- L130 · handleAuthorizeError calls (conditional paths may differ): redirect, redirectWith
Environment references: platform.env.DB
- L6 · SvelteKit POST request handler exported · calls json, request.headers.get, getClientAddress, checkRateLimit, request.json, registerClient, registrationResponse, error.toJSON
Environment references: platform.env.DB
- L6 · SvelteKit POST request handler exported · calls json, request.headers.get, getClientAddress, checkRateLimit, type.includes, catch, request.json, request.text, form.get, revokeToken
Environment references: platform.env.DB
- L33 · SvelteKit POST request handler exported · calls json, request.headers.get, getClientAddress, checkRateLimit, readParams, isValidCodeVerifier, consumeAuthorizationCode, verifyPkce, mcpResourceUri, issueGrant, catch, deleteExpiredCodes, refreshGrant, error.toJSON
- L17 · readParams calls (conditional paths may differ): request.headers.get, type.includes, catch, request.json, Object.entries, request.text
Environment references: platform.env.DB
- L24 · stringValue calls (conditional paths may differ): value.trim
- L28 · notifyOpenClients calls (conditional paths may differ): worker.clients.matchAll, client.postMessage
- L35 · readPushPayload calls (conditional paths may differ): event.data.json
- L45 · currentAccountOwnsSubscription calls (conditional paths may differ): worker.registration.pushManager.getSubscription, encodeURIComponent, fetch, response.json
- L22 · fetch handler exported · calls svelteApp.fetch
- L29 · email handler exported · references EMAIL_PROVIDER, DB, ATTACHMENTS, VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT, TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID, TELEGRAM_THREAD_ID, APP_URL, TYPESAFE_API_KEY · calls message.setReject, ctx.waitUntil, handleCloudflareInbound
Environment references: env.EMAIL_PROVIDER · env.DB · env.ATTACHMENTS · env.VAPID_PUBLIC_KEY · env.VAPID_PRIVATE_KEY · env.VAPID_SUBJECT · env.TELEGRAM_BOT_TOKEN · env.TELEGRAM_CHAT_ID · env.TELEGRAM_THREAD_ID · env.APP_URL · env.TYPESAFE_API_KEY
Build and deployment pipeline · 2 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.
Triggers: push, pull_request, workflow_dispatch
Verify the template · no job dependencies declared
- actions/checkout@v5
actions/checkout@v5 - oven-sh/setup-bun@v2
oven-sh/setup-bun@v2 - Install
bun install --frozen-lockfile - Check the template is clean
bun run check:clean - Typecheck
bun run check - Build
bun run build
Translate catalogs · no job dependencies declared
Condition: github.actor != 'github-actions[bot]' && !contains(github.event.head_commit.message || '', 'gt-translate/') && (github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main'))
- actions/checkout@v5
actions/checkout@v5 - generaltranslation/translate@v0
generaltranslation/translate@v0
Triggers: push, workflow_dispatch
Package and publish · no job dependencies declared
- actions/checkout@v5
actions/checkout@v5 - oven-sh/setup-bun@v2
oven-sh/setup-bun@v2 - Install
bun install --frozen-lockfile - Check the template is clean
bun run check:clean - Typecheck
bun run check - Build
bun run build - Resolve version
TAG="${{ github.event.inputs.tag || github.ref_name }}" echo "tag=$TAG" >> "$GITHUB_OUTPUT" echo "version=${TAG#v}" >> "$GITHUB_OUTPUT" - Package
git archive --format=zip \ --prefix="quickinbox-${{ steps.version.outputs.version }}/" \ -o "quickinbox-${{ steps.version.outputs.version }}.zip" \ "${{ steps.version.outputs.tag }}" unzip -l "quickinbox-${{ steps.version.outputs.version }}.zip" | tail -5 - Publish release
gh release create "${{ steps.version.outputs.tag }}" \ "quickinbox-${{ steps.version.outputs.version }}.zip" \ --title "Quickinbox ${{ steps.version.outputs.tag }}" \ --generate-notes
build: vite build && bun scripts/wrap-cloudflare-worker.mjsdeploy: bun run build && wrangler d1 migrations apply DB --remote && wrangler deploy
Repository README
View original on GitHub ↗Full upstream document by @DivinPrince · README.md · snapshot 2d2c7d6
Quickinbox
Self-hosted email for your own domain, running on Cloudflare Workers.
Get you@yourdomain.com with a full web client — no third-party mailbox,
no servers to maintain.
Features
- Real mail in and out — the provider delivers straight into the Worker, nothing is polled
- Threads — replies group into conversations, quoted history collapses; conversations never mix messages from different domains
- Attachments — inbound files land in R2, outbound files upload from the composer
- Safe HTML — received HTML renders in a sandboxed iframe
- Multiple domains and users — per-user addresses, admin catch-all, unrouted-mail view; the combined inbox tags each conversation with the address it arrived on and can filter by it
- Delivery status — delivered / bounced / complained tracking
- REST API, CLI, and MCP server — send and read mail from scripts, the terminal, or AI agents
- Hosted MCP with OAuth — paste
https://your-instance/mcpinto Claude, Cursor, or ChatGPT and approve access in the browser; disconnect apps from Settings - Inbox tabs — optional TypeSafe classification into Primary, Social, Promotions, Updates, Forums, plus a spam mailbox
- Light and dark themes
Quick start
Click Deploy to Cloudflare above, or run the setup wizard locally:
bun run setup
# if bun isn't installed yet:
bash scripts/setup.sh
The button's deploy command applies D1 migrations (the users table and the
rest of the schema). If an older deploy left you with no such table: users,
run this once against that Worker, then reload:
npx wrangler d1 migrations apply DB --remote
The wizard creates the D1 database and R2 bucket, writes config, and onboards your domain. Budget about 30 minutes — most of that is waiting on DNS.
The Deploy to Cloudflare form includes an optional TYPESAFE_API_KEY for inbox
tabs. Keep the placeholder to skip. bun run setup asks for the same key.
You need:
- A domain you control
- A Cloudflare account
- Either a Resend account, or the domain on Cloudflare DNS plus a Workers paid plan
Updating an existing install
If you already deployed from this repo, pulling updates only changes the product name in the UI and docs. It does not rename your Worker, D1 database, or R2 bucket — leave those as they are (often quickmail / quickmail-attachments). Existing qm_live_ API keys keep working, and quickmail remains a CLI alias.
Choosing a mail provider
One provider is active per deploy, selected by EMAIL_PROVIDER (resend is
the default, cloudflare is the alternative). Do not point the same domain's
apex MX at both.
| Resend | Cloudflare Email Service | |
|---|---|---|
| Outbound | Resend API | Workers env.EMAIL.send() |
| Inbound | Webhook → /api/webhooks/resend |
Worker email() handler |
| DNS | Any DNS host | Cloudflare DNS required |
| Cost | Resend free tier + Cloudflare | Requires a Workers paid plan |
| Delivery events | delivered, bounced, complained, … |
Accepted send is stored as sent |
Pick Resend if your DNS lives elsewhere or you already use it. Pick Cloudflare Email if the zone is already on Cloudflare and you want everything on one account.
Manual setup
Only needed if you cannot run the wizard.
1. Install
bun install # or: npm install
bunx wrangler login
Cloudflare Email Sending needs Wrangler 4.123+ (older versions hit a removed API path and 404).
2. Create D1 and R2
bunx wrangler d1 create quickmail
bunx wrangler r2 bucket create quickmail-attachments
Copy the printed database_id into wrangler.jsonc (replacing
REPLACE_WITH_YOUR_D1_DATABASE_ID), then run migrations:
bun run db:migrate:remote
To serve from your own hostname, uncomment the routes block in
wrangler.jsonc — the zone must be on the same Cloudflare account.
Then follow exactly one provider track below.
Track A — Resend
Verify the domain in Resend (Domains → Add Domain) and add every record they show, including the apex
MX— without it, mail never arrives. Enable sending and receiving on the domain.Set the API key (create it with full access — send + domains + receiving):
bunx wrangler secret put RESEND_API_KEYDeploy, then create the webhook (the URL must be public):
bun run deployIn Resend → Webhooks add a webhook pointing to
https://<your-worker-url>/api/webhooks/resendwith the eventsemail.received,email.sent,email.delivered,email.bounced,email.complained,email.delivery_delayed,email.failed.Save the signing secret (shown once) and redeploy:
bunx wrangler secret put RESEND_WEBHOOK_SECRET bun run deploy
While testing, a DMARC record on _dmarc is recommended:
v=DMARC1; p=none; rua=mailto:you@yourdomain.com; pct=100; adkim=s; aspf=s
(tighten to p=quarantine later).
Track B — Cloudflare Email Service
The zone must use Cloudflare DNS.
Onboard the domain for both Email Sending and Email Routing in the dashboard, or with Wrangler 4.123+:
bunx wrangler email sending enable yourdomain.com bunx wrangler email routing enable yourdomain.comRoute inbound mail to the Worker. In the Email Routing dashboard, enable Catch-all with the action Send to a Worker → this app. The catch-all is what lets users create arbitrary addresses in Settings. (This step is dashboard-only — the CLI can't set a Worker as the catch-all action.)
Configure the Worker in
wrangler.jsoncand deploy:"vars": { "EMAIL_PROVIDER": "cloudflare", "CLOUDFLARE_MAIL_DOMAINS": "yourdomain.com" // comma-separate multiple domains }bun run deploy
Inbound mail only works on a deployed Worker (or bun run preview) —
vite dev never runs the email() handler.
First run
- Open the deployed URL.
- Visit
/setup— pick a domain and create the admin account (name, address, password). That address is both the inbox and the login. - Later users claim addresses through
/onboarding.
Send yourself a message from another account — it should land within seconds.
Several accounts in one browser
If you have access to more than one mailbox on the same instance, use Add account in the account menu to sign in to another one without signing out. The menu then lists every signed-in account; pick one to switch (up to 5). Log out leaves only the active account and drops you into the next one; Log out of all accounts ends every session. Each account keeps its own session, so revoking one from Settings → Devices does not affect the others.
Desktop notifications (optional)
Quickinbox can push-notify users about new mail even with no tab open:
bunx web-push generate-vapid-keys
bunx wrangler secret put VAPID_PUBLIC_KEY
bunx wrangler secret put VAPID_PRIVATE_KEY
bunx wrangler secret put VAPID_SUBJECT # e.g. mailto:admin@example.com
bun run db:migrate:remote
bun run deploy
Users opt in under Settings → Desktop notifications. Don't rotate the key pair after users subscribe, or they'll have to re-enable.
Telegram notifications (optional)
Every inbound message can also ping a Telegram chat — useful for a mailbox you watch from your phone without installing anything:
bunx wrangler secret put TELEGRAM_BOT_TOKEN # from @BotFather
bunx wrangler secret put TELEGRAM_CHAT_ID # from @userinfobot; negative for groups
bun run deploy
If the chat is a forum supergroup, add TELEGRAM_THREAD_ID for the topic to
post into — without it Telegram puts the message in General. Add APP_URL to
vars in wrangler.jsonc to link your install from each notification. Both secrets are required — leave either unset and notifications
stay off. This works on both provider tracks, and mail that matched no mailbox
is announced too, so a missing route is visible instead of silent.
Each message arrives as a single rich message — subject, sender, the body in an expandable quote, every attachment inline with its size, and a link straight to the conversation. That needs Bot API 10.1; against an older API the call fails and the notification falls back to a text card followed by the files.
Delivery is fire-and-forget: a Telegram outage is logged and ignored rather than failing the inbound handler, which the provider would then retry.
Inbox tabs (optional)
Inbound mail can be sorted into Gmail-style tabs — Primary, Social, Promotions,
Updates, Forums — with spam in its own mailbox. The Deploy to Cloudflare button
asks for TYPESAFE_API_KEY; bun run setup prompts for the same key (or take
--typesafe-api-key). To set it later:
bunx wrangler secret put TYPESAFE_API_KEY
bun run deploy
Without the key, everything lands in Primary. Users can still move conversations between tabs, report spam, and create custom labels in Settings. Classification errors also fail open into Primary so mail is never hidden.
Mail that arrived before the key was set stays in Primary until the owner runs Classify under Settings → Labels → Inbox tabs. The page updates after every message; notifications are not sent for that backfill.
Promotions and Social do not send push/Telegram notifications. High-confidence spam is filed silently.
Development
cp .dev.vars.example .dev.vars # fill in the provider you're using
bun install
bun run db:migrate:local
bun run dev
| Command | Purpose |
|---|---|
bun run dev |
Vite dev server (D1/R2 via platformProxy) |
bun run preview |
Production build + wrangler dev (Cloudflare inbound) |
bun run check |
svelte-check |
bun run test |
Unit tests |
bun run deploy |
Build, wrap the Worker with email(), deploy |
Testing inbound with Resend: webhooks can't reach localhost, so tunnel it
(cloudflared tunnel --url http://localhost:5173) and point a throwaway
webhook at the tunnel — never repoint production.
Testing inbound with Cloudflare Email: use bun run preview or a deploy.
Forgot the admin password:
bun scripts/reset-admin-password.mjs you@example.com newpassword --local
API access
Any user can mint a long-lived API key under Settings → API keys and use it as a bearer token:
curl https://your-worker/api/mail \
-H "Authorization: Bearer qi_live_..." \
-H "Content-Type: application/json" \
-d '{"to": "you@example.com", "subject": "hello", "text": "hi"}'
GET /api/mail?view=inbox lists conversations. Keys are scoped (mail:read,
mail:send, admin) and only the SHA-256 hash is stored — the raw value is
shown once. Revoking a key takes effect immediately. New keys start with
qi_live_; existing qm_live_ keys keep working after you pull this update.
MCP (hosted, with OAuth)
Every instance is a remote MCP server. Add its URL to Claude, Cursor, ChatGPT, or any client that speaks Streamable HTTP, and the client walks you through a sign-in in the browser — no API key to paste:
https://mail.example.com/mcp
The consent screen shows which app is asking (with its real logo), exactly what it will be allowed to do, and which of your signed-in accounts it will act as. Approve, and the client receives an OAuth token scoped to that account. Disconnect any app later from Settings › Connections › AI assistants (MCP); its tokens stop working immediately.
Tools: whoami, list_threads, search_mail, get_thread, list_attachments
(scope mail:read), send_message, reply, update_thread (scope mail:send).
A client that asks for only mail:read never sees the send tools.
Under the hood this is a standard OAuth 2.1 authorization server (RFC 8414 and
RFC 9728 discovery, RFC 7591 dynamic registration, PKCE S256, refresh-token
rotation with reuse detection, RFC 7009 revocation); public clients only. A
qi_live_ API key also works as a bearer token on /mcp, so existing CLI
setups can point at it too.
| Endpoint | Purpose |
|---|---|
/.well-known/oauth-protected-resource/mcp |
Which server issues tokens for /mcp |
/.well-known/oauth-authorization-server |
Endpoint list, scopes, PKCE methods |
POST /oauth/register |
Dynamic client registration |
GET /oauth/authorize |
Consent screen |
POST /oauth/token |
Code exchange and refresh |
POST /oauth/revoke |
Revoke a token |
CLI and MCP (local)
curl -fsSL https://raw.githubusercontent.com/DivinPrince/quickinbox/main/scripts/install.sh | sh
quickinbox login --url https://<your-instance> --token <key from Settings>
quickinbox inbox
quickinbox send --to someone@example.com --subject "Hi" --body "Hello"
The same credentials drive a local stdio MCP server, useful when a client cannot do OAuth or you want several instances behind one server (see below):
{
"mcpServers": {
"quickinbox": {
"command": "quickinbox",
"args": ["mcp"],
"env": {
"QUICKINBOX_URL": "https://mail.example.com",
"QUICKINBOX_TOKEN": "qi_live_…"
}
}
}
}
quickinbox is the launcher from the install script (~/.local/bin/quickinbox).
quickmail is the same binary. Login once, or set QUICKINBOX_URL and
QUICKINBOX_TOKEN as above (QUICKMAIL_URL / QUICKMAIL_TOKEN still work).
Tools: list_accounts, list_threads, get_thread, search_mail,
send_message, reply, list_attachments.
Multiple accounts
If you have inboxes on several Quickinbox instances, log in to each one. Every
login is saved as an account (named after the host unless you pass --account);
the first one becomes the default.
quickinbox login --url https://mail.alter.rw --token qi_live_… --account alter
quickinbox login --url https://mail.cursorrwanda.com --token qi_live_… --account rwanda
quickinbox accounts # * alter https://mail.alter.rw
# rwanda https://mail.cursorrwanda.com
quickinbox inbox --all-accounts # every inbox in one list, tagged [alter] / [rwanda]
quickinbox search invoice --all-accounts
quickinbox read <id> --account rwanda
quickinbox accounts use rwanda # change the default
quickinbox logout --account alter # or `logout --all`
Every command takes --account <name> (-a). QUICKINBOX_ACCOUNT selects the
default; QUICKINBOX_URL + QUICKINBOX_TOKEN add an account that always wins.
The MCP server exposes all saved accounts at once. Each tool accepts an optional
account; list_threads and search_mail query every account when it is
omitted and tag each thread with its account, while get_thread, reply, and
list_attachments find the account that owns the id automatically. Use
list_accounts to see what is configured. send_message uses the default
account unless told otherwise. Config lives in
~/.config/quickinbox/config.json; an existing single-account file keeps
working and is upgraded on the next login.
Internationalization
The UI ships in English, French, Simplified Chinese, and Spanish. Language is stored
on the account (Settings → Appearance) and in a qi_locale cookie — URLs stay the
same. Email bodies are never translated.
Catalogs live in messages/. After editing messages/en.json, generate the other
locales with General Translation:
# GT_API_KEY and GT_PROJECT_ID from https://generaltranslation.com/dashboard
bun run translate
CI does the same on pushes to main (and on a manual CI workflow run). Set
repository secrets GT_API_KEY and GT_PROJECT_ID — never commit them. The
translate job opens a PR with updated catalogs.
How inbound routing works
Both providers accept every address on a connected domain. The app then routes:
- Exact match in
addresses→ that user - Else the domain's catch-all owner (admin) → that user
- Else stored as unrouted and listed in the admin view
Project structure
src/
worker.ts SvelteKit fetch + Cloudflare email() inbound
routes/ inbox, compose, drafts, settings, admin, setup
lib/
components/ sidebar, mailbox, composer, thread view
server/ providers, inbound, D1, auth
scripts/
setup.sh / setup.mjs first-run wizard
wrap-cloudflare-worker.mjs attach email() after the SvelteKit build
cli/ quickinbox CLI + MCP server
migrations/ D1 schema, applied in order
Troubleshooting
| Symptom | Fix |
|---|---|
wrangler email sending enable → 404 |
Wrangler too old — upgrade to 4.123+ |
| Mail never arrives (Resend) | dig MX yourdomain.com must point at Resend; enable receiving on the domain |
| Mail never arrives (Cloudflare) | Apex MX must be Cloudflare Routing, catch-all must target this Worker, EMAIL_PROVIDER=cloudflare, Worker must be deployed |
| Webhook 401 | RESEND_WEBHOOK_SECRET mismatch — secrets are shown once; recreate the webhook |
| Webhook 500 | bunx wrangler tail |
| Attachments missing | R2 bucket must exist and match bucket_name in wrangler.jsonc |
database_id errors on deploy |
Paste the id from wrangler d1 create into wrangler.jsonc |
| Setup shows no Cloudflare domains | Set CLOUDFLARE_MAIL_DOMAINS and EMAIL_PROVIDER=cloudflare, restart the dev server |
License
MIT — use it, modify it, ship it, commercially or not. Copyright © 2026 Irasubiza Divin Prince.
Frequently asked about Quickinbox
What is Quickinbox?+
Quickinbox is a self-hosted Fastmail/Gmail alternative built on the Cloudflare developer platform. Self-hosted own-domain inboxes with browser reading and sending
What does Quickinbox replace?+
Quickinbox is listed as an alternative to Fastmail, Gmail. Compare the features and tradeoffs before migrating.
What Cloudflare primitives does Quickinbox use?+
Quickinbox is built on D1, R2, Workers.
How much does Quickinbox cost to run?+
Choose the documented Cloudflare Email Service path: Workers Paid starts at $5 USD/account/month, with 3,000 sends/month then $0.35/1,000 plus storage/compute overages. The alternative Resend path has its own plan/limits. An owned sending domain and provider onboarding are required. Do not infer unlimited free sending from the Workers deployment. Enable actual sending entitlement and domain DNS, and measure storage/request workload. Optional TypeSafe classification and Telegram notifications are external services with separate costs/credentials; they are not prerequisites for the core inbox. Source and configuration review establishes a deployment path and conditional costs; selected local inbox workflows were executed, but production provider setup and workload limits remain untested. Check current Cloudflare pricing before deploying.
Is Quickinbox open source?+
The upstream repository declares the MIT license. Read its terms at https://raw.githubusercontent.com/DivinPrince/quickinbox/2d2c7d62f250f122ad73296c840d60e775a9a599/LICENSE.md. Source code and contributor credit are available at https://github.com/DivinPrince/quickinbox.
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.



Discussion · 0
sign in to comment →