<!-- Markdown rendering of https://superslate.dev/expo/ -->

> Expo SaaS boilerplate for iOS and Android on the web app's Bun, Hono, and Postgres backend: native Better Auth sessions, push notifications, and EAS releases.

[failure modes 01](#failure-modes) [coding agents 02](#agent-native) [features 03](#features) [the stack 04](#stack) [deployment 05](#deployment) [pricing 06](#pricing) [faq 07](#faq)

# The SaaS starter kit with a native app built in

An Expo app for iOS and Android on the same backend, the same sessions, and the same typed contract as the web app. One product, not two to keep in step.

[Get lifetime access](#pricing)

-   ![React Native](https://superslate.dev/_astro/react.Bcz6PY-l_1IVCIB.webp)

-   ![Bun](https://superslate.dev/_astro/bun.CFdaJjQX_Z14C4BF.webp)
-   ![Hono](https://superslate.dev/_astro/hono.CWzCGtxz_Z9lyXh.webp)
-   ![Postgres](https://superslate.dev/_astro/postgresql.Gv9ue8z-_Z1UGXmY.webp)
-   ![Better Auth](https://superslate.dev/_astro/betterauth.D1IKSGL6_27obII.webp)

guardrails your AI agents follow so their code fits the repository boundaries

the app your customers log into it runs the minute you clone it

sign-up, teams, payments, email working on day one, not stubbed

your product the only part left to build

one repo with the boring parts already finished so you start on what makes your product different

What actually goes wrong.

## Agents don't break your codebase in one commit.

They break it gradually: reading context nobody maintained, inventing a route through the code, and passing every check on the way to a regression you find two weeks later.

-   ![An AGENTS.md file last updated eight months ago, behind a terminal showing recent commits that changed the code since](https://superslate.dev/_astro/agents-stale-context.BRgSgWf0.svg)
    
    Someone wrote the context file months ago. Your agent is still working from it.
    
-   ![The same invoices feature created three times in three different directories: features, domains, and lib](https://superslate.dev/_astro/agents-no-route.COPHue8k.svg)
    
    There's no established route for how features get built, so every agent takes a different one.
    
-   ![A pull request reporting 33 successful checks, overlaid by two production error reports](https://superslate.dev/_astro/agents-late-regression.B-iE9TNS.svg)
    
    The run comes back green and the PR looks right, but a regression shows up two weeks later.
    

A first task for your coding agent

## “Notify me when my report is ready.”

Your agent can build on the push notifications already wired into the app. You decide when the alert goes out and which screen opens when a customer taps it.

### Reuse device registration

apps/mobile/lib/push.ts

The app asks for permission, registers the device, and revokes its token at sign-out.

### Respect notification preferences

apps/mobile/app/settings/notifications.tsx

Customers choose which alerts they receive. New notifications can use the same preferences as the inbox and email.

### Open the right screen

apps/mobile/hooks/useNotificationResponse.ts

Your agent has one place to connect a tap on the notification to the screen it belongs to.

### Test it on a phone

[docs/mobile.md](https://docs.superslate.dev/docs/mobile)

Follow the device checklist to verify delivery, tap through to the app, and confirm alerts stop after sign-out.

## One account across web and mobile.

Someone who signs up on the web can open the app on their phone and find the same team and subscription. You get both clients and the API they share.

### Native apps

[![](https://superslate.dev/_astro/expo.B-Algoz7_Z1ibTvo.svg)Expo Router](https://docs.expo.dev/router/introduction/)

-   Build for iOS and Android from one codebase
-   Call the same typed API as the web app

### Mobile sign-in

[![](https://superslate.dev/_astro/betterauth.D1IKSGL6_ZRixjt.webp)Better Auth](https://better-auth.com) + [![](https://superslate.dev/_astro/expo.B-Algoz7_Z1ibTvo.svg)Expo](https://expo.dev)

-   Keep sessions in secure device storage
-   Use the same account expiry and revocation rules

### Push notifications

[![](https://superslate.dev/_astro/expo.B-Algoz7_Z1ibTvo.svg)expo-notifications](https://docs.expo.dev/versions/latest/sdk/notifications/)

-   Register devices and honor notification preferences
-   Remove registrations on sign-out or account deletion

### App releases

[![](https://superslate.dev/_astro/expo.B-Algoz7_Z1ibTvo.svg)EAS](https://docs.expo.dev/eas/)

-   Build and submit with EAS profiles
-   Ship compatible over-the-air updates

### Sign-in and accounts

[![](https://superslate.dev/_astro/betterauth.D1IKSGL6_ZRixjt.webp)Better Auth](https://better-auth.com)

-   Offer password, magic link, or Google sign-in
-   Verify email and revoke sessions on password reset

### Subscriptions

[![](https://superslate.dev/_astro/polar.BkhZpLLY_Z1nUMqt.webp)Polar](https://polar.sh) · [![](https://superslate.dev/_astro/stripe.gSjBl1wZ_2eNgSn.webp)Stripe](https://stripe.com) · [![](https://superslate.dev/_astro/dodo.BuRK7Kqw_ZYenBd.webp)Dodo](https://dodopayments.com)

-   Choose one payment provider for checkout
-   Verify webhooks and apply each event once

### Teams and permissions

personal + team

-   Invite teammates and transfer ownership
-   Keep each team’s records separate

### API contracts

[![](https://superslate.dev/_astro/zod.D42PXtoy_WzPQs.webp)Zod](https://zod.dev)

-   Validate requests with shared schemas
-   Catch incompatible field changes during typecheck

### Database migrations

[![](https://superslate.dev/_astro/postgresql.Gv9ue8z-_9MqnK.webp)Postgres](https://www.postgresql.org) + [![](https://superslate.dev/_astro/github.DDc9ZhVF_2vv6Ee.webp)dbmate](https://github.com/amacneil/dbmate "dbmate on GitHub")

-   Review schema changes in plain SQL
-   Test migrations and rollbacks in CI

### Transactional email

[![](https://superslate.dev/_astro/react-email.CZvbbM6A_1l7h7X.webp)React Email](https://react.email) + [![](https://superslate.dev/_astro/resend.osf0KMJX_IuQlb.webp)Resend](https://resend.com)

-   Customize and preview the email templates
-   Test sign-in links locally without a provider key

### File uploads

[![](https://superslate.dev/_astro/r2.DkH5_NVc_Z2t8MUU.webp)R2](https://developers.cloudflare.com/r2/) · [![](https://superslate.dev/_astro/s3.DbfRsTH2_ZIY3DS.webp)S3](https://aws.amazon.com/s3/) · [![](https://superslate.dev/_astro/gcs.CcP-SwB__Z1ycMlc.webp)GCS](https://cloud.google.com/storage)

-   Upload directly to object storage
-   Check file contents before accepting an upload

### UI components

[![](https://superslate.dev/_astro/react.Bcz6PY-l_1wG8s2.webp)](https://react.dev)51 components

-   Build screens with tables, pickers, and toasts
-   Customize shared colors, spacing, and typography

### Notifications

inbox + email

-   Deliver updates in the app and by email
-   Let users choose what they receive

### Languages

[![](https://superslate.dev/_astro/i18next.CbhEXVuX_2uQHoe.webp)i18next](https://www.i18next.com) · en · es · de

-   Ship in English, Spanish, and German
-   Catch missing translations at build time

### Search

[![](https://superslate.dev/_astro/postgresql.Gv9ue8z-_9MqnK.webp)Postgres](https://www.postgresql.org) FTS

-   Find results even with common typos
-   Use the database you already run

### Error monitoring

[![](https://superslate.dev/_astro/sentry.JF3GIb7R_1iF6OM.webp)Sentry](https://sentry.io) + [![](https://superslate.dev/_astro/pino.DqhXy5E6_10uBo9.webp)pino](https://getpino.io)

-   Capture browser errors with optional Sentry
-   Trace server errors in structured logs

### Installable web app

[![](https://superslate.dev/_astro/vite-pwa.CfL0Cihw_ZDoFmI.webp)vite-plugin-pwa](https://vite-pwa-org.netlify.app)

-   Install the app from the browser
-   Prompt users when an update is ready

### Automated tests

[![](https://superslate.dev/_astro/bun.CFdaJjQX_ZQnP4v.webp)Bun](https://bun.sh) + [![](https://superslate.dev/_astro/vitest.sI85Ucxh_y1iY0.webp)Vitest](https://vitest.dev)

-   Foundation repo: 141 test files, including 17 integration files
-   Run database tests against Postgres

### Request security

on by default

-   Restrict cross-origin requests
-   Limit request sizes and timeouts

### Rate limiting

[![](https://superslate.dev/_astro/postgresql.Gv9ue8z-_9MqnK.webp)Postgres](https://www.postgresql.org)\-backed

-   Limit sign-in attempts and API traffic
-   Keep counters in Postgres

### Product docs

[![](https://superslate.dev/_astro/fumadocs.C6GfmzQO_Z1GBYC4.webp)Fumadocs](https://www.fumadocs.dev) + [![](https://superslate.dev/_astro/llms-txt.DHMLPnUI_Z1SiQnv.webp)llms.txt](https://llmstxt.org)

-   Customize the included documentation site
-   Follow guides for new routes, billing, and deployment

### Marketing site

[![](https://superslate.dev/_astro/astro.pmAa_jJ3_2oXIEw.webp)Astro](https://astro.build) + [![](https://superslate.dev/_astro/workers.pnCeZEPH_Z1bT9Ve.webp)Workers](https://developers.cloudflare.com/workers/)

-   Publish a fast static site in your own brand
-   Includes a sitemap and Markdown pages

### Get the Expo source

Customize the app and use it for every product you own.

[Compare licenses](#pricing)

## How the app fits together.

Add a field to the shared API and both clients pick up its type. Web and mobile share accounts, subscriptions, and a backend you deploy once.

mobile

[![](https://superslate.dev/_astro/expo.B-Algoz7_Z1ibTvo.svg)Expo](https://expo.dev) + [![](https://superslate.dev/_astro/expo.B-Algoz7_Z1ibTvo.svg)EAS](https://docs.expo.dev/eas/)

The native app calls the web app’s Hono API. Better Auth handles sessions on both platforms.

frontend

[![](https://superslate.dev/_astro/react.Bcz6PY-l_1wG8s2.webp)React 19](https://react.dev) SPA

Build dashboard screens in React. The browser calls a separate API that can also serve a native app.

contracts

[![](https://superslate.dev/_astro/typescript.Da_hSd_Y_Z1ibTvo.svg)TypeScript](https://www.typescriptlang.org) + [![](https://superslate.dev/_astro/zod.D42PXtoy_WzPQs.webp)Zod](https://zod.dev)

Define a field once. The server validates incoming data and the client uses the same schema for its types.

api

[![](https://superslate.dev/_astro/hono.CWzCGtxz_ZJnuOI.webp)Hono](https://hono.dev)

Trace a request from its route to the service that handles it and the SQL that reads or writes the data.

runtime

[![](https://superslate.dev/_astro/bun.CFdaJjQX_ZQnP4v.webp)Bun](https://bun.sh)

Run API tests locally and compile the same server code into a standalone executable.

database

[![](https://superslate.dev/_astro/postgresql.Gv9ue8z-_9MqnK.webp)Postgres](https://www.postgresql.org) + [![](https://superslate.dev/_astro/github.DDc9ZhVF_2vv6Ee.webp)dbmate](https://github.com/amacneil/dbmate "dbmate on GitHub")

Read each schema change as SQL. Up and down migrations let you inspect changes in both directions.

## Ship the apps and their shared backend.

Use EAS to build for iOS and Android and submit through your own store accounts. Host the shared API on Railway, AWS, or Google Cloud. You can choose your host during setup or later.

Hosting options Generated configuration

backend

native frontend

Cloudflare frontend

API

database

config

[![](https://superslate.dev/_astro/aws.BSTL7L2d_Z2g6euE.webp)AWS](https://aws.amazon.com/)

[![](https://superslate.dev/_astro/s3.DbfRsTH2_ZIY3DS.webp)S3](https://aws.amazon.com/s3/) + [![](https://superslate.dev/_astro/cloudfront.DAg8AiKV_DEdM.webp)CloudFront](https://aws.amazon.com/cloudfront/)

[![](https://superslate.dev/_astro/cloudflare.CRF8nTym_Z1ibTvo.svg)Cloudflare](https://www.cloudflare.com/)

[![](https://superslate.dev/_astro/fargate.71gD-_Y5_Zl4Ixy.webp)ECS Fargate](https://aws.amazon.com/fargate/) + [![](https://superslate.dev/_astro/alb.cLzFChKS_NTrIh.webp)ALB](https://aws.amazon.com/elasticloadbalancing/application-load-balancer/)

[![](https://superslate.dev/_astro/rds.C-GE67UH_elmit.webp)RDS PostgreSQL 18](https://aws.amazon.com/rds/postgresql/)

[![](https://superslate.dev/_astro/opentofu.BjEd6Fth_25FWAg.webp)OpenTofu](https://opentofu.org/)

[![](https://superslate.dev/_astro/google-cloud.B3tG4XDR_1g5Mzf.webp)GCP](https://cloud.google.com/)

[![](https://superslate.dev/_astro/gcs.CcP-SwB__Z1ycMlc.webp)GCS](https://cloud.google.com/storage) + [![](https://superslate.dev/_astro/cloud-cdn.utoxos2I_Z2sfsKs.webp)Cloud CDN](https://cloud.google.com/cdn)

[![](https://superslate.dev/_astro/cloudflare.CRF8nTym_Z1ibTvo.svg)Cloudflare](https://www.cloudflare.com/)

[![](https://superslate.dev/_astro/cloud-run.X7qj3MT3_Zm6eNw.webp)Cloud Run](https://cloud.google.com/run)

[![](https://superslate.dev/_astro/cloud-sql.CXHT29hF_LOXXQ.webp)Cloud SQL PostgreSQL 18](https://cloud.google.com/sql/docs/postgres)

[![](https://superslate.dev/_astro/opentofu.BjEd6Fth_25FWAg.webp)OpenTofu](https://opentofu.org/)

[![](https://superslate.dev/_astro/railway.ChNKNWM1_Z27gMrP.webp)Railway](https://railway.com/)

—

[![](https://superslate.dev/_astro/cloudflare.CRF8nTym_Z1ibTvo.svg)Cloudflare](https://www.cloudflare.com/)

[![](https://superslate.dev/_astro/railway.ChNKNWM1_Z27gMrP.webp)Railway service](https://railway.com/)

[![](https://superslate.dev/_astro/postgresql.Gv9ue8z-_9MqnK.webp)Railway PostgreSQL](https://www.postgresql.org)

railway.toml

**Tested in the repo** OpenTofu plans and the production image. **Still to verify** Live custom-domain deployment for all five configurations. **Store accounts** Apple Developer and Google Play Console accounts are required for store submission.

## One license for every product you own.

Pay once for the source. Buy as an individual or cover your whole company, with no per-developer fees or runtime royalties.

### Expo

33% off

For a product on web, iOS, and Android. Includes the React + Hono edition.

One-time price

$199 Standard price $299

-   Full source for this edition
-   Your own branded project from the CLI
-   Credit toward All-access if you upgrade

First 50 licenses at this price. Then **$249**.

[Buy Expo](https://buy.polar.sh/polar_cl_zfVnLdX1FTPkg4q3np4U5Yy47p0V9LjBBBRLF3aDqYl)

### All-access

38% off

React + Hono, TanStack Start, and Expo.

One-time price

$249 Standard price $399

-   Full source for all three editions
-   Private GitHub repo for releases and issues
-   Save $99 over buying Expo and TanStack Start separately

First 50 licenses at this price. Then **$329**.

[Buy All-access](https://buy.polar.sh/polar_cl_gYnaILCHzagi3duUNSet74EzRipCw0Dyy13HY3XoLqQ)

Both licenses include updates while we maintain and distribute your editions. Already own an edition? Use the one-time code in your license email for credit toward All-access, with at least $49 to pay. The license excludes client work and source redistribution. [Read the full license](https://superslate.dev/license/).

## FAQ

Do I need to buy the web edition too?

No. Expo includes the React web app, Hono API, and Postgres backend. You can launch on the web and add the native apps when you’re ready.

Can customers use their web account on mobile?

Yes. Better Auth handles both clients. The native app stores its session securely and uses the same account and subscription as the web app.

Does the app include in-app purchases?

Checkout runs on the web. The mobile app reads subscription access from the API. You’ll need to add native purchasing if your store release requires it.

How do I get the source after checkout?

Your receipt includes a license key. Run pnpm dlx superslate@latest my-app and enter the key. The tool verifies the release, applies your brand, and installs the project on your machine.

Can I use it for multiple products or client work?

One license covers one person or company and unlimited products that buyer owns. Your whole development team can use it. Separate companies need their own licenses, and client delivery is outside the license.

Can I use my usual coding agent?

Yes. Claude Code, Codex, and Cursor can read the repo instructions and run the same checks you do. You can also build everything by hand.

Is there a public site for my product?

Yes. Every edition includes an Astro marketing site that shares the app’s colors and typography. Change the sample copy, add your terms, and publish it separately on Cloudflare.

Can I get a refund after downloading the source?

Sales are final once source access is delivered, subject to your statutory rights. If delivery fails or you see a duplicate charge, contact support with your order ID.

## Start your next app with one command.

Get your license key at checkout. Then run `pnpm dlx superslate@latest my-app` to create a project with your name on it.

[Buy Expo for $199](https://buy.polar.sh/polar_cl_zfVnLdX1FTPkg4q3np4U5Yy47p0V9LjBBBRLF3aDqYl) [Read the setup guide](https://docs.superslate.dev/docs/setup)
