Skip to content

GitLab

Emulated GitLab GraphQL API for local development and testing.

Serves POST /api/graphql backed by the real GitLab schema SDL.

Included now:

  • POST /api/graphql
  • Full GraphQL schema introspection against the real GitLab SDL
  • Query validation against the schema

Query resolvers and seed data are follow-up work — today the emulator is enough for clients that build against the schema (codegen, IDE tooling, connection smoke tests).

Terminal window
# From this repo (after `bun install && bun run build`)
bun packages/emulate/dist/index.js --service gitlab
# Or from the published package
npx @pleaseai/emulate --service gitlab

A single service starts on the base port (default 4000). Use -p <port> to change it. When started alongside other services, ports are assigned sequentially from the base port.

Terminal window
curl http://localhost:4000/api/graphql \
-H "Content-Type: application/json" \
-d '{"query":"{ __schema { queryType { name } } }"}'

The GitLab emulator takes no seed data yet:

gitlab: {}