npm install @contentstack/ui-extensions-sdk

The Extensions SDK allows you to extend Contentstack’s UI by helping you create Custom Fields, Custom Widgets, and Dashboard Widgets.

About @contentstack/ui-extensions-sdk

The "@contentstack/ui-extensions-sdk" is a powerful npm package designed to enhance the flexibility and functionality of Contentstack, a leading headless CMS platform. By leveraging this SDK, developers can create custom fields, widgets, and dashboard widgets, tailoring the administrative interface to meet specific business needs. This customization capability makes the Contentstack environment much more adaptable, enabling businesses to implement unique solutions that can drive efficiency and user engagement. The SDK provides a set of APIs that interact seamlessly with the Contentstack ecosystem, ensuring a smooth integration process and a robust development experience.

For developers looking to extend Contentstack's capabilities, the command npm install @contentstack/ui-extensions-sdk is the first step. Installing this package allows developers to tap into a rich set of features that enhance the Contentstack user interface. Once installed, developers can build custom solutions that can interact efficiently with Contentstack’s backend, providing users with a more personalized and efficient platform experience. The installation process is straightforward, ensuring that developers can quickly set up and start developing custom extensions without hassle.

The "@contentstack/ui-extensions-sdk" not only simplifies the process of creating custom extensions but also ensures that these extensions are scalable and maintain the integrity of the overall platform. Developers can use the SDK to build extensions that are both powerful and secure, maintaining a high standard of performance and reliability. This makes the SDK an invaluable tool for businesses that require a high degree of customization in their content management systems. By using the "@contentstack/ui-extensions-sdk", businesses can leverage the power of Contentstack to its fullest potential, creating a more dynamic, efficient, and user-friendly content management environment.

More from contentstack

contentstack npm packages

Find the best node modules for your project.

Search npm

contentstack

Contentstack Javascript...

Read more
,

@contentstack/utils

Contentstack utilities for...

Read more
,

@contentstack/live-preview-utils

Contentstack provides the Live Preview SDK to establish a communication channel between the various...

Read more
,

@contentstack/management

The Content Management API is used to manage the content of your Contentstack...

Read more
,

@contentstack/json-rte-serializer

This Package converts Html Document to Json and vice-versa...

Read more
,

@berlitz/gatsby-source-contentstack

Gatsby source plugin for building websites using Contentstack as a data...

Read more
,

@contentstack/cli-cm-import

Contentstack CLI plugin to import content into...

Read more
,

@contentstack/cli-command

Contentstack CLI plugin for...

Read more
,

@contentstack/ui-extensions-sdk

The Extensions SDK allows you to extend Contentstack’s UI by helping you create Custom Fields,...

Read more
,

gatsby-source-contentstack

Gatsby source plugin for building websites using Contentstack as a data...

Read more
,

@contentstack/app-sdk

The Contentstack App SDK allows you to customize your Contentstack applications...

Read more
,

@contentstack/cli-cm-export

Contentstack CLI plugin to export content from...

Read more

Dependencies

Core dependencies of this npm package and its dev dependencies.

post-robot, wolfy87-eventemitter, @babel/cli, babel-eslint, babel-loader, babel-preset-env, braces, css-loader, docdash, eslint, eslint-config-airbnb, eslint-loader, eslint-plugin-import, inject-loader, istanbul, istanbul-instrumenter-loader, jasmine, jasmine-core, jsdoc, jsdoc-to-markdown, jsonfile, karma, karma-chrome-launcher, karma-coverage, karma-coverage-istanbul-reporter, karma-eslint, karma-firefox-launcher, karma-jasmine, karma-jasmine-html-reporter, karma-safari-applescript-launcher, karma-sourcemap-loader, karma-spec-reporter, karma-summary-reporter, karma-webpack, mini-css-extract-plugin, nyc, ssri, webpack, webpack-cli, webpack-dev-server, webpack-shell-plugin-next

Documentation

A README file for the @contentstack/ui-extensions-sdk code repository. View Code

Contentstack Extensions SDK

The Extensions SDK allows you to extend Contentstack’s UI by helping you create Custom Fields, Custom Widgets, and Dashboard Widgets.

Custom Fields enable users to introduce simpler interface controls, such as color picker, code editor, video selector, and more, or maybe complex micro web applications such as Shopify or Snipkart. Because of their dissociated nature, custom fields can be reused multiple times.

Custom Widgets are like micro content-processing apps that help you analyze the entry content and provide recommendations. Some of the useful widgets you can create using this type of extension are text intelligence, SEO recommendations, language translation, grammar checker and more.

Dashboard Widgets let you add powerful widgets to the stack’s dashboard that let users do more from a centralized location. Some examples of this type of extension include personal notes, recently published content, notification centre, and stack usage summary.

This SDK overview document introduces you to the concept of custom extensions.

Getting started

Include the compiled version of the extension client library by adding the following line to your application.

<script
    src="https://unpkg.com/@contentstack/ui-extensions-sdk@2.2.3/dist/ui-extension-sdk.js"
    integrity="sha512-LMktiFAj7j/AUFctMlgY8qmLrLIQVctwwCsnCXIWnvgF9JlanilvFbZxOCtPNB5eO3vp2Nhw9ED1UsWa+ltSvQ=="
    crossorigin="anonymous"
></script>

Extensions examples

Custom Fields

Some of the examples of custom field extensions are:

Custom Widgets

Some of the examples of custom widget extensions are:

Dashboard Widgets

Some of the examples of the dashboard widget extensions are:

Using Contentstack styles

Extensions are rendered within an iframe, you will need to include the ui-extension-sdk.min.css library within your custom extension in order to use any of the styles provided by Contentstack.

Include the CSS file in your extension code as follows:

<link
    rel="stylesheet"
    type="text/css"
    href="https://unpkg.com/@contentstack/ui-extensions-sdk/dist/ui-extension-sdk.css"
    integrity="sha512-yPPI/jWiqPr0HIh+1A2QPP5p58sSYqbPoBykxIuBckT1vzGwNbrOmwYM03qGI4ffnxd7q4kkoDys0kdZzxYn9A=="
    crossorigin="anonymous"
/>

For more information on styling your extension, refer to our style guide.

More information

License

Licensed under MIT.