Sitecore Content SDK for XM Cloud

The Content SDK enables developers to integrate XM Cloud content with their front-end JavaScript applications. Content SDK includes APIs and services that fetch XM Cloud data and uses it to build and deliver pages to site visitors using a JavaScript framework. It also provides seamless integration with other Sitecore products such as Personalize.

With Content SDK you can develop apps locally, quickly creating bespoke components before pushing your changes back to XM Cloud so that marketers can use the latest components to build their customer experiences. You can test changes before publishing them by connecting your local rendering host to the XM Cloud Pages visual editor and fetching the latest data from your remote instance.

Using a starter kit template, you can immediately generate a new Content SDK app that you can customize to suit your business needs.

Note

Content SDK is open-source under the Apache 2.0 license. You are welcome to submit contributions to the public GitHub repo via pull requests. The changelog lists updates grouped by version in chronological order, with unreleased changes at the top.

Key features

  • Integration with XM Cloud Pages for visual editing and testing of components.

  • A Next.js JavaScript starter template for rapid integration and delivery.

  • Personalization and component A/B/n testing integration with no custom coding required, allowing you to easily deploy multiple variants of a page to different audience categories (such as time zone or language), and test component variants among percentages of your total site visitors.

  • Multi-site support for environments serving multiple independent sites.

  • GraphQL APIs for fetching layout data, dictionary data, and more.

  • Analytics and event tracking support out of the box using the Sitecore Cloud SDK.

  • Framework-specific capabilities, such as Next.js locale-based routing for internationalization, and rendering methods like server-side rendering (SSR) and static site generation (SSG).

How to get started

This documentation contains everything you need to get started building and configuring a Content SDK application, including:

  • A comprehensive getting started guide, including prerequisites and how to connect your Content SDK app with XM Cloud.

  • An architectural overview to help you understand how the various parts of Content SDK integrate with other technologies.

  • Developer guides that explain how to perform common Content SDK tasks.

  • Migration and upgrade guides for developers with existing JSS apps.

Take a look at the table of contents for a full overview.

Do you have some feedback for us?

If you have suggestions for improving this article,