Documentation Index
Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt
Use this file to discover all available pages before exploring further.
VercelResource exposes a Vercel account or team as a read-only tree of projects, deployments, and recent build logs.
Node
pnpm add @struktoai/mirage-node
import { MountMode, VercelResource, Workspace } from '@struktoai/mirage-node'
const vercel = new VercelResource({
token: process.env.VERCEL_TOKEN,
teamId: process.env.VERCEL_TEAM_ID,
})
const ws = new Workspace({ '/vercel': vercel }, { mode: MountMode.READ })
await ws.execute('ls /vercel/projects/')
Browser
pnpm add @struktoai/mirage-browser
The browser variant routes through an HTTP driver so the token never reaches the page directly:
import { MountMode, VercelResource, Workspace } from '@struktoai/mirage-browser'
const vercel = new VercelResource({
baseUrl: '/api/vercel-proxy',
})
Config
| Field | Default | Notes |
|---|
token | none | Vercel API token. Redacted in snapshots. |
teamId | none | Restrict to a specific team. |
baseUrl | https://api.vercel.com | Override for proxies. |
defaultListLimit | 100 | Default page size. |
Mount mode
read.