{"id":50454071,"url":"https://github.com/mizcausevic-dev/frontend-contract-testing-for-wordpress","last_synced_at":"2026-06-01T01:05:39.265Z","repository":{"id":358397554,"uuid":"1241251977","full_name":"mizcausevic-dev/frontend-contract-testing-for-wordpress","owner":"mizcausevic-dev","description":"TypeScript contract testing control plane for WordPress REST and WPGraphQL payloads against frontend component expectations before publish.","archived":false,"fork":false,"pushed_at":"2026-05-17T06:33:44.000Z","size":1255,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T08:39:32.094Z","etag":null,"topics":["content-governance","contract-testing","frontend-testing","headless-cms","rest-api","typescript","wordpress","wpgraphql"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-17T06:31:02.000Z","updated_at":"2026-05-17T06:33:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/frontend-contract-testing-for-wordpress","commit_stats":null,"previous_names":["mizcausevic-dev/frontend-contract-testing-for-wordpress"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/frontend-contract-testing-for-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Ffrontend-contract-testing-for-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Ffrontend-contract-testing-for-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Ffrontend-contract-testing-for-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Ffrontend-contract-testing-for-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/frontend-contract-testing-for-wordpress/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Ffrontend-contract-testing-for-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["content-governance","contract-testing","frontend-testing","headless-cms","rest-api","typescript","wordpress","wpgraphql"],"created_at":"2026-06-01T01:05:37.284Z","updated_at":"2026-06-01T01:05:39.260Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frontend Contract Testing for WordPress\n\nTypeScript control surface for **testing WordPress REST and WPGraphQL payloads against real frontend component expectations before publish or deploy breaks delivery**.\n\n\u003e **What this repo proves**\n\u003e\n\u003e Content model drift is only half the problem. The other half is whether the payload still matches what the frontend actually expects route by route.\n\n## Why this repo exists\n\nHeadless WordPress stacks break in production when content payloads evolve faster than the frontend fixtures, search templates, and answer surfaces built on top of them. A field disappears, a nested collection changes type, or a GraphQL result node stops matching the card or page shell that consumes it.\n\n`frontend-contract-testing-for-wordpress` models that delivery risk directly. It treats payload fixtures as a release gate, scores freshness and drift, and exposes which routes should be blocked before they reach users.\n\n## Screenshots\n\n![Overview](./screenshots/01-overview-proof.png)\n![Contract matrix](./screenshots/02-contract-matrix-proof.png)\n![Payload failures](./screenshots/03-payload-failures-proof.png)\n![Verification](./screenshots/04-verification-proof.png)\n\n## What it includes\n\n- Express app with HTML proof surfaces and JSON APIs\n- sample WordPress REST and WPGraphQL payload fixtures\n- route-to-component contract matrix\n- missing-field and type-mismatch failure views\n- fixture freshness and release verification lanes\n- real browser-rendered README proof assets\n\n## Local run\n\n```powershell\ncd frontend-contract-testing-for-wordpress\nnpm install\nnpm run dev\n```\n\nOpen:\n\n- [http://127.0.0.1:5228/](http://127.0.0.1:5228/)\n- [http://127.0.0.1:5228/contract-matrix](http://127.0.0.1:5228/contract-matrix)\n- [http://127.0.0.1:5228/payload-failures](http://127.0.0.1:5228/payload-failures)\n- [http://127.0.0.1:5228/verification](http://127.0.0.1:5228/verification)\n- [http://127.0.0.1:5228/docs](http://127.0.0.1:5228/docs)\n\n## Validation\n\n```powershell\nnpm run verify\nnpm run render:assets\n```\n\n## API routes\n\n- `GET /api/dashboard/summary`\n- `GET /api/fixtures`\n- `GET /api/failures`\n- `GET /api/contract-matrix`\n- `GET /api/verification`\n- `GET /api/sample`\n\n## Docs\n\n- [Architecture notes](./docs/architecture.md)\n- [Why we built this](./docs/ORIGIN.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Ffrontend-contract-testing-for-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Ffrontend-contract-testing-for-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Ffrontend-contract-testing-for-wordpress/lists"}