AppsConsole
Endpoints
Console HTTP routes, API endpoints, and server functions.
Runs on port 3001. User-facing dashboard for managing Sherpa instances and subscriptions.
Routes
| Method | Path | Auth | Description |
|---|---|---|---|
GET | / | No | Landing / redirect |
GET | /login | No | Login page |
GET | /auth/callback | No | Supabase OAuth callback — exchanges code for session, redirects to /dashboard |
GET | /dashboard | Yes | Instance management dashboard |
GET | /instances/$instanceId | Yes | Single instance detail page |
API Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
POST | /api/webhooks/lemonsqueezy | HMAC | LemonSqueezy subscription webhooks — handles subscription_created, subscription_updated, subscription_cancelled |
POST | /api/webhooks/instance-status | Bearer | Worker callback — updates instance status (running, destroyed, failed) |
Server Functions (RPC)
| Function | Method | Auth | Description |
|---|---|---|---|
getInstances | GET | Yes | List all instances for the current user |
getInstance | GET | Yes | Get a single instance by ID |
createInstance | POST | Yes | Create a new Sherpa instance |
destroyInstance | POST | Yes | Destroy a running instance and cancel its subscription |
createCheckout | POST | Yes | Create a LemonSqueezy checkout session for an instance |