| name | Modern.js | |
|---|---|---|
| slug | frameworks/modernjs | |
| description | React application with Modern.js framework and Rspack, deployed with Zephyr Cloud | |
| framework | react | |
| bundler | rspack | |
| features |
|
|
| complexity | intermediate |
A React application built with Modern.js framework and Rspack, providing a full-stack development experience with modern tooling and conventions.
- Framework: Modern.js with React
- Bundler: Rspack (built-in)
- Language: TypeScript
- Routing: File-based routing
- Linting: Biome
- Deployment: Zephyr Cloud
- Features: SSR, File-based routing, Plugin system
- Node.js (version 16 or higher)
- pnpm (required for Modern.js)
-
Install dependencies
pnpm install
-
Start development server
pnpm dev
The application will be available at
http://localhost:8080 -
Add new features or entries
pnpm new
Interactive CLI to enable optional features or add new entries
-
Build for production
pnpm build
-
Preview production build
pnpm serve
Modern.js uses file-based routing and conventions:
├── src/
│ └── routes/ # File-based routing
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home page
├── modern.config.ts # Modern.js configuration
└── biome.json # Biome configuration
This example is configured to deploy to Zephyr Cloud automatically when built. Modern.js provides excellent integration with various deployment platforms.
Modern.js is a meta-framework for building web applications that provides:
- Progressive enhancement: Start simple, add complexity as needed
- Full-stack capabilities: Frontend and backend in one framework
- Performance-first: Built with Rspack for fast builds
- Convention over configuration: Sensible defaults with flexibility
- Plugin ecosystem: Extensible architecture
pnpm dev- Start development serverpnpm build- Build for productionpnpm serve- Preview production buildpnpm new- Interactive CLI for adding featurespnpm lint- Run Biome linterpnpm type-check- Run TypeScript type checking
Zephyr Cloud is a micro-frontend deployment platform that provides:
- Auto-deployment: Seamless deployment from your build process
- Live preview links: Instant preview URLs for your applications
- SemVer versioning: Semantic versioning for your frontend modules
- Rollback capabilities: Easy rollback to previous versions
- Enterprise-scale orchestration: Built for composable frontend systems