Overview
The rootpackage.json declares workspaces:
Dependency Graph
Applications
apps/server
| Package | @mdcms/server |
| Entry | src/index.ts |
| Port | 4000 |
| Dev command | bun nx dev server |
@mdcms/shared, @mdcms/modules.
apps/cli
| Package | @mdcms/cli |
| Binary | mdcms |
| Dev command | bun nx dev cli |
| Command | Description |
|---|---|
init | Interactive project setup wizard |
login | Authenticate via browser OAuth flow |
logout | Clear stored credentials |
push | Push local content to the server |
pull | Pull content from the server to local files |
schema-sync | Sync schema definitions to the server |
status | Show sync status between local and server |
migrate | Run content migrations |
@mdcms/shared, @mdcms/modules.
apps/studio-example
| Package | @mdcms/studio-example |
| Framework | Next.js 15.2 |
| Port | 4173 |
| Dev command | bun nx dev studio-example |
<Studio /> component from @mdcms/studio. Used for local development and testing of the Studio UI. Not published to any registry.
Dependencies: @mdcms/studio, @mdcms/sdk.
apps/studio-review
| Package | @mdcms/studio-review |
| Port | 3000 |
| Dev command | bun nx dev studio-review |
@mdcms/studio.
Shared Packages
packages/shared
| Package | @mdcms/shared |
| Export | Purpose |
|---|---|
defineConfig | Configuration builder for mdcms.config.ts |
defineType | Content type definition helper |
reference | Typed reference field helper |
API_V1_BASE_PATH | API version path constant |
RuntimeError | Base error class for structured errors |
| Content response types | TypeScript types for API responses |
| Schema types | TypeScript types for schema definitions |
packages/sdk
| Package | @mdcms/sdk |
| Export | Purpose |
|---|---|
createClient | Factory function to create a configured MDCMS client |
MdcmsApiError | Error class for API-level errors |
MdcmsClientError | Error class for client-level errors (network, config) |
@mdcms/shared.
packages/studio
| Package | @mdcms/studio |
| Library | Purpose |
|---|---|
| React 19 | UI framework |
| TipTap 3.7 | Rich text / MDX editor |
| Radix UI | Accessible component primitives |
| TailwindCSS | Styling |
| TanStack React Query | Server state management |
| Lucide | Icon library |
@mdcms/shared.
packages/modules
| Package | @mdcms/modules |
| Module | Description |
|---|---|
core.system | Core system functionality |
domain.content | Content domain operations |
@mdcms/shared.