Instruction file imported from maccman/ai-monorepo-scaffold (
.cursor/rules/project-structure.mdc). Copyright stays with the author.
Project Structure
This document outlines the structure of the monorepo, detailing the purpose of each package and application directory.
apps/
This directory contains the applications of the monorepo.
apps/web: This is the main frontend application, built with Astro and React. It includes all UI components, pages, layouts, and client-side logic.
packages/
This directory contains shared packages used by the applications.
-
packages/api: This package holds the tRPC API. It's responsible for defining API procedures, business logic, and type-safe communication between the client and server. -
packages/db: This package manages all database-related concerns. It uses Kysely for type-safe query building and contains the database schema, migrations, and seeding scripts. -
packages/utils: A collection of shared utility functions and types that are used across different packages and applications within the monorepo.