# WordPress draft payload — personal demonstration

Run `node --test test.cjs` with Node.js 18 or newer. Open index.html to use the local browser demo. No dependencies, requests, account or secret required.

The shared payload.js validates a small input schema, copies title and HTML content, deduplicates positive integer category/tag IDs and always emits status draft. Unknown fields are refused. The browser clears an output on editing, displays HTML as textContent and exports only the latest prepared payload.

The demonstration intentionally does not sanitize HTML. Never submit untrusted HTML without the destination's appropriate checks. It does not verify IDs, connect to WordPress or Make, generate content, set SEO-plugin metadata, authenticate, submit posts, deduplicate operations or prove WordPress rendering. IDs and article are fictional. There is no backend or browser storage.

Official reference checked 2026-09-17: https://developer.wordpress.org/rest-api/reference/posts/ — Create a Post, POST /wp/v2/posts; title/content/categories/tags/status fields. Draft is an accepted post status.

Parent request arose from a public workflow need: https://community.make.com/t/im-looking-for-freelancer-for-one-of-my-project/114603 (September 7, 2026). This is a personal prototype, not work delivered to that requester.
