Sitecore JavaScript Services SDK (JSS) for XM Cloud
The JavaScript Services SDK (JSS) enables developers to integrate XM Cloud content with their front-end JavaScript applications. JSS 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 JSS 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 JSS app that you can customize to suit your business needs.
JSS is an open-source SDK under Apache 2.0 license. You are welcome to submit contributions to the public JSS 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.
-
JavaScript starter templates 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 JSS application, including:
-
A comprehensive getting started guide, including prerequisites and how to connect your JSS app with XM Cloud.
-
An architectural overview to help you understand how the various parts of JSS integrate with other technologies.
-
Developer guides that explain common JSS use cases.
-
Migration and upgrade guides for developers with existing JSS apps.
Take a look at the table of contents for a full overview.