No description
| backups | ||
| content | ||
| data | ||
| docs | ||
| Legacy_Files/content_import_backup_2026-06-22_05-16-05 | ||
| public | ||
| Release | ||
| scripts | ||
| src | ||
| .gitignore | ||
| ecosystem.config.cjs | ||
| eslint.config.js | ||
| index.html | ||
| map-editor-popup.html | ||
| map-height-viewer.html | ||
| old_tiles.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| server.js | ||
| sprites.json | ||
| tiles.json | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
New RPG Content Editor V2.1
Canonical React + TypeScript content editor and API for New RPG (V2.1 branch).
Features
- Load content types from
/api/types. - Load selected content payload from
/api/content/:type. - Edit raw JSON.
- Save JSON back to
/api/content/:type. - Serve wiki at
/wiki.
Runtime
- Vite dev server runs on
http://localhost:4170. - API/app server runs on
http://localhost:5180fromserver.jsin this folder. vite.config.tsproxies/apiand/wikitohttp://localhost:5180.- Override the API/app port with
PORT=<port>when needed.
Content Location
- Preferred: place content beside
server.jsattools/content-editor-v2/content/. - Required image folder for
/api/images:tools/content-editor-v2/content/Images/(capitalI). - Optional override: set
CONTENT_ROOT=/absolute/path/to/contentbefore starting the API. - Fallbacks remain for legacy layouts, but local
tools/content-editor-v2/contentis checked first.
Local development
From this folder:
npm install- In one terminal:
npm run dev:api - In another terminal:
npm run dev
Build
npm run buildnpm run clean:workspaceremoves generated bundles/logs and trims backup history to a small recent set.
Scope guardrails
- Keep files small and modular.
- No cross-file autofix/migration tooling in V2.1.
- Finish core CRUD + validation workflows before adding advanced UX.