Netlify

Lightweight, dependency-free, in-memory Netlify API (api/v1) fake for testing code that uses the netlify Node SDK or the raw Netlify REST API.

Default port: 4771

Quick start

import { NetlifyServer } from "./services/netlify/src/server.js";

const server = new NetlifyServer(4771);
await server.start();
// ... run your app/tests ...
await server.stop();

Point a client at it:

const res = await fetch("http://127.0.0.1:4771/api/v1/user", {
  headers: { Authorization: "Bearer nfp_parlel" },
});
const user = await res.json();
// user.email => "parlel-user@parlel.dev"

Access via MCP / preview URL

All /api/v1/* routes require Authorization: Bearer <token> (any non-empty token accepted).

Implemented operations

State is in-memory and ephemeral.

Service & inspection (parlel extensions)

Surface coverage

This emulator faithfully replicates the API surface most application code and agents exercise. Anything below the supported lines is either an intentional design choice for a fast, zero-cost local emulator (✓ By design) or a candidate for a future release (⟳ Roadmap) — never a silent inaccuracy.

Legend: ✅ fully supported · ◐ accepted (stored, not strictly enforced) · ✓ by design · ⟳ on the roadmap.

FeatureStatus
GET /api/v1/user✅ Supported
Sites list / create / get / update / delete✅ Supported
Deploys list / create / get✅ Supported
Bearer auth✅ Required (any non-empty token)
Real file upload / build / digest deploy⟳ Roadmap — Deploys are instantly ready
Forms / functions / DNS / hooks⟳ Roadmap
Pagination headers✓ By design — Not emitted
Scope enforcement✓ By design — Any non-empty credential is accepted — no real secrets needed

Error codes & shapes

Netlify error envelope: { "code": 404, "message": "..." }.

StatusWhen
401missing/invalid authorization
404unknown resource
405method not allowed

Manifest

See services/netlify/manifest.json:

<!-- parlel:testenv:start -->

Configuration — test.env

Copy these into your test.env (used by the bridge sidecar flow). Tokens are Parlel's seeded test credentials — any non-empty value is accepted by the emulator, so you rarely need to change them. Swap in real credentials only when pointing at the live service in prod.env.

NETLIFY_AUTH_TOKEN=nfp_parlel
NETLIFY_API_URL=http://parlel-bridge:4771
<!-- parlel:testenv:end -->