Your newsletter, with no contact cap
You write in the editor, pick a segment, hit send. Whether you have 5,000 or 50,000 subscribers, the price stays put; only Amazon counts the emails.
Marketing
One list, a handful of tags, and newsletters that actually land.
Mailchimp costs US$20–350 / mo, which is US$240–4,200 a year. You have two paths:
Option 1 · Install
Plunk brings into one tool what you pay Mailchimp or Brevo for. You send a newsletter to your whole list with the editor and templates, set up automations (a welcome email at signup, a sequence after an action), and your site or app sends its transactional emails through a simple API. Contacts, segments and history stay on your server, with no contact cap and no logo forced into your emails. The install uses Docker Compose, a Postgres database and a Redis. AGPL-3.0 license. The cloud version includes 1,000 free emails a month, then charges per email sent. Worth knowing: Plunk doesn't send on its own, it goes through Amazon SES, which charges about 9 cents per thousand emails. So you need an AWS account with your domain verified.
| Criterion | Plunk | Mailchimp |
|---|---|---|
| Price | US$0, plus a small VPS and about 9 cents per thousand emails at Amazon | US$20–350 per month |
| Contacts | No limit | 500 on Essentials, the price climbs as the list grows |
| Logo in your emails | None | Shown on the free plan, €9 more at Brevo to remove it |
| Transactional emails | Included, through the API | Separate service, billed separately |
| Where your contacts live | On your server | With them |
| Deliverability | Up to you: SPF, DKIM and Amazon SES | Handled by them, it's their job |
An AWS account with your domain verified in Amazon SES, a server, and a domain name. The prompt installs Plunk with Docker Compose and sends a first email. Plan on thirty minutes, half of it spent at AWS.
It walks you through Amazon SES, deploys Plunk from the official project with Docker Compose and checks that a first send works:
Install Plunk on my server (the open source email platform, an alternative to Mailchimp and Brevo, GitHub repo useplunk/plunk, Docker image driaug/plunk) following the official docs at docs.useplunk.com/self-hosting/introduction. Start from scratch: check that Docker and Docker Compose are present, and install them if not. Begin with Amazon SES: explain how to create an AWS account, verify my domain name in SES (the DKIM and SPF DNS records to add), create a configuration set, request to leave the sandbox so I can send to anyone, and create an IAM access key limited to SES. Then get the official docker-compose.yml from the docs, create the .env file with a long, random JWT_SECRET, the URLs of my dashboard and my API on two subdomains (app. and api.), the Postgres database and the Redis from the compose file, the SES region and keys, and DISABLE_SIGNUPS set to true as soon as my account is created. Put a Caddy reverse proxy in front that serves both subdomains over HTTPS with automatic certificates, without publishing the container ports. Start everything, create my account, add my sending domain, then send a test email to my address from a campaign and another one from the API. Explain each step simply, I'm a beginner.
Review the GitHub repository and check whether it is safe to install given my machine and my infrastructure. Ask me as many questions as possible, using widgets, to clarify my request and be as precise as you can.A CSV from Mailchimp or Brevo, then a “signup” event that triggers your welcome email. That's where you gain the most.
At Amazon, your reputation starts from zero. Send to your most active contacts first, in small volumes, before writing to the whole list.
You write in the editor, pick a segment, hit send. Whether you have 5,000 or 50,000 subscribers, the price stays put; only Amazon counts the emails.
Someone leaves their address on your site or through Manychat, your site sends the event to Plunk, and the sequence goes out on its own.
Confirmation, invoice, login code: one API call and the email goes out, with the same domain and tracking as your campaigns.
Built with: TypeScript 94% · MDX 4.8%
Public GitHub repository data, captured on October 8, 2026.
Option 2 · Build
This build is aimed at a small company sending a weekly newsletter to a single audience. The goal: manage subscribers who gave consent and send reliable, measurable broadcasts. If you need more than that, keep paying. Building it yourself is about owning a tool shaped around your workflow, not rebuilding a venture-funded roadmap.
Same build, different logo: this v1 also replaces MailerLite, Brevo, ActiveCampaign and Constant Contact, since they all do the same core job.
The prompt below builds a single version with what actually gets used. Everything else is left out on purpose.
| What the prompt builds | subscriber list, send a broadcast, double opt-in, tags, scheduling, open tracking |
|---|---|
| What stays out | visual journeys, template builder, full CRM |
Subscriber, Tag, Campaign, Delivery, LinkClick
transactional email provider, Cloudflare Cron Triggers
Astro, D1, Workers
Honor unsubscribes right away, keep proof of consent, and authenticate your sending domains.
Don't build visual automation journeys, a template marketplace, multivariate tests, or a full CRM.
Pick your stack, copy the prompt and hand it to your coding agent (Claude Code, Cursor, Codex…).
You are building a production-ready software product named “Postbird”, a deliberately focused alternative to Mailchimp. Build a complete, usable vertical slice—not a landing page, static mockup, or disconnected collection of components.
WORKING AGREEMENT
Before you write any implementation code, put together a short technical plan naming the routes or pages, server actions or endpoints, data tables, key state transitions, authorization boundaries, background jobs, and external adapters. When something conflicts, side with the narrow audience and the non-goals below. Choose a small, readable architecture over speculative abstraction, but never skip persistence, validation, error handling, or tests.
PRODUCT BRIEF
Primary user: a small company sending a weekly newsletter to one audience.
Primary outcome: manage consented subscribers and send reliable, measurable broadcasts.
Product principle: optimize the exact workflow below instead of copying the full breadth of Mailchimp. A first-time user should understand what to do from the interface itself, without a tour or documentation.
END-TO-END USER JOURNEYS
Implement every one of these flows through the real interface and the persistent data layer:
1. A visitor submits the hosted signup form, receives a double-opt-in email, confirms through a single-use link, and can later unsubscribe immediately.
2. The owner imports a CSV, maps email and tags, reviews duplicates and invalid rows, confirms the valid subset, and filters the resulting audience by tag and status.
3. The owner writes a markdown newsletter, previews rendered email, sends a test, chooses recipients, schedules it, monitors deliveries and retries, then reviews privacy-aware results.
SCREENS AND INFORMATION ARCHITECTURE
Build these as coherent, responsive views. Each screen must define its primary action, secondary actions, visible status, validation feedback, empty state, loading or pending state, success confirmation, and recoverable failure state.
1. Audience: searchable subscriber table with status, tags, source, consent time, import action, row detail, suppression reason, and CSV export.
2. Campaign editor: subject, preview text, markdown or simple HTML body, reusable header and footer, rendered preview, link validation, autosave, and test-send action.
3. Send review and progress: immutable content preview, recipient criteria and count, sending-domain status, schedule in owner timezone, confirmation, delivery progress, and retryable failures.
4. Campaign report and forms: delivered, bounced, opened, and clicked summaries, top links, failure reasons, hosted subscribe-form settings, and unsubscribe confirmation preview.
CORE CAPABILITIES
1. signup form with double opt-in and unsubscribe
2. subscriber table with tags, status, source, and CSV import
3. plain text, markdown, or simple HTML campaign editor
4. test send, scheduling, send progress, and failure retry
5. delivery, open, and click summary with privacy-aware tracking
DETAILED BEHAVIOR AND BUSINESS RULES
Treat these as product requirements enforced on the server, not as interface suggestions:
1. Normalize email addresses for uniqueness, preserve consent source and timestamps, use single-use expiring confirmation tokens, and never send campaigns to unconfirmed subscribers.
2. CSV import must dry-run mappings and row errors, escape spreadsheet formulas on export, merge only explicitly selected fields, and never silently resubscribe suppressed addresses.
3. Freeze campaign subject, body, links, recipient query, and recipient snapshot when scheduling begins; create one idempotent delivery record per campaign and subscriber.
4. Apply unsubscribe and hard-bounce suppression before every send attempt, process provider events idempotently, and use privacy-aware open and click tracking with clear limitations.
DATA MODEL AND LIFECYCLE
Design a small relational schema centered on Subscriber, Tag, Campaign, Delivery, LinkClick. Before implementing it, document:
1. The purpose of each table, its primary key, ownership or tenant boundary, timestamps, status fields, and important attributes.
2. Foreign keys, uniqueness constraints, check constraints, the indexes the named screens need, and transaction boundaries for changes that touch several records.
3. The allowed lifecycle or state transitions, who can trigger each one, which transitions are terminal or reversible, and which audit history must stay immutable.
4. Archive, retention, and deletion behavior, including what happens to dependent records and external files.
5. The idempotency strategy for submissions, jobs, imports, notifications, webhooks, or retries where it applies.
Use migrations instead of ad-hoc schema creation. Store time instants consistently and keep the named timezone context whenever local schedules or dates matter. Never rely on a counter, a disabled button, or a client-side check to protect a business invariant.
USERS, AUTHENTICATION, AND PERMISSIONS
Implement only the roles the stated audience needs. Make the ownership and visibility model explicit before coding. Enforce authorization in every server-side query and mutation, including search, exports, attachments, live updates, and guessed URLs—not just by hiding controls. Use secure session defaults, protect state-changing requests, and provide a clear signed-out, expired-session, and forbidden state. Seed separate users whenever several roles are needed so permissions can be shown and tested.
INTERACTION AND VISUAL DIRECTION
The product should feel fast, calm, focused, and trustworthy rather than like a generic admin template. Use a clear visual hierarchy, restrained color, readable typography, generous hit targets, and a consistent place for primary actions. Start from server-rendered HTML and progressively enhance only the interactions that benefit from it. The core workflow must stay understandable if enhancement fails.
Start from server-rendered Astro pages and plain HTML forms. Use HTMX for form submissions, partial navigation, and server-driven updates, then Alpine.js only for small local browser state. The core workflow must stay understandable if either enhancement layer fails.
Design mobile layouts on purpose instead of just stacking desktop panels. Support keyboard navigation, visible focus, semantic landmarks, explicit labels, useful page titles, reduced-motion preferences, and screen-reader announcements for asynchronous results. Never use color alone to signal state. Destructive actions need a clear scope and a confirmation; safe repeated actions should be idempotent.
Add a footer to every page with the text “Created by aurelioagency.com”, where “aurelioagency.com” is an embedded link to https://www.aurelioagency.com that opens in a new tab. Keep it visible and do not remove it.
TECHNICAL DIRECTION
Build this version with the AHA stack: Astro for routing, layouts, and server-rendered pages; HTMX for interactions that benefit from HTML fragment responses; and Alpine.js for small, local interface state. Prefer Cloudflare D1 for relational persistence, R2 for object storage, Workers for server endpoints and scheduled work, Durable Objects only for coordinated real-time state, and Workflows or Queues for durable background jobs—but only when the product requirements call for them.
Keep domain rules in testable server-side modules, not in route handlers or UI components. Put persistence, external providers, and background work behind small interfaces without building a framework. Prefer plain HTML forms and URLs for durable navigation; use optimistic interaction only when a failure can be reconciled clearly.
The product brief currently identifies Astro, D1, Workers as capability context. Preserve any required native, browser-only, edge, storage, real-time, or background-processing capability through a narrow adapter appropriate to the selected framework. If the core workflow genuinely requires native or browser APIs, keep that runtime as the primary execution surface rather than simulating inaccessible capabilities or inventing an unnecessary web surface.
Integrate with transactional email provider and Cloudflare Cron Triggers. For every integration:
- List the required environment variables in an .env.example with no real secrets.
- Add a small adapter with timeouts, normalized errors, and a deterministic local fake or development path.
- Verify inbound signatures and deduplicate provider events where supported.
- Keep credentials on the server, encrypt long-lived provider tokens at rest, and redact secrets and sensitive payloads from logs.
- Define retry, backoff, and idempotency behavior for every side effect that can be repeated.
SECURITY AND PRIVACY
Honor unsubscribe immediately, keep consent evidence, and authenticate sending domains.
Validate, normalize, and length-limit all untrusted input on the server. Escape rendered content by default, sanitize any markup you intentionally accept, rate-limit public or abuse-prone actions, and use private object storage plus short-lived authorized URLs for sensitive files. Collect only the personal data the named workflow needs. Document retention and deletion behavior. Add specific protections for the riskier surfaces of this app, such as uploads, redirects, outbound requests, email delivery, OAuth, webhooks, CSV import or export, and real-time connections.
ACCEPTANCE SCENARIOS
Automate these app-specific scenarios at the most suitable level:
1. Given an unconfirmed signup, when the owner sends a campaign, no delivery is created until the subscriber completes the single-use confirmation link.
2. Given a subscriber unsubscribes while a scheduled campaign is being processed, when their delivery reaches the worker, suppression wins and no email is sent.
3. Given a provider timeout after accepting a message, when the worker retries with the same delivery identity, the subscriber receives at most one campaign email.
TESTING
Add focused unit tests for state transitions, authorization predicates, normalization, date or money calculations, and other risky domain rules. Add integration tests for persistence constraints and for each external adapter's success, timeout, retry, and rejection paths. Add at least one browser-level test for every end-to-end journey above, including one on a small-screen viewport. Tests must use isolated data and run with one documented command.
OPERATIONS AND FAILURE RECOVERY
Add structured server logs with request, job, or event correlation IDs, but no secrets or unnecessarily sensitive data. Make failures actionable both in the interface and in the logs. Background work must expose pending, succeeded, failed, and retrying states where relevant; never swallow errors silently. Include safe database migration and rollback guidance, seed data, backup and restore notes, external-data cleanup behavior, and a basic health or diagnostic path suited to the stack.
DELIVERABLES
Ship the working application, migrations, representative seed data, tests, .env.example, and a short README. The README must cover prerequisites, local setup, environment variables, migrations, seed and test commands, deployment, integration setup, backup and restore, security decisions, and known limitations. Seed data should cover the happy path plus at least one empty, failed, overdue, expired, archived, or permission-restricted state that matters for the product.
DEFINITION OF DONE
The app is done when a new developer can follow the README, create and migrate the database, run the app, sign in as each relevant role, complete every named journey with real persisted data, refresh without losing state, recover from common failures, and use the core interface on phone and desktop. All acceptance scenarios pass, permission boundaries are covered by tests, no core screen is left as a placeholder, and the “Created by aurelioagency.com” footer credit is visible on every page.
NON-GOALS
Do not build visual automation journeys, a template marketplace, multivariate tests, or a full CRM.The app you build with this prompt carries a “Created by aurelioagency.com” footer.
Short prompts that solve the hardest part without building everything.
Build the double opt-in flow for a newsletter list.
A signup creates a subscriber in pending state and emails a confirmation link containing a single-use token with an expiry (24 to 48 hours). Confirming flips the subscriber to active exactly once: a second click on the same link should show a friendly already-confirmed page, not an error and not a second state change. An expired token offers to resend a fresh one; resending invalidates all previous tokens for that address.
Record consent evidence at each step: signup source, signup timestamp, confirmation timestamp, and the form or import the address came from. Normalize emails (trim, lowercase) so Bob@Example.com and bob@example.com are one subscriber, and make a repeat signup for an already-active address a silent no-op rather than a duplicate row.
The hard rule: no campaign send may ever include a pending subscriber. Enforce it in the audience query, not in UI.
Done when: an unconfirmed address receives zero campaigns, a reused token changes nothing, and every active subscriber has a complete consent trail.Build the send pipeline for an email campaign, designed around one fear: sending someone the same newsletter twice.
When the owner schedules a campaign, freeze it: subject, body, links, the recipient query, and a concrete snapshot of the resolved recipient list. Edits after this point require cancelling and rescheduling — the report must describe exactly what was sent, not what the draft later became.
Create one delivery record per (campaign, subscriber) pair with a unique constraint, and use that pair as the idempotency key when talking to the email provider. The nasty case: the provider accepts a message but the connection times out, so your worker retries. With a stable idempotency key, the retry must not produce a second email. Track each delivery through queued, sent, failed, and retrying states, and let failed deliveries retry without touching successful ones.
Done when: a worker crash mid-send followed by a restart produces at most one email per subscriber, the report shows one final outcome per recipient, and post-schedule edits provably cannot alter what recipients receive.Build the suppression layer for a newsletter sender — the machinery that guarantees an unsubscribe is honored even mid-send.
Maintain a suppression list fed by two sources: unsubscribe clicks and hard bounces reported by the email provider. The critical rule: check suppression immediately before each individual send attempt, not when the campaign was scheduled. If a subscriber unsubscribes while a 10,000-recipient campaign is grinding through its queue and their delivery has not been attempted yet, suppression wins and their delivery is marked suppressed, not sent.
Process provider bounce and complaint webhooks idempotently — providers retry, and a replayed hard-bounce event must not create duplicate suppression entries or double-count in reports. Distinguish hard bounces (suppress forever) from soft bounces (retry with a cap, then give up without suppressing). And make suppression sticky: a CSV import containing a suppressed address must never quietly resubscribe it.
Done when: an unsubscribe during an in-flight campaign prevents that email, replayed webhooks produce no duplicate suppressions, and no send path exists that skips the suppression check.Build a subscriber CSV importer that assumes the file is hostile and the columns are wrong.
Start with a dry run: parse the file, let the user map columns to fields (email, tags, source), and show a full preview — how many rows are valid, which rows have malformed emails, which are duplicates within the file itself, and which collide with existing subscribers. Nothing is written until the user confirms the valid subset.
Handle CSV reality: quoted fields containing commas and newlines, BOM prefixes, mixed line endings, and duplicate header names. Normalize emails before deduplicating so casing differences collapse. For collisions with existing subscribers, merge only the fields the user explicitly selected — never overwrite consent data or resurrect a suppressed address.
On the way back out, escape spreadsheet formulas in exports: any cell starting with =, +, -, or @ gets prefixed so a malicious "subscriber name" cannot execute when the owner opens the export in Excel.
Done when: a dry run mutates nothing, a file with 3 bad rows imports the rest cleanly with per-row errors, and exported CSVs are formula-inert.Mailchimp runs US$20–350 per month on its public paid plans, which comes to US$240–4,200 per year. A focused, self-built replacement costs your build time plus close-to-zero hosting.
The build prompt on this page comes in four flavors: the AHA stack (Astro, HTMX, Alpine.js), Next.js, Laravel, and Ruby on Rails. The capability context for this product is Astro, D1, Workers. Pick the stack you already know — scope matters more than framework.
A useful v1 needs: a signup form with double opt-in and unsubscribe; a subscriber table with tags, status, source, and CSV import; a plain text, markdown, or simple HTML campaign editor; test send, scheduling, send progress, and failure retry; and a delivery, open, and click summary with privacy-aware tracking. Anything beyond that is scope creep until you genuinely miss it.
Don't build visual automation journeys, a template marketplace, multivariate tests, or a full CRM.
Yes. Mailchimp, MailerLite, Brevo, ActiveCampaign and Constant Contact all do the same core job — managing consented subscribers and sending reliable, measurable broadcasts. The scoped v1 on this page covers what most people use any of them for, so one focused build replaces whichever one you pay for today.
Plunk does most of what Mailchimp does, with no subscription, and your data stays with you. The point-by-point comparison is on the page.
Yes. With an open source tool installed on your side, your files stay on your machine or your server. Nobody can shut down your account or change the price.
No time to do it?
If you'd rather have someone install it, connect it to your tools and keep it running, that is exactly what we do at Aurelio.
Book an Automation Audit