Skip to content

TIP

This page mirrors apps/web/README.md from the repository. Edit it at the source, not here.

@saasweave/web

TanStack Start web application: marketing pages, authentication, admin console, and organization workspace UI.

Always on

  • SSR/SPA routing via TanStack Router
  • Better Auth client (session cookies)
  • Organization console (/app/*): overview, billing, team, API keys, webhooks, SSO settings, security (2FA), profile
  • Platform admin (/admin/*): users, features, maintenance
  • Paraglide i18n for console and auth copy
  • SEO routes (sitemap.xml, meta via @saasweave/seo)

Optional / env-gated

FeatureEnabled when
OAuth sign-in buttonsServer has GOOGLE_* or GITHUB_*
SSO sign-in buttonOrg has SSO provider configured
imgproxy avatarsVITE_IMGPROXY_URL set
Live Stripe checkoutServer has STRIPE_SECRET_KEY

Key paths

src/routes/           # file-based routes
src/pages/console/    # workspace UI
src/features/auth/    # sign-in, sign-up, OAuth
src/shared/lib/       # console i18n, sitemap
__e2e__/              # integration smoke tests (needs running stack)

Environment variables

VariableRequiredNotes
VITE_WEB_URLYesPublic app URL
VITE_SERVER_URLYesAPI base, e.g. http://localhost:5000/server
BETTER_AUTH_SECRETYesMust match server
DATABASE_URLYesUsed at build/prerender
VITE_IMGPROXY_URLNoImage CDN
VITE_IMGPROXY_SIGNATURENoDefault _; use insecure for local imgproxy

Development

bash
vp run dev          # from repo root (starts web + server)
vp test             # unit tests in src/**/__tests__
cross-env VITEST_E2E=1 vp test  # e2e (see package.json test:e2e)

Released under the MIT License.