Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .references/deploy-v0.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Deploying v0.7.0

Checklist for shipping v0.7.0 (new pricing, dashboard overview, domain monitoring, new-account limit) to ByteSend Cloud. Do it in this order. Items marked **(if not done)** carry over from v0.5.0 and v0.6.0.

## 1. Before deploying

- [ ] **Check VAT with your accountant.** NodeByte is UK-registered, so UK customers are charged 20% VAT once you're VAT-registered (required above £90k turnover a year). EU consumers need EU VAT via the OSS scheme from the first sale, because there's no threshold for non-EU sellers of digital services. EU businesses with a VAT number are reverse-charged. US sales tax only applies once you pass a state's threshold. Stripe Tax monitors these thresholds for you.
- [ ] **Turn on Stripe Tax** (Stripe dashboard → Tax):
- Set the origin address to NodeByte's UK address.
- Set the product tax code to *Software as a service (SaaS), business use* (`txcd_10103001`).
- Add a registration for **United Kingdom**, and for **EU (OSS)** once you've registered.
- The seed creates every price (all currencies) as tax-exclusive, so VAT is added on top of $5 / $20 / $90.
- [ ] **Decide what to do about existing CAD customers.** A Stripe customer who has been billed in CAD can't be moved to a USD price. Existing subscribers keep working as they are, but if one of them changes plan, checkout or the portal will refuse. You have two options:
- add `cad` to `currencyOptions()` in `packages/lib/src/stripe/seed.ts`, with suggested amounts CA$7 / CA$28 / CA$125; or
- handle these customers by hand: cancel at period end, then resubscribe them under a new customer.

There are few of them, so doing it by hand is fine for now.
- [ ] **Check custom contracts.** `customMonthlyPriceCents` was entered in CAD but now displays with `$`. Re-enter it in USD for any team with a custom plan (Admin → Teams → team → Custom plan).

## 2. Deploy

- [ ] **Set env vars** on the web app:
- `STRIPE_AUTOMATIC_TAX=true`, only after Stripe Tax is set up. If it's on without a registration, checkout fails.
- `DISCORD_LINKED_ROLES_CLIENT_ID` and `DISCORD_LINKED_ROLES_CLIENT_SECRET` **(if not done)**. These go on the web app, not the bot.
- [ ] **Run migrations** with `pnpm db:migrate-deploy` (or `prisma migrate deploy`). Pending since v0.6.0:
- `20261020000000_add_blocklist`
- `20261020010000_new_team_ramp_and_domain_age`
- `20261020020000_usage_alerts_and_domain_health`
- `20261020030000_add_scale_plan` (adds `SCALE` to the `Plan` enum)
- [ ] **Re-seed Stripe**: run `pnpm stripe:seed:prod`.
- It archives the old products and creates Starter, Pro and Scale with USD prices plus GBP and EUR `currency_options`. Prices are tagged `metadata.pricing = 2026-10-usd`.
- It skips Lite and Lifetime.
- It reuses the existing usage meters, so overage for current subscribers keeps reporting.
- Archived products and prices keep billing existing subscriptions. Plans are resolved from `price.metadata.plan`, so nobody gets downgraded.
- Check the output for the new `STRIPE_SCALE_*` price IDs; they're stored in `AppSetting` in whichever database `DATABASE_URL` points at.
- Run it once. Recreate mode is on, so a second run archives the products the first one made.
- Webhook registration uses `NEXTAUTH_URL`. With a localhost URL it's skipped, and the existing prod endpoint is left as it is.
- [ ] Deploy the web app, and restart the worker so the domain health job (twice daily) gets scheduled.

## 3. Stripe dashboard after seeding

- [ ] **Customer portal** (live mode, Settings → Billing → Customer portal):
- Turn on **Customers can switch plans**. Remove the archived products, and add ByteSend Starter, Pro and Scale with their $ monthly price. GBP and EUR come from the same price.
- Don't add the add-ons, Lite or Lifetime.
- Set downgrades to apply at the end of the billing period, and cancellations to take effect at period end.
- The portal only swaps the monthly price. The webhook then moves the overage prices to match, so this needs the v0.7.0 web app deployed.
- [ ] Do a test checkout with a UK and an EU address, and confirm it shows £ or € and adds VAT.
- [ ] Check that one existing CAD subscriber still shows their plan on Settings → Billing.

## 4. Things that change for existing users

- **Free teams drop from 12,500 to 5,000 emails a month, and from 5,000 to 200 a day, as soon as you deploy.** Announce this first: email free teams and post in Discord, ideally a week ahead. Teams already over 5,000 this month are stopped until the month resets.
- New free teams are limited to 50 emails a day for their first 7 days. Admins can lift this per team (Admin → Teams → team → Approve sending).
- Lite and Lifetime teams keep everything. Their billing page shows a "legacy plan" note.
- Paid subscribers keep their CAD price until they change plan.

## 5. Carry-overs (if not done)

- [ ] **Discord bot env:** `EVENT_LOG_CHANNEL_ID`, `MEMBER_ROLE_ID`, `BOT_ROLE_ID`. In the Developer Portal, enable the **Server Members** intent. Give the bot **Manage Roles**, with its role placed above Members and Bots.
- [ ] **S3 uploads 403:** add a public-read bucket policy for the uploads prefix (or put CloudFront in front), and make sure `S3_REGION` matches the bucket's region.
- [ ] **SES callbacks:** in Admin → SES regions, run **Repair** on us-east-1 (event destination pointing at the `-full` topic). In ca-central-1, fix the subscription whose callback URL has a doubled path.
- [ ] **Status page:** rename the component to "US West (N. California)".
- [ ] **GitHub:** check that CODEOWNERS and branch protection on `ByteSendApp/ByteSend` use the new org's teams.

## 6. Release

- [ ] Tag `v0.7.0` from `main` after merging `develop` (see `release-playbook.md`). CHANGELOG already has the `[0.7.0]` section.
- [ ] Post the announcement: new prices, Scale plan, local currency, the free plan change and the new-account limit.
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [0.7.0] - 2026-10-19

### Added
- **Dashboard overview**: the dashboard home now opens with a getting-started checklist, sending status (and exactly why sending is limited, when it is), usage against the monthly and daily limits, 7-day bounce and complaint rates against the pause thresholds, domain health and recent emails, above the existing analytics
- **Domain DNS monitoring**: verified domains are re-checked twice a day, and if their DKIM, SPF or MAIL FROM records change, team admins are emailed (once the problem shows on two checks in a row) and again when it's fixed. The domain page shows the problem while it lasts
- **Usage alerts for paid plans**: teams on paid plans are told at 80% and 100% of the emails included in their plan, once each per month
- **Team notifications work**: Discord, Slack, Teams, Telegram and webhook providers now receive events. Previously nothing was ever sent to them. Domain verified/failed, DNS problems, usage alerts and campaign started/completed go to every provider. Per-email events (sent, delivered, bounced, complained, opened, clicked) and contact events are opt-in per provider and capped at 20 per minute per provider, so a busy team can't flood a channel
- **Domain age**: new sending domains are looked up over RDAP. Domains registered in the last 30 days score higher in spam protection, and admins are alerted when one is added
- Admins can approve a new team's sending early from the team page
- **Scale plan**: $90/mo with 500,000 emails included, 30 domains and 50 team members, and the lowest overage rates
- **Local prices and tax**: Checkout shows set prices in pounds and euros for UK and European customers, and can add VAT and sales tax with Stripe Tax (`STRIPE_AUTOMATIC_TAX=true`), including VAT number collection for businesses

### Changed
- **New pricing, now in US dollars**: Starter (was Hobby) $5/mo for 25,000 emails, Pro $20/mo for 100,000 and Scale $90/mo for 500,000, with lower overage rates. Existing subscribers keep the price they signed up at
- **Free plan** now includes 5,000 emails a month and 200 a day (was 12,500 a month and 5,000 a day)
- Lite and Lifetime are no longer sold. Teams already on them keep their plan, limits and price
- **New-account limit**: free teams can send 50 emails a day during their first 7 days. Paying teams, custom plans and admin-approved teams are exempt
- The admin panel now uses the main sidebar for its sections instead of a second navigation column
- "Analytics" in the sidebar is now "Overview"
- **New logo**: the Ribbon (an envelope inside a send arrow) is the main logo, and the Send B monogram is the app icon, favicon and team badge. Both are in `public/brand/` as SVGs, wordmarks, app icons and avatars

### Fixed
- A subscription's plan is read from its Stripe price, so re-seeding Stripe prices can no longer drop an existing subscriber to the free plan
- Changing plan in the Stripe customer portal now moves the overage prices to the new plan too. Previously only the monthly price changed, so extra emails kept being billed at the old plan's rates
- Removed the unused `stripe-integration.ts`, which no longer compiled
- `docker/prod/compose.yml` and the Docker README pulled `bytesend/web` and `bytesend/smtp`, which don't exist; they now use the published `bytesend/bytesend` and `bytesend/smtp-proxy` images
- The plans docs listed out-of-date limits and prices (including a 100 emails/month free tier, missing Hobby and Lite plans, and annual billing that isn't offered); they now match the plans in the app
- Sheets and dialogs on phones no longer run off the edge of the screen, and tall dialogs scroll instead of overflowing
- The logo in the site header, footer, sidebar, login, profile setup and loading screens is now the crisp vector mark, instead of an image with a dark tile baked in
- Errors from notification provider settings (e.g. "Provider not found", invalid webhook URLs) now reach the dashboard and API with their message instead of an empty error

---

## [0.6.0] - 2026-10-19

### Added
Expand Down Expand Up @@ -948,7 +981,8 @@ Initial public beta release of ByteSend: an all-in-one email infrastructure plat

---

[Unreleased]: https://github.com/ByteSendApp/ByteSend/compare/v0.6.0...HEAD
[Unreleased]: https://github.com/ByteSendApp/ByteSend/compare/v0.7.0...HEAD
[0.7.0]: https://github.com/ByteSendApp/ByteSend/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/ByteSendApp/ByteSend/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/ByteSendApp/ByteSend/compare/v0.4.4...v0.5.0
[0.4.4]: https://github.com/ByteSendApp/ByteSend/compare/v0.4.3...v0.4.4
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 3 additions & 21 deletions apps/docs/guides/admin-operations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,13 @@ The billing dashboard shows:
- **Team Members**: Used vs. plan limit
- **Verified Domains**: Used vs. plan limit
- **Renewal Date**: When your next billing cycle begins
- **Cost**: Monthly/annual amount
- **Cost**: Your monthly or one-time price

### Upgrading Your Plan

#### Automatic Plan Limits
#### Plan limits

Each plan comes with specific limits:

**Free Plan**:
- 100 emails/month
- 1 domain
- 1 team member
- 7-day history

**BASIC Plan**:
- 100,000 emails/month
- 12 domains
- 30 team members
- 90-day history

**LIFETIME Plan**:
- 500,000 emails/month
- 30 domains
- 100 team members
- Unlimited history
Each plan sets limits on emails, domains, team members, webhooks and contacts. See [Plans & Pricing](/guides/plans-and-pricing) for the current numbers.

#### When to Upgrade

Expand Down
7 changes: 3 additions & 4 deletions apps/docs/guides/campaigns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,10 @@ You can also pull these via the [Analytics API](/api-reference/analytics/email-t

| Plan | Campaigns | Monthly emails |
| ---- | --------- | -------------- |
| Free | 3 | 12,500 |
| Hobby | 30 | 25,000 |
| Lite | 100 | 50,000 |
| Free | 3 | 5,000 |
| Starter | 30 | 25,000 |
| Pro | 200 | 100,000 |
| Lifetime | 1,000 | 500,000 |
| Scale | 1,000 | 500,000 |

Marketing emails are included on all plans. Overage billing applies on paid plans when you exceed the monthly limit.

Expand Down
5 changes: 2 additions & 3 deletions apps/docs/guides/contact-books.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,9 @@ If you handle unsubscribes via webhooks (e.g., reading from `email.complained`),
| Plan | Contact Books | Contacts per account |
| ---- | ------------- | -------------------- |
| Free | 5 | 100 |
| Hobby | 10 | 200 |
| Lite | 25 | 300 |
| Starter | 10 | 200 |
| Pro | 50 | 1,000 |
| Lifetime | 200 | 10,000 |
| Scale | 200 | 10,000 |

---

Expand Down
Loading
Loading