@emulators/linear
v0.12.1
Published
Stateful Linear GraphQL API emulator for local development and CI.
Readme
@emulators/linear
Stateful Linear GraphQL API emulator for local development and CI.
Part of emulate, local drop-in replacement services for CI and no-network sandboxes.
Install
npm install @emulators/linearMost users should run it through the main CLI:
npx emulate --service linearSupported Surface
POST /graphqlfor a focused Linear GraphQL subset.- Queries for viewer, organization, users, teams, workflow states, issues, comments, labels, projects, cycles, webhooks, and agent sessions.
- Issue selections include numeric
priorityand the derivedpriorityLabel. - Mutations for issues, comments, labels, webhooks, and basic agent sessions and activities.
- OAuth authorize, token, refresh, revoke, PKCE, client credentials, and app actor tokens.
- Personal API key and OAuth bearer token auth.
- Linear-shaped webhook delivery with
Linear-Delivery,Linear-Event, andLinear-Signatureheaders. - Local inspector at
/.
OAuth app actor config is authoritative. Apps configured with actor: user use authorization code flows. Apps configured with actor: app use the app install flow and can request client credentials tokens.
This is not a complete Linear clone. Unsupported GraphQL fields return GraphQL errors.
