$ show kriasoft/react-starter-kit
This repository is a full-stack monorepo template for building SaaS applications using React 19, tRPC, and Cloudflare Workers. It features an edge-native architecture with three Workers (web router, app SPA, and API server) connected via service bindings. The template includes integrated authentication (Better Auth with email OTP, passkey, Google OAuth), multi-tenancy, Stripe billing, transactional emails (via Resend), file uploads to Cloudflare R2, and a Neon PostgreSQL database accessed through Drizzle ORM with Hyperdrive connection pooling. Key components include a reusable shadcn/ui component library, a typed WebSocket protocol package, and isolated database testing utilities.
The LLM identified 3 files worth highlighting for reuse:
A reusable shadcn/ui component library with 20+ accessible, themeable primitives (Button, Card, Input, etc.) built on Radix UI and Tailwind CSS v4. Includes a `cn` utility for conditional class merging and follows strict composition rules. Can be extracted and used in any React project with minimal setup.
A framework-agnostic TypeScript package defining a typed WebSocket message protocol for connection handling, initialization, and ping/pong. Decoupled from any specific WebSocket implementation, making it reusable in both client and server real-time applications.
A self-contained utility for creating isolated PostgreSQL test environments using PGlite. Provides functions to create a test database, reset its state, and close connections, enabling reliable and fast database tests for Drizzle ORM-based applications without external dependencies.