Skip to content
supastack
Browse documentation

For AI agents: fetch the complete documentation index at /llms.txt, the full documentation corpus at /llms-full.txt, the agent skill at /skill.md, or this page as Markdown at /docs/desktop/internals.md (or send Accept: text/markdown).

Inside the desktop shell

Boot page, navigation gate, plugin stack, and configuration reference.

The boot page

The window loads the bundled page in apps/desktop/ui first: it reads the injected __SUPASTACK_APP_URL__, probes the backend with a ten-second timeout, and forwards to it when reachable. An unreachable backend renders a Can't reach host state with a Retry that also fires on network recovery, so a cold start never shows a blank window. A ?target= query parameter exercises the page in a plain browser.

Native features are plugins, not IPC

The shell registers no custom commands — every native capability arrives through Tauri plugins: single-instance with the deep-link feature (which routes second-launch arguments on Windows and Linux), deep-link, window-state (geometry only — zoom and channel keep their own sidecars), opener, dialog, process (restart after update), updater, autostart, and global-shortcut, plus the tray-icon feature. Extending the shell means adding a plugin and a permission, not forking webview UI.

The navigation gate

Navigation stays for the bundled shell pages, the dev-server origin, and the exact configured app origin. Credential-free HTTP(S), mailto:, and tel: links leave through the system browser via the opener plugin; every other scheme is cancelled. A deep link arriving before the window exists is buffered in managed state and applied once it does.

Config and capability reference

tauri.conf.json sets productName, version (bump before a release — the workflow can override it), the identifier (check:release-config requires changing it from com.supastack.desktop), the supastack deep-link scheme, the updater sentinel block, bundle targets, and the placeholder icons. capabilities/default.json grants core:default plus opener:allow-open-url — widen it only when a new plugin needs more.

How the shell is tested

corepack pnpm --filter @supastack/desktop test syntax-checks the boot page and runs the Rust unit suite covering URL resolution, deep links, zoom, and channel logic; typecheck runs cargo check. The JavaScript release scripts are covered by the repository's vitest suites, and the CI pipeline builds real installers on all three operating systems for every change.

corepack pnpm --filter @supastack/desktop typecheck
corepack pnpm --filter @supastack/desktop test
corepack pnpm --filter @supastack/desktop check:release-config

Verification and troubleshooting

Run the package suite after touching src-tauri, then verify the native behavior by hand on each target OS — unit checks prove the rules, not the window. Keep new shell behavior inside plugins and menu items so the webview stays a plain web app.

Frequently asked questions

14 questions

What is supastack?

supastack is a modular foundation for building AI-powered SaaS products. It brings together common infrastructure so you can focus on product-specific features.

Does it support web and mobile?

Yes. supastack includes Next.js and Expo apps as starting points for web and mobile experiences.

What authentication is included?

Better Auth covers email OTP, magic-link, and social sign-in; email/password stays available at the API layer and through the Auth.js credentials engine for products that need it. Personal workspaces are provisioned with the account so product records stay scoped from day one.

How does it support AI?

supastack includes configurable multi-provider AI, usage tracking, budgets, and encrypted bring-your-own-key support.

How are subscriptions handled?

For products built on the kit, Stripe billing, subscriptions, and entitlements form the paid-access foundation. Provider secrets stay server-only.

Where does my product-specific code live?

Product-specific features remain in a separate codebase while the product configures and integrates supastack’s foundation modules.

How does supastack pricing work?

The kit is a one-time purchase with lifetime updates: Single Stack at $249 — your pick of Next.js (Web), Expo (iOS & Android), or Tauri (macOS & Windows Desktop) — Dual Stack at $398 with any two repos, or the Full Bundle at $399 with all three repos and the full monorepo, plus $75 per extra developer seat. No kit subscription. Checkout on this site delivers your license key by email, with repository access via GitHub invite.

How do workspaces scope my data?

User-owned records are scoped by workspaceId. Identity, entitlements, AI usage, billing events, and audit entries stay inside the personal workspace boundary.

How do background jobs work?

Trigger.dev is the explicit job runtime. The JobRunner contract only promises enqueue, status, and cancel—workflow semantics stay Trigger.dev-specific and explicit.

How is email different from outreach?

Transactional email covers product workflows such as completion notices. Cold outreach and campaigns are product concerns outside this kit’s email module.

How do mobile purchases work?

Mobile includes native purchases and restore through RevenueCat, with access verified by your server. Configure the store accounts and complete device testing before release. Web billing remains separate.

Where do AI provider keys live?

Bring-your-own-key credentials are encrypted and stay server-only. Keys are redacted from logs; usage and budgets remain visible at the workspace level.

Which payment methods does checkout accept?

The Stripe-hosted checkout accepts cards and can also offer Alipay and WeChat Pay once those wallets are enabled on the Stripe account — handy for buyers in China. Wallet authorizations confirm asynchronously, so the license page updates as soon as the payment clears.

Can I get a refund?

After you've got access to the repository, supastack is yours forever, so it cannot be refunded. But rest assured, you get the complete source code with lifetime updates to build and ship unlimited products for yourself or clients. You just cannot resell the code or redistribute the repository as a starter kit or template.

EN
Theme