Repository navigation
feat: TempMail-CFW modular rebuild (Workers + D1/R2 + panel) - #1
Merged
Merged
Conversation
added 16 commits
November 6, 2026 13:44
Phase 1 deliverables: PRODUCT.md, AGENTS.md, DESIGN.md, docs/REFERENCE-MAP.md, docs/LICENSING.md, docs/ROADMAP.md. No runtime code changes.
Phase 2 design documents: ARCHITECTURE, API, API-COMPATIBILITY, SECURITY, DATA-RETENTION, D1-SCHEMA draft, and initial OpenAPI. No runtime implementation.
Phase 3: project structure, config validation, error handling, request IDs, storage accessors, health routes, D1 migration, Vitest tests, Prettier, and GitHub Actions CI skeleton. Legacy inbox routes return SERVICE_UNAVAILABLE until Phase 4.
Phase 4: D1-backed inbox create/check/read/delete, token hashing, legacy /email routes with original response shapes, and /api/v1/inboxes. Unit tests with mocked repository layer.
Phase 5: PostalMime parsing, bounded stream read, HTML sanitize, D1 message metadata, R2 for HTML/raw/attachments, dedup by Message-ID, mailbox quotas, v1 message and attachment download routes.
Phase 6: PBKDF2-backed admin password verify, HttpOnly __Host-session, login rate limits, inbox create rate limits, CSRF header for admin mutations, cron cleanup of expired inboxes/sessions and R2 objects.
Phase 7: admin login, inbox dashboard, message preview with sandboxed HTML iframe, theme system (system/light/dark), settings with cleanup, API client with CSRF header, and WEB.md for local/production build.
Phase 9: full inbox purge on delete, security response headers, legacy API contract tests, and SECURITY-AUDIT notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Professional rebuild of TempMail-CFW on Cloudflare Workers: modular TypeScript/Hono architecture, D1 + R2 + KV, legacy API compatibility, email ingestion, admin sessions, Liquid Glass web panel, OTP extraction, optional webhooks, and scheduled cleanup.
This is a draft PR. Do not merge or deploy without explicit owner approval.
Phases completed (0–10)
Test plan
docs/RELEASE-CHECKLIST.md)webbuild + assets if serving the panelLinks
docs/RELEASE-CHECKLIST.mddocs/SECURITY-AUDIT.mddocs/README.fa.mdCHANGELOG.md