npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@contentful/experiences-validators

v3.8.4

Published

*Note*: This package is not meant to be used directly by the end user. It is a dependency for the Studio Experiences packages. Changes to this package are not guaranteed to follow semantic versioning and may break without notice if used directly.

Readme

@contentful/experiences-validators

Private Package Notice

Note: This package is not meant to be used directly by the end user. It is a dependency for the Studio Experiences packages. Changes to this package are not guaranteed to follow semantic versioning and may break without notice if used directly.

This package defines schemas and validator functions for experience data structures in the Experiences SDK. These validators ensure the integrity and correctness of the data used in experiences.

Purpose

Defines and exports schema validators for experience and pattern entries as well for component definitions. Exports types related to experience fields inferred from the schemas.

Concepts

  • schemaVersion Each experience or pattern entry contains the schema version it need to conform to under fields -> componentTree -> schemaVersion. We use this version to know which schema validations to run.
  • schemas Under the schemas folder we define the schema validations for each schema version we support. Can also contain other schema used in Studio Experiences, e.g. schema for the component definitions. All schemas are defined using the Zod libary.
  • validators Functions that validate different entities, e.g. experiences using the schemas defined in this package.
  • ExperienceEntryFields This includes only the reserved key terms for experiences fields: componentTree, dataSource, unboundValues, componentSettings and usedComponents. These validators are not meant to validate any custom fields.
  • This package is built for both CommonJS and ESM format as it is being used both in our frontend and backend applications.

Relevant Contentful Documentation Links