Socket
Book a DemoInstallSign in
Socket

@contentful/experiences-core

Package Overview
Dependencies
Maintainers
4
Versions
717
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/experiences-core

## Private Package Notice

Source
npmnpm
Version
3.7.0-dev-20250917T1515-4c340b9.0
Version published
Weekly downloads
7.4K
37.22%
Maintainers
4
Weekly downloads
 
Created
Source

@contentful/experiences-core

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.

Purpose

  • To contain shared code and utilities across the Experiences packages such as constants, types, transformers, and hooks.
  • This means additions to core should be framework agnostic. For example, code that is only compatible with React does not belong in the core package.

Concepts

  • Deep binding: Relates to the ability to resolve multiple references. Such an entry containing a reference to another entry which may also contain a reference to another entry and so on.
  • Component definition Baseline definition to outline what is needed to define all component types whether it is a structure, built-in, or custom component.
  • Entity: Contentful entries that get converted into an experience object that can be used within the experiences packages.
  • Fetchers: The helper classes and functions in the Entity directory get consumed by the fetchers which get bundled up into either fetchBySlug or fetchById. The listed fetchers are the two main functions that are exposed to the end user in the SDK to fetch a user's experience which is stored in Contentful as an entry.
  • Registries: An in-memory storage technique that the user can decide to provide for themselves or other personas in the editor canvas. Design tokens is an useful example where a user can provide their own thematic values with regards to text size, component sizes, spacing, colors, and borders in a JSON format that is resolved by the registry and provided as options in the UI editor sidebar.
  • Exporting types and constants: Notice in the package.json there is a typesVersions definition that separates the constants and types as separated bundled packages where the rollup is defined in the rollup.config.mjs file. This effectively means in practice consuming the types and constants have different imports - namely @contentful/experiences-core/constants and @contentful/experiences-core/types.
  • Data structures
  • Design tokens

FAQs

Package last updated on 17 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts