Alternative · target: prism alternative

Prism Alternative for Webhook delivery API Seed Data

User wants a mock server but also needs persistent, relational seed rows behind it.

Direct answer

SchemaSeed reads the Webhook delivery API schema and writes loadable rows; Prism serves example responses over HTTP and emits no relational seed data. The gap appears with cross-table references.

That gap only matters once the fixture has two or more tables that reference each other, or once a test suite must assert the API rejects malformed input; for one flat schema Prism is usually sufficient.

The same Webhook delivery API schema run through Prism yields a JSON document whose attempts.subscription_id reference values that match no parent row; the reference engine rejected that shape with "FOREIGN KEY constraint failed".

Data as of 2026-11-18 · source: 30 Stack Overflow questions, 12 Hacker News stories, prismjs at 184,613,855 monthly downloads · negative-case messages reproduced by executing the fixture against a local SQL engine (Node.js v24.22.0, engine 3.53.4) at 2026-11-18T11:53:54.233Z

What the incumbent does well — Webhook delivery

Prism is a mature tool and it is not going away. For a single flat schema it produces valid JSON faster than anything else, and its API surface is small enough to learn in an afternoon. If your Webhook delivery API fixture is one table with no cross-table references, the honest answer is that Prism is enough and this page will not change your mind.

The gap that matters for relational seeds

The gap appears the moment the fixture stops being one table. Prism reads one schema and produces one document; it has no second schema to read, so it cannot know that attempts.subscription_id must point at a row in subscriptions. The result is values that are individually plausible and collectively unloadable. The reference engine rejected exactly that shape with "FOREIGN KEY constraint failed".

Side by side on the same fixture

The table below scores the two approaches against the identical Webhook delivery API fixture. The rows are not opinions about architecture; each one is a property of the fixture that the reference engine can verify. The decisive row is the foreign key row, because a JSON document can carry a dangling reference without any tool complaining until the moment it is loaded.

Migrating an existing fixture

You do not have to rewrite your fixture. Keep the schema file, run the generator against it, and diff the output against the rows you already have. For Webhook delivery API the diff is usually small: 2 tables, and the changes are the constrained columns, which are the ones a hand-written seed gets wrong most often. The negative case set is additive, so nothing you already depend on is lost.

How to decide in under a minute

Two questions decide it. Does your schema have more than one table that reference each other? Does your test suite need to prove the API rejects malformed input? If both answers are no, stay on Prism. If either is yes, the missing piece is the same in both cases: a generator that reads the whole document and treats the constraints as part of the contract rather than as decoration.

SchemaSeed vs Prism on the Webhook delivery API fixtureEight criteria, each decided by a property of the fixture rather than by preference. The left column is what a schema-to-SQL generator does with it; the right column is what document generation leaves unresolved.
CriterionSchemaSeedPrismWhat decided it
Reads a multi-file OpenAPI documentyesyesboth resolve local $ref chains
Honours NOT NULLyespartialboth read the required array
Honours enum, range and length declarationsyespartialthe fixture declares subscriptions.active with "active" IN (0,1); the declaration is read out of the schema, the DDL carries it as a CHECK constraint and the value that breaks it ships as a negative case
Honours enum membersyesyesthe enum array is copied verbatim
Produces SQL, not just JSONyesnooutput format is the difference
Resolves foreign keys across schemasyesnothe fixture has attempts.subscription_id pointing at subscriptions, and the second tool never reads that table
Emits deliberately invalid instancesyesnonegative cases are a separate output
Same seed produces the same bytesyesnoboth are seedable
Real constraint failures for the Webhook delivery API fixtureReproduced by executing the fixture against a local SQL engine (Node.js v24.22.0, engine 3.53.4) on 2026-11-18T11:53:54.233Z. The message column is verbatim engine output; the SQLSTATE column is the PostgreSQL error class for the same constraint class.
Failure classColumnSQLSTATEError nameEngine message (verbatim)
Missing required fieldsubscriptions.callback_url23502not_null_violationNOT NULL constraint failed: subscriptions.callback_url
Out-of-contract valuesubscriptions.active23514check_violationCHECK constraint failed: subscriptions_active_check
Dangling foreign keyattempts.subscription_id23503foreign_key_violationFOREIGN KEY constraint failed
The four checks that decide whether a schema tool is enough for Webhook delivery APIApplied to Webhook delivery API.
CheckResult on this fixtureConsequence
More than one table references anotheryes — attempts → subscriptionsthe generator must resolve cross-table references
Output has to be SQL, not JSONyes — the target is PostgreSQLa document generator produces the wrong artefact
Tests must assert the API rejects bad inputyes — a negative case for every declaration in the schemanegative instances have to be generated separately
Same seed must reproduce the same bytesyes — seed 42 is fixedfixtures can be committed and diffed
attempts.json

npx --yes @wenlu8848/schemaseed generate --input ./alt_webhooks.openapi.yaml --out ./seed --formats json --count 10 --seed 42

Download alt_webhooks.openapi.yaml

[
  {
    "id": "9e939d78-1ad9-4239-bb31-6f4c6e61319d",
    "subscription_id": {
      "id": "7b189b0f-3d46-4743-9180-5ca039250424",
      "callback_url": "https://test.dev/river/738",
      "event_type": "quartz indigo",
      "active": 0
    },
    "status_code": 18,
    "duration_ms": 421,
    "tried_at": "2020-02-25T20:13:59.000Z"
  },
  {
    "id": "4aae95d9-3806-4659-b0e6-9a677cc4acdc",
    "subscription_id": {
      "id": "e0699091-e40f-4257-9b51-02680101c407",
      "callback_url": "https://test.dev/fable/822",
      "event_type": "Ada Moreau",
      "active": 0
    },
    "status_code": 23,
    "duration_ms": 812,
    "tried_at": "2025-03-22T23:29:25.000Z"
  },
  {
    "id": "3a1f00a9-dc0e-4a40-bea7-5cd4163ed19f",
    "subscription_id": {
      "id": "2ea8c099-9f30-4191-8b93-00a80b8c4145",
      "callback_url": "https://example.org/meadow/226",
      "event_type": "Nairobi, Harbor Road 232",
      "active": 0
    },
    "status_code": 73,
    "duration_ms": 483,
    "tried_at": "2021-02-08T19:14:18.000Z"
  },
  {
    "id": "66088354-b855-41af-8a7b-010af595d85e",
    "subscription_id": {
      "id": "309e117e-7ed9-47c5-8ecc-13ab2329074d",
      "callback_url": "https://example.com/delta/46",
      "event_type": "indigo kelp",
      "active": 0
    },
    "status_code": 219,
    "duration_ms": 607,
    "tried_at": "2024-08-01T21:53:27.000Z"
  },
  {
    "id": "15c4aedb-24e1-4544-bf63-b3d886c34a8d",
    "subscription_id": {
      "id": "ec63a659-49ad-4ecd-b235-708cfe89164b",
      "callback_url": "https://example.com/cedar/190",
      "event_type": "willow indigo",
      "active": 0
    },
    "status_code": 554,
    "duration_ms": 274,
    "tried_at": "2025-10-03T16:25:54.000Z"
  },
  {
    "id": "e26bf2f7-2d46-48dc-8c76-1a51dad6cdd5",
    "subscription_id": {
      "id": "88bcab5c-ff75-4e81-a58b-a0a62a5913f7",
      "callback_url": "https://example.com/indigo/408",
      "event_type": "pebble-quartz-497",
      "active": 0
    },
    "status_code": 19,
    "duration_ms": 199,
    "tried_at": "2026-11-16T21:54:18.000Z"
  },
  {
    "id": "495edb8b-561c-4a8c-aa0d-aa3839c8dd4c",
    "subscription_id": {
      "id": "e2817f3e-df5d-4c56-acb1-46dfddf26547",
      "callback_url": "https://example.com/umbra/168",
      "event_type": "ember bravo",
      "active": 0
    },
    "status_code": 102,
    "duration_ms": 208,
    "tried_at": "2023-12-07T10:51:56.000Z"
  },
  {
    "id": "6b962036-48c6-414f-afb0-fd737c1743a7",
    "subscription_id": {
      "id": "afe9eb29-e588-4b88-9e02-e6683e6aed4d",
      "callback_url": "https://example.org/bravo/352",
      "event_type": "onyx meadow",
      "active": 0
    },
    "status_code": 510,
    "duration_ms": 69,
    "tried_at": "2021-01-19T19:09:03.000Z"
  },
  {
    "id": "64fc89a9-c1c9-42d5-be93-f975aa6cd82d",
    "subscription_id": {
      "id": "13283db6-74d7-4f50-9666-5869fa63b58c",
      "callback_url": "https://example.com/summit/392",
      "event_type": "Toronto, Riverside Lane 118",
      "active": 0
    },
    "status_code": 593,
    "duration_ms": 236,
    "tried_at": "2021-10-06T15:39:24.000Z"
  },
  {
    "id": "8dfb0ef3-ec73-47ef-8af2-fbf9bc001241",
    "subscription_id": {
      "id": "c5eeac67-d94d-486d-bb6d-c6ae57c1b65a",
      "callback_url": "https://example.org/meadow/518",
      "event_type": "Berlin, Riverside Lane 210",
      "active": 0
    },
    "status_code": 385,
    "duration_ms": 36,
    "tried_at": "2022-04-19T03:25:17.000Z"
  }
]

Frequently asked questions

Is Prism still worth using?
For one flat schema, yes. The gap opens on Webhook delivery API: Prism produces values for a single schema, while this fixture has 2 related tables that have to load together.
Can I keep the fixtures I already wrote?
Yes. Regenerate against the same Webhook delivery API schema and diff. On this fixture only the constrained columns move, and the negative cases are additive.
Does SchemaSeed replace Prism entirely?
No. It is a different artefact: Prism produces values for one schema, SchemaSeed produces JSON fixture files plus invalid instances for 2 related tables.
Is there a paid version?
No. The CLI is MIT licensed and free: unlimited local generation, no account, no telemetry and no usage limit, and it runs on your own machine. Sponsorship is what keeps it maintained.

Run it against your own schema

SchemaSeed is MIT licensed and free: unlimited local generation, no account, no telemetry and no usage limit. It reads your schema file on your own machine, so nothing is uploaded anywhere. If it saves you time, you can support the project.

Get SchemaSeed — free Support the project

Questions: support@schemaseed.drz8848.win