Environment:AIScientists Dev WorldSeed Node Frontend
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Frontend, UI |
| Last Updated | 2026-10-26 19:00 GMT |
Overview
Node.js 18+ environment with React 19, Vite 6, TypeScript 5.7, Tailwind CSS 4, and shadcn/ui for building the WorldSeed dashboard frontend.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | Linux / macOS / WSL2 | Cross-platform |
| Node.js | >= 18 | Vite 6 requires Node 18+ |
| Hardware | CPU only | Build is CPU-bound; no GPU needed |
| Disk | 500MB SSD | node_modules + build output |
Dependencies
System Packages
- `node` >= 18
- `npm` >= 9
Frontend Dependencies
- `react` >= 19.1.0
- `react-dom` >= 19.1.0
- `react-router-dom` >= 7.6.1
- `vite` >= 6.2.0
- `typescript` ~5.7.0
- `tailwindcss` >= 4.2.2
- `@tailwindcss/vite` >= 4.2.2
- `zustand` >= 5.0.5
- `i18next` >= 25.10.9
- `react-i18next` >= 16.6.6
- `motion` >= 12.38.0
- `recharts` >= 3.8.1
- `sonner` >= 2.0.7
- `shadcn` >= 4.1.0
- `cmdk` >= 1.1.1
UI Component Library
- `@radix-ui/react-*` (accordion, avatar, collapsible, dialog, dropdown-menu, label, popover, scroll-area, select, separator, slider, slot, tabs, toggle, toggle-group, tooltip)
- `class-variance-authority` >= 0.7.1
- `clsx` >= 2.1.1
- `tailwind-merge` >= 3.5.0
Dev Dependencies
- `vitest` >= 3.1.0
- `@vitejs/plugin-react` >= 4.6.0
- `@types/react` >= 19.1.4
- `@types/react-dom` >= 19.1.5
- `i18next-cli` >= 1.51.7
Credentials
No credentials required for frontend build. The frontend communicates with the backend server via HTTP/WebSocket at runtime.
- `WORLDSEED_URL`: WebSocket URL passed to gateway process (default: `ws://localhost:{port}/ws`)
- `WORLDSEED_TOKEN`: Gateway auth token (default: `worldseed-gw-token`)
Quick Install
cd frontend
npm install
# Dev server
npm run dev
# Production build
npm run build
# Run tests
npm run test
Code Evidence
React 19 and Vite 6 from `frontend/package.json:52-53,74`:
"react": "^19.1.0",
"react-dom": "^19.1.0",
...
"vite": "^6.2.0"
TypeScript config from `frontend/tsconfig.app.json`:
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"jsx": "react-jsx"
}
}
Build script from `frontend/package.json:8`:
"build": "tsc -b && vite build"
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `Cannot find module 'react'` | Dependencies not installed | `cd frontend && npm install` |
| `Type error: Property 'X' does not exist on type 'Y'` | TypeScript strict mode | Fix type annotations or check `tsconfig.app.json` |
| `Vite requires Node.js 18+` | Old Node.js version | Upgrade Node.js to 18+ |
| `i18next-cli: missing translations` | Incomplete locale JSON | Run `npm run i18n:lint` to check |
Compatibility Notes
- React 19 only: The project targets React 19.1+. React 18 is not compatible due to new APIs.
- Tailwind CSS 4: Uses `@tailwindcss/vite` plugin (not PostCSS). Tailwind 3 configs are incompatible.
- 7 languages: Translations for en, de, es, fr, ja, ko, zh. Run `npm run i18n:status` to check coverage.
- shadcn/ui components: Components live in `frontend/src/components/ui/`. Config in `components.json`.
- Zustand stores: State management via Zustand, not Redux. Stores in `frontend/src/stores/`.
Related Pages
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment