bun-monorepo-vite-elysia-spa

Installation
SKILL.md

Bun Workspace Vite Elysia SPA

Overview

Create a Bun workspace monorepo with latest generator output, not manual scaffolding. Use official generators first, then apply backend wiring and security defaults.

Required Workflow

  1. Confirm target path and whether existing apps/backend or apps/frontend should be replaced.
  2. Run official generators only:
  • bun create elysia@latest apps/backend
  • bun create vite@latest apps/frontend --template react-ts
  1. Install required backend dependencies and dev dependencies with Bun.
  2. Apply backend wiring using references/elysia-core-backend-reference.md (copied from elysia-core-backend) for Better Auth, Drizzle, Postgres, MCP endpoint, OpenAPI docs, CORS allowlist, CSRF middleware, and security headers.
  3. Keep frontend as SPA (Vite React TS) unless explicitly requested otherwise.
  4. Wire root Bun workspace scripts using Bun filters (bun run --filter "*" <script>).
  5. Provide run steps and env vars required for local development.
Related skills
Installs
3
First Seen
Feb 20, 2026