🇯🇵 日本語版 README
Web frontend for OperantKit. Provides an experimenter dashboard and an educational simulator UI. Includes session-data visualisation, experiment configuration editing, and user management pages.
Status: Next.js 16, React 19, Tailwind v4.
/— Dashboard (recent sessions, summary statistics)/login,/register— Authentication/profile— User profile/settings— Experiment parameter configuration (FR / VR / FI / VI schedule selection, etc.)/data— Session-data visualisation (cumulative records and response-rate charts via Recharts)
GET/POST /api/data— Session dataGET/POST /api/settings— Experiment configuration
Currently returns mock endpoints hosted inside Next.js. Wiring to the Python backends (session-visualizer SSE etc.) is future work.
The runtime is pinned via mise. The Node.js
version is declared in .mise.toml (Node 24 LTS).
# 1. Install Node
mise install
# 2. Install dependencies (reproducible from package-lock.json)
mise exec -- npm ci# Dev server (http://localhost:3000)
mise exec -- npm run dev
# Production build
mise exec -- npm run build
# Lint
mise exec -- npm run lint
# Type-check
mise exec -- npx tsc --noEmit
# E2E tests (requires Playwright browsers: mise exec -- npx playwright install chromium)
mise exec -- npm testKey dependencies (see package.json):
next^16.2 — React framework (App Router)react,react-dom^19 — UI libraryrecharts^3 — Chartsswr^2 — Client-side data fetching / cachingtailwindcss^4,@tailwindcss/postcss^4 — Stylingtypescript^5 — Type-checking@playwright/test^1 — E2E tests
- Runtime is managed by
mise. Do not usenvm/nodenv/asdf. npmis the only supported package manager (commitpackage-lock.jsonfor reproducibility).pnpm/yarn/bunmust not be used.- Do not use direnv layouts such as
layout node(keep.envrcdefensive and minimal). node_modules//.next//playwright-report//test-results/are gitignored.