Marketing · Weekend build

Build your own Kit

A creator newsletter without the creator-economy cockpit. Kit charges $29–$79 per month — that’s $348–$948 a year — for something you can replace with focused software of your own. Here is the honest scope, the honest timeline, and the exact prompt to hand your coding agent.

from 10 hoursCreator-sized is buildable

Who this replacement is for

This build targets one creator publishing emails and a public archive. The goal: write once, email subscribers, and publish the same issue on the web. If you need more than that, keep paying — the point of building it yourself is owning a tool shaped exactly like your workflow, not re-implementing a venture-funded roadmap.

Same build, different logo: this v1 also replaces beehiiv and Buttondown — they all solve the same core job.

How long it actually takes

One number would be a lie, so here are three. Each tier is a real, usable product — pick the one that matches how much of Kit you actually use.

EstimateWhat you get
10 hourssubscribers, markdown broadcasts
4 dayswelcome sequence, tags, public archive, stats
1 month+paid newsletters, recommendations network, visual automations — the part you should probably skip

What a minimal Kit alternative needs

Data model

Subscriber, Tag, Broadcast, SequenceStep, Delivery

Integrations

email provider, RSS feed

Capability context

Astro, D1, Workers

The guardrail

Implement verified unsubscribe, bounce handling, and consent logging before sending.

Deliberate non-goals

Do not build paid recommendations, commerce, visual automation, or multiple publications.

The complete build prompt

Copy this into your coding agent of choice. It is scoped for a useful v1 — journeys, screens, business rules, data model, security, tests, and acceptance scenarios included. Pick your stack:

You are building a production-ready software product named “Letterkit”, a deliberately focused alternative to Kit. Build a complete, usable vertical slice—not a landing page, static mockup, or disconnected collection of components.

WORKING AGREEMENT
Before writing implementation code, produce a short technical plan that names the routes or pages, server actions or endpoints, data tables, important state transitions, authorization boundaries, background jobs, and external adapters. Resolve contradictions in favor of the narrow audience and non-goals below. Prefer a small, legible architecture over speculative abstraction, but do not omit persistence, validation, error handling, or tests.

PRODUCT BRIEF
Primary user: one creator publishing emails and a public archive.
Primary outcome: write once, email subscribers, and publish the same issue on the web.
Product principle: optimize the exact workflow below instead of copying the full breadth of Kit. A first-time user should understand what to do from the interface itself, without a tour or documentation.

END-TO-END USER JOURNEYS
Implement all of these flows through the real interface and persistent data layer:
1. The creator configures publication name, sender identity, reusable header and footer, imports consented subscribers with tags, and verifies the sending domain before publishing.
2. The creator writes an issue in markdown, previews web and email versions, sends a test, schedules the broadcast, and sees the identical issue appear in the public archive when sending begins.
3. A reader subscribes through the public form, confirms double opt-in, receives each welcome-sequence message once, and can unsubscribe from broadcasts and sequence mail immediately.

SCREENS AND INFORMATION ARCHITECTURE
Build these as coherent responsive views. Each screen must specify its primary action, secondary actions, visible status, validation feedback, empty state, loading or pending state, success confirmation, and recoverable failure state.
1. Publication dashboard: subscriber growth, next scheduled broadcast, recent delivery health, archive status, sending-domain warnings, and create-broadcast action.
2. Broadcast editor: subject, preview text, markdown body, reusable chrome preview, tags to include or exclude, test recipient, web metadata, and send-now or schedule controls.
3. Subscribers: searchable status and tag table, subscriber detail with consent source and timeline, CSV import preview, add-tag, suppress, and export actions.
4. Welcome sequence and reports: ordered steps with delay and subject, active or paused state, delivery funnel, bounces, opens, clicks, and per-link results.

CORE CAPABILITIES
1. markdown email editor with reusable header and footer
2. subscriber tags and one welcome sequence
3. scheduled broadcasts and browser preview
4. public issue archive with SEO metadata
5. subscriber growth, delivery, open, and click summaries

DETAILED BEHAVIOR AND BUSINESS RULES
Treat these as server-enforced product requirements, not interface suggestions:
1. Model subscriber status explicitly as pending, active, unsubscribed, or bounced; only active verified subscribers may enter a send audience.
2. Freeze the subject, body, recipient query, and archive content into an immutable broadcast version before the first delivery is queued.
3. Give every broadcast-recipient and sequence-step-recipient pair a stable idempotency key so worker retries can never send the same email twice.
4. Process unsubscribe and hard-bounce events immediately, retain consent evidence, authenticate provider webhooks, and exclude suppressed addresses from every future send.

DATA MODEL AND LIFECYCLE
Design a small relational schema centered on Subscriber, Tag, Broadcast, SequenceStep, Delivery. Before implementing it, document:
1. Each table’s purpose, primary key, ownership or tenant boundary, timestamps, status fields, and important attributes.
2. Foreign keys, uniqueness constraints, check constraints, indexes needed by the named screens, and transaction boundaries for multi-record changes.
3. The allowed lifecycle or state transitions, who may trigger each transition, which transitions are terminal or reversible, and what audit history must remain immutable.
4. Archive, retention, and deletion behavior, including what happens to dependent records and external files.
5. Idempotency strategy for submissions, jobs, imports, notifications, webhooks, or retries where applicable.
Use migrations rather than ad-hoc schema creation. Store time instants consistently and retain named timezone context whenever local schedules or dates matter. Never rely on a counter, disabled button, or client-side check to preserve a business invariant.

USERS, AUTHENTICATION, AND PERMISSIONS
Implement only the roles required by the stated audience. 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 merely by hiding controls. Use secure session defaults, protect state-changing requests, and provide an understandable signed-out, expired-session, and forbidden state. Seed distinct users when multiple roles are required so permissions can be demonstrated and tested.

INTERACTION AND VISUAL DIRECTION
The product should feel fast, calm, focused, and credible rather than like a generic admin template. Use a clear visual hierarchy, restrained color, readable typography, generous hit targets, and consistent placement for primary actions. Start with server-rendered HTML and progressively enhance only the interactions that benefit from it. The core workflow must remain understandable if enhancement fails.

Start with server-rendered Astro pages and ordinary 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 remain understandable if either enhancement layer fails.

Design mobile layouts intentionally instead of simply 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 communicate state. Destructive actions require clear scope and confirmation; safe repeated actions should be idempotent.

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 instead of route handlers or UI components. Separate persistence, external providers, and background work behind small interfaces without building a framework. Prefer ordinary HTML forms and URLs for durable navigation; use optimistic interaction only when 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 email provider and RSS feed. For every integration:
- List required environment variables in an .env.example without 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 server-side, encrypt long-lived provider tokens at rest, and redact secrets and sensitive payloads from logs.
- Define retry, backoff, and idempotency behavior for any side effect that can be repeated.

SECURITY AND PRIVACY
Implement verified unsubscribe, bounce handling, and consent logging before sending.
Validate, normalize, and length-limit all untrusted input on the server. Escape rendered content by default, sanitize any intentionally accepted markup, rate-limit public or abuse-prone actions, and use private object storage plus short-lived authorized URLs for sensitive files. Collect the minimum personal data necessary for the named workflow. Document retention and deletion behavior. Add specific protections for the riskier surfaces in 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 appropriate level:
1. Given a new subscription, no newsletter or sequence email is sent until the confirmation link succeeds, after which the first welcome step is scheduled once.
2. Given a scheduled broadcast whose worker retries midway, every eligible subscriber receives at most one copy and the report shows one final delivery outcome per recipient.
3. Given a subscriber who unsubscribes between sequence steps, pending steps and scheduled broadcasts exclude that address while preserving the consent and delivery timeline.

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 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 small-screen viewport. Tests must use isolated data and run through a documented single 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 in both the interface and logs. Background work must expose pending, succeeded, failed, and retrying states where relevant; do not silently swallow errors. Include safe database migration and rollback guidance, seed data, backup and restore notes, external-data cleanup behavior, and a basic health or diagnostic path appropriate to the stack.

DELIVERABLES
Ship the working application, migrations, representative seed data, tests, .env.example, and a concise 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 exercise the happy path plus at least one empty, failed, overdue, expired, archived, or permission-restricted state relevant to the product.

DEFINITION OF DONE
The app is complete when a fresh developer can follow the README, create and migrate the database, run the app, sign in as each relevant role, complete every named journey using 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, and no core screen is left as a placeholder.

NON-GOALS
Do not build paid recommendations, commerce, visual automation, or multiple publications.

Build just one piece

Not ready to replace all of Kit? Fine. These are the peculiar sub-problems hiding inside it — the parts that are actually interesting to build. Each one is a standalone prompt, scoped to an evening, no strings attached to the full build.

The welcome sequence that never double-sendsDelayed drip steps, each delivered exactly once, even to people who leave halfway.
Build a welcome sequence engine for a newsletter: an ordered list of emails with per-step delays that every new subscriber receives once.

A subscriber enters the sequence only after confirming double opt-in — pending addresses get nothing. Schedule each step relative to the previous one (step 2 fires three days after step 1 was sent, not after signup). Give every (subscriber, step) pair a stable idempotency key so a retried worker or an overlapping cron run cannot deliver the same step twice.

Handle the exits: unsubscribing mid-sequence cancels all pending steps immediately while preserving the record of steps already sent. Pausing the whole sequence freezes progress without losing anyone's position; resuming picks up where each subscriber left off. Editing a step's content affects only future sends — subscribers past that step do not get re-sent anything.

Done when: a worker retry produces zero duplicate step emails, an unsubscribe between steps 2 and 3 stops step 3, and a subscriber who confirmed twice still enters the sequence exactly once.
Write once, render for two hostile targetsOne markdown source becomes email-safe HTML and a proper web page.
Build a dual renderer for newsletter issues: the author writes markdown once, and it ships as both an HTML email and a public archive page.

Email HTML is a hostile target: inline all styles, avoid layout constructs that Gmail and Outlook strip, rewrite relative links and images to absolute URLs, and wrap everything in the publication's reusable header and footer chrome. The web version gets the opposite treatment: clean semantic HTML, SEO metadata (title, description, canonical URL, social card tags), and an entry in the RSS feed.

The two outputs must be generated from the same frozen source. When a broadcast is scheduled, snapshot the markdown and render both versions from that snapshot — later edits to the draft must not silently change the archive page that readers were emailed a link to. Handle the markdown edge cases that break emails: raw HTML blocks, footnotes, and images without alt text.

Done when: the same issue renders correctly in a strict email client and as a web page, both share identical content from one snapshot, and the RSS feed validates.
Four states, no shortcutsA subscriber lifecycle driven by authenticated, idempotent provider webhooks.
Build the subscriber state machine for an email list: pending, active, unsubscribed, and bounced, with strict transitions.

Only pending can become active (via confirmation). Active can become unsubscribed or bounced. Nothing returns to active without a fresh confirmed opt-in — no admin shortcut, no import side door. Every send-audience query filters to active only; enforce this in one shared query helper so a future feature cannot forget.

Feed the machine from provider webhooks: delivery, bounce, and complaint events. Authenticate the webhook (signature or token) before trusting anything in it. Process events idempotently — providers retry aggressively, and the same bounce event delivered three times must produce one state change and one timeline entry. Classify bounces: hard bounces (bad address) transition to bounced immediately; soft bounces (full mailbox) increment a counter and only transition after a configured streak.

Keep a per-subscriber event timeline showing every transition with its cause and timestamp.

Done when: replayed webhooks are no-ops, a forged webhook is rejected, and there is no code path that emails a non-active subscriber.
One-click unsubscribe that actually takes one clickSigned tokens, the List-Unsubscribe header, and scoped opt-outs.
Build the unsubscribe system for a creator newsletter — the part inbox providers now grade you on.

Every outgoing email embeds an unsubscribe link containing a signed token identifying the subscriber and the sending context. Verify the signature server-side; a tampered token shows an error, never a guessed-identity unsubscribe. The landing page requires zero login and completes the opt-out on a single confirmation — and the suppression takes effect immediately, including for broadcasts already queued but not yet sent.

Add the List-Unsubscribe and List-Unsubscribe-Post headers so Gmail and Apple Mail render their native unsubscribe button, and handle the resulting one-click POST (which arrives with no user session and must succeed anyway).

Support scope: unsubscribing from the welcome sequence versus all mail are different actions, but default to the safest interpretation — when in doubt, suppress everything. Log the unsubscribe with timestamp and source (link, header, complaint) as consent evidence.

Done when: the header button works without a browser session, a queued broadcast skips the just-unsubscribed address, and forged tokens unsubscribe nobody.

Frequently asked questions

How long does it take to build your own Kit?

A basic version — subscribers, markdown broadcasts — takes about 10 hours. Roughly 4 days gets you a solid v1 with welcome sequence, tags, public archive, stats. Matching everything Kit really does (paid newsletters, recommendations network, visual automations) is closer to 1 month+, which is exactly why you should scope down instead.

How much does Kit cost if I keep subscribing?

Kit runs $29–$79 per month on public paid plans, which is $348–$948 per year. A focused self-built replacement costs your build time plus close-to-zero hosting.

What stack should I use to build a Kit alternative?

The build prompt on this page ships 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 — the scope matters more than the framework.

What features does a minimal Kit replacement need?

A useful v1 needs: markdown email editor with reusable header and footer; subscriber tags and one welcome sequence; scheduled broadcasts and browser preview; public issue archive with SEO metadata; subscriber growth, delivery, open, and click summaries. Everything else is scope creep until you personally miss it.

What should I deliberately not build?

Do not build paid recommendations, commerce, visual automation, or multiple publications.

Does this build also replace beehiiv and Buttondown?

Yes. Kit, beehiiv and Buttondown all solve the same core job — write once, email subscribers, and publish the same issue on the web. The scoped v1 on this page covers what most people use any of them for, so one focused build replaces whichever you currently pay for.

Prompt copied. Go ship it.