hirotomasato/agenmail ? reverse-engineered prompt

Reverse engineered prompt

Build me a Cloudflare Worker app for agents that can receive email on my own domains and turn every message into clean JSON.

I want a private admin dashboard where I can add domains, create mailboxes, and see incoming messages in a simple iPhone style inbox with dark mode, swipe actions, and live updates. Each mailbox should have two ways to access it, an API key for automation and a short human friendly link that opens the mailbox page. When mail comes in, store the raw message and attachments, then parse out the text, HTML, headers, delivery checks, OTP codes, intent, and any action links.

Please make it work with Cloudflare Email Routing, D1, and R2, and include a basic login for the operator plus an API under /api/v1. Default to receive only, and keep public mailbox creation off unless I enable it. If you need current Cloudflare or Worker docs while building, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab