All examples
Pricing Console
SDK · writesThe reference app for @rexium-ai/app-sdk — the typed ontology client that wraps OAuth 2.1 + PKCE and the MCP surface so you don't hand-roll any of it. `createClient({ clientId, scopes, orgId })` then `await rx.connect()`, and every action is a typed method generated from the Spine ontology: `rx.actions.getOrderStats({ days: 30 })`, `rx.actions.getTopProducts(...)`, `rx.actions.adjustPrice({ productId, newPrice })`. The app is a practical merchant pricing console: KPIs + top products (typed reads), plus a bulk repricing flow — select rows, apply a percentage or round to ,99 with a live per-row preview, and watch each typed AdjustPrice land. Build any frontend on top and deploy dist/ to {slug}.rexium.app like any other Surface.
Stack
ViteReactTailwind@rexium-ai/app-sdk
Scopes
commerce:read-orderscommerce:read-productscommerce:write-products
How to run
- 1cd examples/rexium-app-sdk-demo && npm install && npm run dev
- 2Register a public (PKCE) app at /build/apps with http://localhost:5173/ as a redirect URI.
- 3Grant commerce:read-orders + commerce:read-products + commerce:write-products.
- 4Paste the Client ID + an Org ID with catalogue data, Connect, and try bulk repricing.
- 5npm run build, then deploy dist/ via /build/apps (add https://{slug}.rexium.app/ as a redirect URI first).
examples/rexium-app-sdk-demo