Embedded Web Studio
Built-in 10-workspace operations console compiled straight into spyd-server at /studio with multi-cluster fleet monitoring and switching.
Embedded Web Studio is a complete 10-workspace Svelte 5 database workbench compiled directly inside the spyd-server binary under /studio with multi-cluster fleet monitoring and switching. It requires no external Node server, sidecar container, or separate firewall port.
Opening & Authenticating#
Once http_bind is configured in server.json, navigate to:
- TLS production / Staging:
https://<host>:8080/studio - Local loopback development:
http://127.0.0.1:8080/studio
Supported Sign-In Methods#
- Bearer Token / API Key: Paste a configured static token or JWT from
tokens. - Username & Password (SCRAM): Sign in with any credential configured in
scram. - SSO (OIDC / SAML): Redirect through configured OIDC or SAML identity providers via
/v1/auth/*.
Operators can choose whether the session credential persists across browser restarts (localStorage) or remains scoped strictly to the current browser tab (sessionStorage).
Security Isolation: Every
/studio/*route enforces a strict Content-Security-Policy (default-src 'self',script-src 'self',style-src 'self',frame-ancestors 'none') and fail-closed404responses on missing assets.
Workspaces Overview#
| Workspace | Route | Purpose |
|---|---|---|
| Explore | /studio/data | Browse collection rows with Live SSE updates (when realtime.auto_enable_local_journal: true), apply inline expression filters, toggle visible columns, inspect full JSON/document payloads, and create/edit/delete rows |
| Schema | /studio/schema | View collection columns, nullability, defaults, storage layouts (Row vs Columnar), indexes (B-Tree, Unique, Fulltext, HNSW, Sparse, ColBERT/MUVERA, R-Tree, Blind, Graph), foreign keys, tenant ownership, and views |
| Objects | /studio/objects | Inspect persisted Functions, Procedures, Triggers, Sequences, Custom Types, External Tables, and Change/Data Streams |
| Search | /studio/search | Query full-text BM25 indexes across all collections with highlighted matching terms, collection facet counts, and normalized relevance score bars |
| Query | /studio/query | Multi-tab CodeMirror SpydQL editor with ML/graph/AI-retrieval completions and inline docs, query consistency & HLC controls, positional parameters ($1, $2), execution timing, sortable results grid with lazy JSON serialization, interactive TreeSHAP ML Explain Panel (ml_explain feature attribution waterfall), and CSV/JSON export |
| Security | /studio/security | Manage RBAC roles and permissions (including scoped database(maintenance), database(extensions), and database(security) grants while preserving multi-target rules), row-level security (filter / deny), role-scoped field masks (mask email as "***" for role(...)), user role bindings, and live SHA-256 hash-chain audit verification |
| Monitor | /studio/monitor | Live telemetry for Engine load/QPS/latency buckets, Active queries, online Maintenance (maintain & destructive maintain purge), Cluster nodes/shards/active migrations, Cluster Leases, Distributed Row Locks, HLC status, Raft voter/leadership/election actions, streaming Replication follower status/follow/renew_lease/promote/fence, plus the live Fleet SSE panel and Shared roles and policies switches |
| APM | /studio/apm | Service RED metrics, interactive service dependency map, distributed trace search and waterfall span sheet, grouped error fingerprints, Web Vitals RUM metrics, CPU flamegraphs, and synthetic uptime checks |
| Alerts | /studio/alerts | Multi-window SLO burn-rate dashboards, spydql_threshold / ml_anomaly / slo_burn_rate rules, mute/silence windows, alert history, and Slack / PagerDuty / Webhook channels |
| Administration | /studio/admin | Online Database creation/management, verified Backups & PITR restore, Column & Storage Encryption key rotation, WebAssembly Extensions (/studio/admin/extensions: install/update .spydext, inspect policy/hashes/exports, drop/cascade), and Cluster Links (Private CA PEM / pin_only / seed health) / CCR (Sync all, Sync now, resolved conflicts, transactional copy attachment) / Shard moves & splits / DR failover & 2PC recovery |
Multi-Cluster Switching & Fleet Monitoring#
When a server links remote clusters (Administration → Cluster or POST /v1/cluster/links), Studio becomes a unified control plane:
- Top-Bar Cluster Switcher: Switch between
This clusterand any reachable dial-out link directly from the header (available to administrators and sessions with themonitorrole viacan_read_fleet). Studio attachesX-Spyd-Cluster: <link>so the hub proxies queries, Explore/Schema/Objects, Security, APM, Alerts, and read-only Admin inspection server-side without exposing link credentials or private CA certificates to the browser. Environment labels (Production,Staging,Development,This cluster) keep target clusters clearly identified, while Administration panels automatically enter a clear read-only posture for unproxied local-only mutations. - Live Fleet Monitor (
Monitor → Fleet): Administrators andmonitor-role sessions (can_read_fleet) on the hub cluster receive liveGET /v1/cluster/fleet/streamSSE updates showing connection status (Connected,Connecting,Waiting for it to dial in,Reconnecting,Unreachable,Credential refused), nodes up, running queries,p99latency, RTT, and active security sync version across every cluster. - Dial-In Clusters: Reverse-dial clusters publishing over
fleet_publishappear in the Fleet grid labeled Dial-in / Watch only and cannot be opened in the Cluster Switcher because the hub holds no dial-out address for them. - Security Sharing Toggles (
Shared roles and policies): Toggle security synchronization per node and per outbound link (PUT /v1/cluster/security/sync) directly inside Monitor → Fleet, displaying the catalog security version and per-peer reconciliation status (dial-in links disable the push switch).
See Multi-Cluster Fleet & Security Sync for API endpoints, proxy rules, and NAT publishing configuration.
RBAC Enforcement Inside Studio#
Studio never bypasses engine authorization:
- All queries executed in Explore, Schema, Search, and Query respect the logged-in session's exact roles, row policies, ABAC attributes, and field masks.
/v1/sessiondrives least-privilege UI gating directly:can_maintainunlocks Monitor → Maintenance,can_manage_extensionsunlocks Administration → Extensions,can_read_fleetunlocks the Cluster Switcher and Monitor → Fleet, andcan_manageunlocks full Security & Cluster Administration.- If an authenticated user lacks administrative security privileges, the Security and Administration workspaces automatically enforce read-only or locked views instead of exposing broken mutation controls.
Sea-Glass Light & Obsidian Dark Themes#
Use the theme switch in the Studio sidebar at any time to toggle between calm Sea-Glass Light (low-glare frosted daylight palette) and Obsidian Dark (muted slate dark mode tuned for extended incident triage).