Frequently Asked Questions

UI Extensions: Overview & Migration

What are UI Extensions in Hygraph?

UI Extensions in Hygraph are web apps that allow you to replace default components in the content editor with custom solutions. Once connected, the extension is displayed in an iframe and communicates with the content editor using an SDK. UI Extensions can be built using any language and framework (with current SDK support for React), hosted on your own domain, and can include server-side flows such as authenticating with third-party platforms. Learn more.

Are UI Extensions deprecated in Hygraph?

Yes, UI Extensions have been deprecated and will be removed by the end of 2023. Users are advised to migrate to the Hygraph App Framework. Documentation for migration is available here.

What should I do if I am currently using UI Extensions?

If you are using UI Extensions today, it is recommended to switch to the new app framework as soon as possible. This ensures continued support and access to the latest features. Read more.

Features & Capabilities

What can UI Extensions do in Hygraph?

UI Extensions allow you to customize the Hygraph content editor by replacing default components with your own solutions. You can build extensions using any language or framework (SDK support for React), host them on your own domain, and implement server-side flows such as third-party authentication. Extensions can interact with form fields, render custom dialogs, and be installed from local development environments. Learn more.

What is an Extension Declaration for a Hygraph UI Extension?

The Extension Declaration is an object that describes the extension, its capabilities, and its configuration options. It is essential for defining how your extension interacts with the Hygraph editor. Detailed documentation is available here.

How do I install and use UI Extensions in Hygraph?

To install a UI Extension, follow the step-by-step guide provided in the documentation. You can install extensions from local development environments and use both Field and Sidebar UI Extensions. Customization options are available for sidebar widgets, and you can preview your customized sidebar. Installation guide.

What SDKs are available for building UI Extensions?

Hygraph provides both a JavaScript SDK and a React SDK for building UI Extensions. The JavaScript SDK allows you to use native JavaScript or your preferred framework and bundler, while the React SDK leverages components and hooks for a React experience. JavaScript SDK | React SDK

What types of UI Extensions can I build in Hygraph?

You can build Field Extensions and Sidebar Extensions in Hygraph. Field Extensions allow you to customize how fields are rendered and interacted with, while Sidebar Extensions enable custom sidebar widgets such as a Google SERP Preview. Quickstart guides are available for both types: Field Extension Quickstart | Sidebar Extension Quickstart

Use Cases & Benefits

How do UI Extensions benefit content teams?

UI Extensions allow content teams to interact more with content stored externally while ensuring consistency wherever it is used. For example, Top Villas uses UI Extensions and Remote Fields to keep content pages up-to-date and reflect the most current offerings. Read the Top Villas case study.

What are some real-world examples of UI Extensions in use?

Top Villas leverages UI Extensions to enable their content team to interact with external content sources and maintain consistency across all content pages. This ensures that the most up-to-date information is always available and reflected in their offerings. See the case study.

Technical Details & API Reference

How do UI Extensions interact with the Hygraph editor?

UI Extensions communicate with the Hygraph content editor using an SDK. They can interact with form fields, render custom dialogs using the openDialog method, and support options for customizing dialog types and parameters. Dialog documentation.

Where can I find API references for UI Extensions?

API references for UI Extensions are available for hooks, field extensions, sidebar extensions, and additional types such as model, form, locale, stage, user, dialog, and toasts. Access API Reference.

Support & Documentation

Where can I find documentation and guides for UI Extensions?

Comprehensive documentation and guides for UI Extensions are available in the Hygraph Classic Docs. These include quickstart guides, extension declaration details, installation instructions, and API references. Explore UI Extensions documentation.

Security & Compliance

What security and compliance certifications does Hygraph have?

Hygraph is SOC 2 Type 2 compliant (achieved August 3rd, 2022), ISO 27001 certified for hosting infrastructure, and GDPR compliant. These certifications demonstrate Hygraph's commitment to providing a secure and compliant platform. For more details, visit the security features page.

Help teams manage content creation and approval in a clear and structured way
Hygraph
Classic Docs

#UI Extensions

A UI extension is a web app inside Hygraph. UI extensions allow you to replace default components in the content editor with custom solutions.

Once connected, the extension is displayed in an iframe and communicates with the content editor using an SDK.

With UI extensions, you can:

  • Use any language and framework to build it (eventually, as the current SDK version is for React).
  • Host it on your own domain.
  • Build flows requiring server-side treatment, like authenticating with another 3rd party platform.

#Next steps

#Section contents

This section offers a contents map to help you readily find what you're looking for.

#Getting started

DocumentContents
Start hereContains basic information about what a UI extension is inside Hygraph, as well as some useful links to our quickstarts.
Extension declarationContains information about the Extension Declaration, which is an object describing the extension, its capabilities and configuration options.
Interacting with the form and other fieldsContains information about how UI extensions can interact with the other fields of the form, and with the form itself.
DialogsContains information about how UI extensions can render pages inside of a native Hygraph dialog, or modal, via the openDialog method. In this document you will also find an example, an explanation on the options you can use for the second parameter of openDialog(url, options), and some information on dialog types.
Installing UI extensionsContains step by step information on how to install a UI extension.
Using UI extensionsContains information on how to use both Field and Sidebar UI extensions. It also offers information on how to customize sidebar widgets and on previewing your customized sidebar.
Local developmentContains information about installing a UI extension from an application running locally.

#Libraries

DocumentContents
JavaScript SDKContains information about our JavaScript SDK, which allows you to build UI Extensions using native JavaScript, or the framework and bundler of your choice.
React SDKContains information about our React SDK, which provides the same capabilities of the JavaScript SDK, but leverages Components and hooks for a real React experience.

#Field extension

DocumentContents
QuickstartContains our field extension quickstart, with a step by step explanation on how to build a demo UI extension.
DeclarationContains information on field extension declaration properties, supported FieldExtensionType enumeration values, and FieldExtensionFature enumeration.
List rendererContains information about enabling custom list rendering in your app.
Table rendererContains information about enabling custom table-cell rendering in your app.
DocumentContents
QuickstartContains our sidebar extension quickstart, with a step by step explanation on how to build a Google SERP Preview Sidebar UI Extension.
DeclarationContains information about sidebar extension declaration properties.

#Examples

DocumentContents
openAssetPickerContains an example that will help you use the openAssetPicker method.

#API reference

DocumentContents
HooksHooks API reference.
Field extensionField extension API reference.
Sidebar extensionSidebar extension API reference.
Additional typesAdditional types API reference : model, form, locale, stage, user, dialog, and toasts.