A highly polished, interactive CLI that bootstraps custom, modern, high-performance pnpm workspaces in seconds.
Quick Start • Features • Workflow • Contributing
Initialize your new workspace instantly using:
npm create morax@latestOr using pnpm:
pnpm create moraxOr using bun:
bun create moraxMorax acts as a smart orchestrator. Instead of copy-pasting outdated boilerplate code, it executes official framework CLIs and programmatically connects them under the hood:
graph TD
A[npm create morax@latest] --> B[Interactive Configuration Prompt]
B -->|Setup Root| C[Create pnpm-workspace.yaml & turbo.json]
C --> D[Scaffold Applications]
D --> D1[Next.js App: npx create-next-app]
D --> D2[Express API: TypeScript Backend]
C --> E[Scaffold Shared Libraries]
E --> E1[packages/ui: shadcn init]
E --> E2[packages/db: prisma/drizzle init]
E --> E3[packages/configs: tsconfig & eslint]
D1 & D2 & E1 & E2 & E3 --> F[Link Workspace Packages]
F --> G[Inject workspace:* references into Package Manifests]
G --> H[Run pnpm install at Workspace Root]
H --> I[Ready to Code!]
style A fill:#8A2BE2,stroke:#fff,stroke-width:2px,color:#fff
style B fill:#1f1f1f,stroke:#8A2BE2,stroke-width:1px,color:#fff
style C fill:#1f1f1f,stroke:#8A2BE2,stroke-width:1px,color:#fff
style D fill:#007acc,stroke:#fff,stroke-width:1px,color:#fff
style E fill:#e25c00,stroke:#fff,stroke-width:1px,color:#fff
style F fill:#2ea44f,stroke:#fff,stroke-width:2px,color:#fff
style I fill:#2ea44f,stroke:#fff,stroke-width:2px,color:#fff
Morax guides you step-by-step to customize your developer experience:
? What is the name of your workspace? › my-morax-monorepo
? Which applications would you like to scaffold? ›
🎯 [x] Next.js Web App
🔌 [x] Express.js API
? Which packages would you like to configure? ›
🎨 [x] Shared UI Library (Tailwind + Shadcn)
🗃️ [x] Shared Database Client (Prisma + PostgreSQL)
⚙️ [x] Shared Linting & TypeScript Configurations
Once setup is complete, navigate into your directory and launch the unified development server:
cd my-morax-monorepo
pnpm dev- create pnpm workspace monorepo with ease
- Zero-Config Workspaces: Complete setup of
pnpm-workspace.yamland unified root lockfiles. - Turborepo Pipeline: Lightning-fast, cached builds and concurrent tasks (
dev,build,lint). - Automated Symlinking: Direct injection of
"@workspace/ui": "workspace:*"cross-package references. - Always Up-to-Date: Pulls from the latest official framework generators dynamically.
We welcome contributions to make Morax even better!
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for details.
