rs2listed
Install: claude install-skill restspace/rs2-skill
# RS2 (Restspace 2)
An RS2 server is a Rust runtime hosting composable HTTP services, each mounted on a root path per tenant. Custom code runs sandboxed (V8 isolates for JS, Wasmtime components for Rust/Wasm) with default-deny capabilities and hard resource limits. Example tenant:
```
/files File store (streamed)
/data Schema-validated JSON store
/auth Authentication + RBAC
/orders Pipeline (composition over other mounts)
/q Stored queries
/render JSX templates rendered to HTML
/services Self-configuration API
/pay code:stripe-wrapper@a1b2c3 (sandboxed custom service)
```
The `rs2` CLI covers the developer loop — scaffold, run a local node, validate, deploy bundles, migrate v1 configs — plus a few admin/ops commands that drive a running server: `login`, `send` (PUT a local file to a path), `service add` (add a mount via the self-config API), and `run` (a script of `rs2` lines). These read a saved server identity from `rsconfig.json`. For anything they don't cover, interact with a tenant over **plain HTTP** (curl, `Invoke-RestMethod`). See `references/cli.md`.
## Orient First
1. `GET /.well-known/rs2/services` — every mount the caller may read, with its `pattern` (`store` | `store-view` | `transform` | `api`) and `facets`. Patterns are the polymorphism contract: one client codepath drives every mount sharing a pattern — `file` and `data` are both `store` and obey one normative shape (`references/services.md`); feature-detect facets, neve