Scan your whole stack
From OX Research Newsroom
Are you using @executor-js/emulate?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.17.7
@executor-js/emulate was last scanned on 29 Nov 2026 at version 0.17.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.17.7 LATEST | 29 Nov 2026 | No rules fired |
| 0.17.6 | 27 Nov 2026 | No rules fired |
| 0.17.5 | 27 Nov 2026 | No rules fired |
| 0.17.4 | 27 Nov 2026 | Not shown |
| 0.17.3 | 27 Nov 2026 | Not shown |
Findings for v0.17.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.17.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
This repository is forked from Vercel Labs' emulate project. Useful Software
Co maintains this fork to support deployable emulator surfaces and product
testing flows for our own development and agent-driven use cases.
Local drop-in replacement services for CI and no-network sandboxes. Fully stateful, production-fidelity API emulation. Not mocks.
npx emulate
All services start with sensible defaults. No config file needed:
http://localhost:4000http://localhost:4001 (REST, GraphQL, OAuth, and MCP)http://localhost:4002http://localhost:4003http://localhost:4004http://localhost:4005http://localhost:4006http://localhost:4007http://localhost:4008http://localhost:4009http://localhost:4010http://localhost:4011http://localhost:4012http://localhost:4013 (OAuth 2.0, users, Posts, direct messages, DM media, webhooks with X Activity API DM events, X rate limits)http://localhost:4014 (AuthKit, user directory, organizations, organization domains, Vault, and OAuth)http://localhost:4015http://localhost:4016http://localhost:4017http://localhost:4018 (full real GraphQL schema)http://localhost:4019 (company lookup by work email domain)http://localhost:4020 (Doorkeeper OAuth with DCR, MCP server at /mcp/planetscale)http://localhost:4021 (MCP server at /, OAuth with DCR and HS256 ID tokens)http://localhost:4022 (Responses API and Chat Completions for text, API keys, deterministic answers)http://localhost:4023 (managed-mode MCP server at /api/v1/connect, OAuth per person, per-account tool lists of any size)Every running service also exposes a public control plane under /_emulate:
| Route | Purpose |
|---|---|
GET /_emulate |
Human-readable landing page for the service instance |
GET /_emulate/manifest |
Machine-readable service manifest, including supported surfaces, auth capabilities, spec coverage, and resolved connection snippets |
GET /_emulate/quickstart |
Plain-text instructions for humans and agents |
GET /_emulate/specs |
Advertised specs and protocol surfaces |
GET /_emulate/coverage |
Per-operation coverage report with a summary grouped by status (generated, hand-authored, partial, unsupported) |
GET /_emulate/connections |
Copyable SDK, CLI, env, and curl snippets resolved against this instance (optional ?token=, ?client_id=, ?client_secret=) |
GET /_emulate/openapi |
Redirect to the advertised OpenAPI document when one exists |
GET /_emulate/graphql |
Return the GraphQL endpoint when the service exposes one |
GET /_emulate/mcp |
Return the MCP endpoint when the service exposes one |
GET /_emulate/ledger |
Recent API calls with sensitive fields redacted |
DELETE /_emulate/ledger |
Clear the request ledger |
POST /_emulate/faults |
Arm a one-shot or counted fault against matching provider requests |
GET /_emulate/faults |
List armed faults with remaining counts |
DELETE /_emulate/faults |
Clear all armed faults |
DELETE /_emulate/faults/:id |
Clear one armed fault |
GET /_emulate/logs |
Webhook deliveries plus recent requests |
GET /_emulate/state |
Current emulator store snapshot |
POST /_emulate/reset |
Reset state, webhooks, and request logs, then replay seed data |
POST /_emulate/seed |
Add runtime seed data using the service seed schema |
POST /_emulate/credentials |
Create bearer tokens, API keys, OAuth clients, or client-credentials apps where supported |
POST /_emulate/tokens/revoke |
Revoke one token: later requests with it get the provider's own 401, other tokens keep working |
POST /_emulate/instances |
Return URLs for a lazily created hosted instance with a server-generated, unguessable name |
Stripe exposes the same hand-authored OpenAPI subset at GET /openapi.json and GET /openapi.yaml.
The manifest is the machine-readable single source of truth for a service. Each plugin package owns its manifest and serves it at /_emulate/manifest. It describes service identity, supported surfaces, auth capabilities, specs with per-operation coverage, scenarios, seed schema, state model, reset behavior, inspector tabs, request ledger capabilities, copyable connection snippets, and a docs link. OpenAPI, GraphQL, MCP, discovery documents, and OAuth metadata can inform those surfaces, but the emulator only advertises protocols that match the real service shape.
The request ledger is a core feature, not a debug afterthought. Each entry records a correlation id (honored from X-Correlation-Id or X-Request-Id, echoed back in the X-Correlation-Id response header, otherwise generated), the matched route and operation id, method, host, path, query, sanitized request headers and body, the authenticated identity, the response status with a one-line summary, recorded side effects, webhook deliveries, fault markers, and the request duration. On the hosted Cloudflare surface the ledger is persisted across Durable Object eviction, so it survives instance restarts.
Tests and development harnesses can arm one-shot faults with POST /_emulate/faults. A fault matches all provided criteria: operationId when the emulator can resolve one from its service manifest, method, and pathPattern. pathPattern uses a simple glob where * matches any characters in the request path. Matching requests short-circuit with the configured response, decrement remaining, and are removed at zero. A fault can also match request headers by exact value: "headers": { "authorization": "Bearer tok_1" } faults only that caller (header names are case-insensitive). Faulted requests are still written to /_emulate/ledger with faulted: true and faultId. On the hosted Cloudflare surface armed faults, their remaining counts and the next fault id are persisted with the instance, so a fault keeps its count when Cloudflare replaces the instance between arming it and the requests it targets.
curl -s -X POST "$EMULATOR_URL/_emulate/faults" \
-H "content-type: application/json" \
-d '{"match":{"method":"GET","pathPattern":"/v1/*"},"response":{"status":503,"body":{"error":"temporary"}}}'
Credential creation follows each service's real shape. For example, GitHub can mint a bearer token for a user, Spotify creates a client credentials app, Google/Microsoft/Apple/Okta/Clerk create OAuth/OIDC clients, Stripe and Resend create API-key style credentials, and AWS advertises provider-specific SDK credentials instead of pretending to be OAuth.
The standalone MCP emulator accepts an oauth seed block for RFC 7591, RFC 8414, and RFC 9728 client compliance tests. These settings are read for each request, so POST /_emulate/seed changes a running instance without restarting it:
mcp:
oauth:
issuerOverride: https://evil.example.com
resourceOverride: https://other.example.com/mcp
tokenEndpointAuthMethods: [client_secret_basic]
dcrAuthMethodOverride: client_secret_basic
rejectClientNameContaining: GitHub
Set tokenEndpointAuthMethods to omit to leave token_endpoint_auth_methods_supported out of authorization-server metadata. A client_secret_basic DCR override returns and stores that method, mints a secret, and requires HTTP Basic authentication at /token; client_secret_post continues to require form-body credentials.
The /mcp endpoint authenticates in one of four modes, set with auth in the mcp seed block: oauth (the default: MCP OAuth with dynamic client registration), bearer (Authorization: Bearer <seeded token>), query (?token=<seeded token>, or the name given in queryParam), or none (no sign-in; every request acts as the first seeded user, as a public or locally trusted MCP server does).
Every OAuth consent page that lists users to approve as also has a Deny button. It sends the person back to the client's registered redirect URI with error=access_denied and the request's state (RFC 6749 section 4.1.2.1), in the response mode the request asked for (query, fragment or form_post), and issues no code.
# Start all services (zero-config)
npx emulate
# Start specific services
npx emulate --service vercel,github
# Custom port
npx emulate --port 3000
# Use a seed config file
npx emulate --seed config.yaml
# Generate a starter config
npx emulate init
# Generate config for a specific service
npx emulate init --service vercel
# List available services
npx emulate list
| Flag | Default | Description |
|---|---|---|
-p, --port |
4000 |
Base port (auto-increments per service) |
-s, --service |
all | Comma-separated services to enable |
--seed |
auto-detect | Path to seed config (YAML or JSON) |
--base-url |
none | Override advertised base URL (supports {service} template) |
--portless |
off | Serve over HTTPS via portless (auto-registers aliases) |
The port can also be set via EMULATE_PORT or PORT environment variables.
portless gives emulators trusted HTTPS URLs with auto-generated certs and no browser warnings.
# Start the portless proxy (first time only)
portless proxy start
# Start emulate with portless integration
npx emulate start --portless
Each service registers as a portless alias and gets a named HTTPS URL:
github https://github.emulate.localhost
google https://google.emulate.localhost
slack https://slack.emulate.localhost
If portless is not installed, emulate will prompt to install it (npm i -g portless).
The --portless flag overwrites any existing portless aliases matching *.emulate. Aliases are removed automatically when emulate shuts down.
For a custom base URL without portless (any reverse proxy), use --base-url or the EMULATE_BASE_URL env var:
npx emulate start --base-url "https://{service}.myproxy.test"
The PORTLESS_URL env var is automatically set by the portless CLI wrapper when running a command through it (e.g. portless github.emulate emulate start), typically to a value like https://{service}.emulate.localhost. It supports {service} interpolation, just like --base-url and EMULATE_BASE_URL. When no explicit baseUrl is provided, it is used as a fallback.
Per-service overrides are also supported in the seed config (these take highest priority over all other base URL sources):
github:
baseUrl: https://github.emulate.localhost
All services are available on host-based routing when deployed: github, gitlab, mcp, vercel, google, okta, microsoft, spotify, slack, apple, aws, resend, stripe, mongoatlas, clerk, x, workos, autumn, context, planetscale, miro, openai, zapier, and posthog. Each one supports three addressing forms:
https://github.emulators.dev # service host (control plane only)
https://github.my-instance.emulators.dev # instance host
https://emulators.dev/github/my-instance # local/path form
The instance host and path form route to the same stateful service instance. The subdomain form is preferred for public examples because the provider base URL is the origin itself, which better matches services such as GitHub that expose API, OAuth, GraphQL, and MCP surfaces under service-owned hosts. The instance control plane is available at https://github.my-instance.emulators.dev/_emulate.
Create instances with POST /_emulate/instances: the server generates an unguessable name (an optional {"instance":"<prefix>"} body adds a readable prefix) and returns the instance URLs. The instance URL is a capability. There is no authentication in front of hosted instances, so anyone who has the URL can read state, read the ledger, and mint credentials on that instance. Treat the URL like a token: save the response instead of re-deriving the name, and never put real secrets into an emulator. Hand-picked instance names (addressing an instance host directly) still work for local and private deployments, but a hand-picked name on the public host is guessable by anyone who picks the same one.
The bare service host (for example https://github.emulators.dev) serves a service-level control plane so a human or agent can learn what the service is and connect without first creating an instance. It responds to GET /_emulate, /_emulate/manifest, /_emulate/quickstart, /_emulate/specs, /_emulate/coverage, /_emulate/connections, /_emulate/openapi, and POST /_emulate/instances. There is no shared instance behind the service host: provider routes return a 404 pointing at instance creation, so all provider traffic happens on an instance of your own.
A global catalog lists every hosted service from any host, including the apex:
GET /_emulate/services
It returns each service's id, name, description, service host, instance host pattern, path form, and manifest URL, so agents can discover the full surface without repository context.
The apex https://emulators.dev is the emulator catalog: a links-out landing page that lists every emulator and links to each one's service host. The console builds it from GET /_emulate/services. The apex is not the docs site.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.