Below is a starting point for a Node.js script that checks for out-of-schema fields in Storyblok content. It loads all stories from the Content Delivery API, fetches all component definitions from the Management API, and compares the fields in each story’s content against its component schema. Any fields present in the content but missing from the schema are reported as out-of-schema.
Important: This is meant to customize to fit your own topic but should give you an outline of what is needed to check.
- Node.js 18+ (for native fetch support)
storyblok-js-client
package- Your Storyblok space access token (for Content Delivery API)