Neural Mimicry
Control surface matrix, auth flow, and API contract
Web UI Swagger OpenAPI JSON Signed out

Interface Matrix

Neural Mimicry ships four complementary surfaces: the browser control surface, this documentation shell, Swagger for executable API requests, and the native egui dashboard. The matrix below defines how those surfaces divide responsibility without drifting in language, branding, or runtime behavior.

Design rule: every browser surface shares one auth/session shell and one runtime vocabulary. Web UI is operational, Docs is explanatory, Swagger is executable, and Native UI remains the deepest local surface.
Runtime Session
Auth Mode
Loading...
Session
Checking...
Default Orchestrator
Loading...
Function Matrix
Function Web UI Docs Swagger Native UI
Session and auth flow Operational Operational Operational Companion
Runtime target and cluster status Operational Context Context Operational
Network control lifecycle Operational Reference Try It Out Operational
Topology visualization Operational Reference Reference Operational
Probes, EQ, scope, raster Operational Reference Reference Operational
Architecture and bio tuning Contextual Reference Request Tests Operational
Save, load, import, export Operational Reference API Tests Operational
Schema and endpoint discovery Companion Operational Operational Companion
Auth Flow
1. Call GET /api/auth/mode or use the session shell above to discover whether the server is running in none, local, or oidc mode.
2. In local mode, log in with POST /api/login. In oidc mode, begin browser login with GET /auth/oidc/login.
3. Protected API requests then use the same-origin nm_session cookie, which Swagger sends automatically.
curl -s http://localhost:8080/api/auth/mode
curl -s -X POST http://localhost:8080/api/login \
  -H 'content-type: application/json' \
  -d '{"username":"admin","password":"change-me"}' -i
curl -s http://localhost:8080/api/status --cookie "nm_session=<value>"
Endpoint Matrix
Method Path Auth Purpose
GET/api/openapi.jsonNoMachine-readable OpenAPI schema.
GET/api/configNoBootstrap default orchestrator config.
GET/api/auth/modeNoAuth mode and local signup capability.
GET/api/meNoCurrent session/user identity.
POST/api/loginNoLocal username/password login.
POST/api/signupNoCreate a local account when enabled.
POST/api/logoutCookieClear the active session.
GET/api/user/configCookieRead per-user persisted browser UI state.
POST/api/user/configCookiePersist browser UI state.
GET/api/statusCookieCluster and network status snapshot.
GET/api/snapshotCookieFull network snapshot JSON.
GET/api/activityCookieLatest spike activity vectors.
POST/api/update_networkCookieApply config JSON or full snapshot JSON to a managed network.
POST/api/control_networkCookieStart, stop, repeat, reset, or create a new network.
POST/api/aer/injectCookieInject a single AER exchange or spike index frame.
POST/api/aer/streamCookieStream NDJSON AER frames over HTTP.
GET/api/exportCookieExport the active network to NeuroML, PyNN, NIR, ONNX, or TFLite.
GET/auth/oidc/loginNoStart OIDC browser login.
GET/auth/oidc/callbackNoOIDC callback route.
POST/auth/oidc/exchangeNoToken-to-session exchange.
Companion Surfaces
Web UI: remote target selection, cluster status, topology rendering, probes, browser save/load, and export.
Swagger: direct request execution using the same session cookie as the browser shell.
Native UI: richest local simulation surface for morphology, deep biology, GA search, and local import/export workflows.