This project provides two distinct setups for building with Plate.js: a modern Next.js TypeScript version and a pure React 18 JavaScript version.
Best for production-ready, full-stack applications with server-side rendering and built-in API routes.
- Location:
/next - Features: TypeScript, Next.js 16, Plate.js AI, shadcn/ui.
- Setup:
cd next && bun install && bun dev
Best for developers who prefer a plain React 18 JavaScript setup with a separate Express backend.
- Location: Root directory +
/server - Features: JavaScript, Rsbuild (Lightning fast), React 18, Separate Express Server.
- Setup:
npm install && npm run dev(Front-end) +cd server && npm install && npm start(Back-end)
next/: Fully contained Next.js 16 + TypeScript project. Use this for the modern setup.server/: Backend Express server (required by the React 18 JS setup). Includes AI endpoints and file upload handling.src/: Source code for the pure React 18 JavaScript version.public/: Static assets (fonts, etc.) shared or used by the React version.rsbuild.config.js: Rsbuild configuration for the React 18 JS version (Replaces Vite for faster builds).
- Node.js >= 18.0.0
- npm or yarn
Run the following in the root directory:
npm installCreate a .env file in the root directory (copy from .env.example):
PUBLIC_API_URL=http://localhost:3001Note
This project uses Rsbuild, so environment variables must be prefixed with PUBLIC_ (not VITE_).
npm run devThe app will open on http://localhost:3000.
The React 18 version requires the backend server for AI features:
cd server
npm install
npm startPlease refer to the Next.js README for detailed instructions. Quick start:
cd next
bun install
bun dev- Plate.js 52.x: Rich-text editor framework.
- Rsbuild: High-performance build tool (Replacing Vite).
- Tailwind CSS v4: Utility-first CSS framework.
- Radix UI: Accessible component primitives.