The dumped data shared a namespace with the SPA routes: /database served both /database/item/1587 and /database/file/..., and the same went for /credits and the pico modules. It only worked because a real file wins over the SPA fallback. Group it by source XOOPS module the way bsi-ni.brain.riken.jp does, so routes and data no longer collide. - database/ -> modules/xoonips/, credits/ -> modules/credits/, manual_ja/ and primface/ -> modules/ - give each pico module its own modules/<dirname>/config.json instead of one shared pico/config.json, so its index sits next to its pages - redirect the v1.0.0 /database/file/ links to their new home, and point the legacy download.php redirect there too
Visiome Platform
Static front-end for the archived Visiome Platform site, built with Vite, React and TypeScript.
Requirements
- Node.js 20.19+ / 22.12+ (Vite 8)
- npm
Setup
npm install
Site data
The pages are rendered from JSON dumped out of the original XooNIps/XOOPS
installation by xoops-static-exporter
(sites/visiome.neuroinf.jp/).
All of it lives in static-contents/, which sits next to the repository rather
than inside it:
visiome.neuroinf.jp/
├── visiome.neuroinf.jp/ this repository
└── static-contents/
├── modules/ one directory per source XOOPS module
│ ├── credits/ credits.json
│ ├── manual_ja/ config.json, <content id>.json, images/
│ ├── primface/ config.json, <content id>.json, images/
│ └── xoonips/ tree.json, items.json, file/, ...
└── rss.xml
Each pico module keeps its own config.json — the index of its categories and
pages — next to the page bodies it describes.
The dev and preview servers mount that directory at the site root. It is
deliberately kept out of dist/: it runs to gigabytes, and the web server maps
it in directly. It is generated content and is not tracked in git.
Scripts
| Command | Description |
|---|---|
npm run dev |
Start the dev server on http://localhost:3000 |
npm run build |
Type-check and build into dist/ |
npm run preview |
Serve the production build locally |
npm run lint |
Lint with Biome |
npm run format |
Format with Biome |
npm run check |
Lint, format and organize imports, applying the safe fixes |
@types/node is pinned to the major that matches the Node runtime in use (24);
.ncurc.json keeps npm-check-updates from bumping it past that.
There is currently no test suite.
Deployment
Upload the contents of dist/ to the document root. The bundled .htaccess
rewrites the legacy XOOPS download URLs and sends every unmatched path to
index.html so client-side routing works on a full page load. On a server
without Apache, configure the equivalent SPA fallback.
Google Analytics
GOOGLE_ANALYTICS_TRACKING_ID in src/config.ts is empty, which disables
tracking. Set a GA4 measurement ID (G-XXXXXXXXXX) to enable it; the old
Universal Analytics property was shut down in 2023.