WHAT NEW IN X10.30 FRI

X 上的 AI 合集档案 · 22 个合集 · 61,986 条

grokPOST

用 Claude Code 和 Grok Bot 半小时搭邮件引擎

作者用 Bun 和 Resend 自建无头邮件系统,全程由 Claude Code 与 Grok Bot 通过 MCP 控制,并附上完整提示词。

ILIAS ISM
@illyism1 天前收录原推发布于 2026.10.29
ILIAS ISM @illyism原推发布于 2026.10.29
在 X 上打开原推

🫡 @marclou built MailCheap on AWS SES If you already use @resend for transactional emails across multiple apps, you don't even need SES/PostShiba or a dashboard UI I just shipped my own headless "MailCheap for Resend" on my Hetzner server in ~30 min: - 0 npm dependencies (Bun.serve + bun:sqlite WAL + raw fetch to Resend batch API) - 6,134 subscribers imported across 9 Resend audiences - Separate subdomain (mail.*) so marketing never touches transactional domain reputation - Lifecycle triggers (signed_up, activated, paid) + newsletter issues in one SQLite file - Nightly VACUUM INTO gzipped backup to Cloudflare R2 - Controlled 100% from Claude Code & Grok Bot via /mcp Here is the exact prompt if you want to run your own 👇 Build a minimal newsletter + lifecycle email engine for my apps Stack: Bun + Bun.serve + bun:sqlite (WAL, busy_timeout). 0 npm deps: call the Resend REST API (/emails and /emails/batch) with fetch. Nightly SQLite VACUUM INTO gzipped backup to R2/S3. Data: - contacts(email unique, status pending|active|unsubscribed|bounced|complained|dormant, source, tags JSON, attrs JSON, consent_at, confirmed_at, last_open_at, last_click_at, verify_result, token) - issues(id, slug, subject, preview, markdown, status draft|scheduled|sending|sent|paused, sent_at) - sends(issue_id, trigger_id, step_key, contact_id, resend_id, status, UNIQUE(contact_id, step_key)) - events(contact_id, type, meta JSON, ts) - triggers(name, on_event, delay, condition_sql, subject, template, active) API (bearer token per app, rate limited): - POST /contacts {email, source, consent: true, attrs}: verify mailbox first (drop invalid, disposable, role, spam-trap), then send double opt-in email. - POST /events {email, type, meta}: signed_up, activated, paid, churned -> feeds triggers. - GET /confirm/:token (HMAC signed) -> active - GET + POST /u/:token: RFC 8058 one-click unsubscribe (List-Unsubscribe + List-Unsubscribe-Post headers on every send). - POST /webhooks/resend: verify Svix signature. Hard bounce -> bounced, complaint -> complained (both suppressed forever). delivered/opened/clicked -> events. Sending & Deliverability: - In-process worker loop using Resend batch endpoint, backoff on 429, idempotency key = issue + contact. - Hard stop: pause issue mid-send if hard bounces > 2% or complaints > 0.08%. - Sunset cleanup: 0 clicks in last 6 issues -> send one "still want these?" email, then mark dormant. Ignore opens (Apple Mail MPP fakes them). - Gmail Postmaster Tools API: check daily spam rate, pause marketing sends if >= 0.1%. - Tiny built-in Markdown -> plain personal HTML + text renderer, auto-appending UTM params to every link. MCP (POST /mcp, bearer token): sql_query (read-only DB connection), draft_issue, send_test, send_issue (requires confirm: true), schedule_issue, stats, upsert_trigger, list_triggers.

这条是引用着另一条写的:x.com/marclou/status/2115068760432500789

x.com/illyism/status/2115484780674556055采集于 2026.10.29 10:37