How remix-run/react-router-templates works
Project type and purpose
• This is a monorepo for an open-source CLI tool (“create-react-router”) that ships multiple full-stack React Router starter templates (default, minimal, JavaScript-only, Node custom server, Node-Postgres, Cloudflare, Cloudflare-D1, Vercel, Netlify, Deno).
• The goal is to scaffold new React Router applications with various runtimes, DB integrations, and deployment targets.
File structure
• Top‐level:
• .github/workflows/ci.yml – CI pipeline for linting/tests.
• pnpm-workspace.yaml & pnpm-lock.yaml – monorepo package management.
• /README.md – root documentation.
• /.tests – Playwright end-to-end tests covering all templates.
• Per-template folders (e.g., default/, minimal/, cloudflare/, cloudflare-d1/, node-postgres/, etc.) each contain:
• app/ – React Router routes & UI.
• public/ – static assets.
• server or workers/ or server.ts / server.js – SSR entry point for the chosen runtime.
• vite.config.ts/js, tsconfig, package.json – build and type config.
• deployment config (Dockerfile, netlify.toml, wrangler.jsonc, vercel config).
• database/ + drizzle.config.ts in DB-backed templates.
README for additional insights
• The README lists each template’s purpose, features, and CLI invocation patterns.