The Builder Box follows a modular, scalable architecture designed for maintainability and rapid development. This document outlines the key architectural decisions and patterns used throughout the project.
apps/web
) follows a feature-based architecture:
app/
components/
features/
services/
apps/server
) follows a clean architecture pattern:
controllers/
routers/
services/
apps/cms
) is powered by Payload CMS and is structured for extensibility and integration with the rest of the monorepo. Only the essential structure is shown below:
collections/
: Contains all collection schemas for Payload (e.g., Posts, Media, Users, Privacy).payload.config.ts
: The entry point for configuring Payload CMS, plugins, adapters, and collections.For detailed configuration and customization, refer to the Payload CMS documentation.