This is a template repository for a frontend web application powered by TanStack Start.
- π Modern React Stack: Built with TanStack Start and TypeScript for optimal developer experience and performance
- π Authentication & Authorization:
- Better Auth integration with OAuth2/OpenID Connect support
- JWT-based authentication with remote JWKS validation
- Protected routes with automatic redirects
- Server-side authentication middleware
- π³ Payments & Subscriptions:
- Stripe integration for payment processing
- Subscription management with billing portal
- Pricing pages with tier comparison
- Customer portal for subscription updates and cancellations
- π¨ UI/UX:
- Modern component library with Ark UI and shadcn/ui patterns
- Tailwind CSS with optimized class sorting
- Dark/light theme support with persistent preferences
- Responsive design with mobile-first approach
- Toast notifications with Sonner
- π± Progressive Web App (PWA):
- Serwist service worker for offline functionality
- App installation with native-like experience
- Automatic updates with user notifications
- Offline status indicators and caching strategies
- Web app manifest for app store distribution
- Background sync and push notification ready
- π Data Management:
- TanStack Query for server state management
- TanStack Table for data visualization
- GraphQL integration with code generation
- Type-safe API calls with GraphQL Request
- π οΈ Developer Experience:
- π GraphQL Integration:
- GraphQL Code Generator for type-safe queries
- React Query hooks generation
- TypeScript SDK generation
- MSW mocks for testing
- π§ Production Ready:
- Server-side rendering (SSR) support
- Environment-specific configurations
- TLS/HTTPS support with certificate generation
- Optimized build process with Vite
- Route-based code splitting
- PWA support with offline functionality and app installation
First, cp .env.local.template .env.local and fill in the values.
Run tilt up, or:
bun ibun devGenerate PWA icons:
bun icons:generateRun a comprehensive PWA audit with Unlighthouse:
# first, start the dev server
bun dev
# in another terminal, run the audit
bun pwa:auditThis crawls the entire site and runs Google Lighthouse audits on each page, providing a dashboard with:
- Performance scores
- Accessibility checks
- Best practices
- SEO analysis
- PWA compliance
The project includes a comprehensive test suite with unit tests and E2E tests.
bun test
# or in watch mode
bun test:watch
# or test with coverage reporting
bun test:coverage# first, ensure Playwright browsers are installed
bunx playwright install
# run E2E tests
bun test:e2e
# or run with UI
bun test:e2e:uiTests use MSW (Mock Service Worker) to mock API calls. GraphQL mocks are auto-generated in src/generated/graphql.mock.ts via GraphQL Code Generator.
The code in this repository is licensed under MIT, Β© Omni LLC. See LICENSE.md for more information.