Frequently Asked Questions

Sidebar UI Extension Quickstart & Technical Implementation

What is the Hygraph Sidebar UI Extension and what can it do?

The Hygraph Sidebar UI Extension allows you to add custom widgets to the content editor sidebar. These widgets can interact with specific fields (such as translations), display information from third-party services, or show read-only data like analytics. For example, you can build a Google SERP Preview widget to see how your content appears in search results. Note: Sidebar UI Extensions require familiarity with React and JavaScript. Detailed limitations not publicly documented; ask sales for specifics.

What are the prerequisites for building a Sidebar UI Extension in Hygraph?

To build a Sidebar UI Extension, you need the latest LTS version of Node.js, experience with the command line, an IDE or text editor, familiarity with JavaScript and React, and a free Hygraph account with an active project. Note: Non-technical users may find the setup challenging without developer support.

What steps are involved in creating and deploying a Sidebar UI Extension?

The process includes: 1) Creating a React project, 2) Building a custom component, 3) Installing the Hygraph React SDK, 4) Declaring the extension, 5) Running and testing locally, 6) Adding the extension to your Hygraph schema, 7) Mapping content fields for display, and 8) Deploying the extension (e.g., to Vercel). Each step is detailed in the official quickstart guide. Note: Deployment requires access to a hosting provider and may involve additional configuration for production use.

How do you configure the Google SERP Preview Sidebar UI Extension?

Configuration involves setting a global Site URL, mapping schema fields for Title and Description, and updating the extension declaration with these settings. You can adjust these via the Hygraph dashboard under Project Settings > UI Extensions. The widget updates in real time as you edit content fields. Note: Field mapping requires knowledge of your schema's field appIds.

How do you deploy a Sidebar UI Extension to production?

After local development, you can deploy the extension to a hosting provider such as Vercel using npx vercel. Once deployed, update the Extension URL in your Hygraph project settings to point to the live URL. For step-by-step deployment, refer to the official guide. Note: Ongoing maintenance and updates require redeployment and reconfiguration as needed.

Where can I find additional resources and examples for UI Extensions?

Additional resources include the React SDK documentation, extension declaration guide, and UI extension code examples on GitHub. Note: Some resources may reference Hygraph Classic; check compatibility with your project version.

Features & Capabilities

What are the key features of Hygraph?

Key features include a GraphQL-native architecture, content federation (integrating multiple data sources without duplication), enterprise-grade security and compliance (SOC 2 Type 2, ISO 27001, GDPR), Smart Edge Cache, localization, granular permissions, and a user-friendly interface for non-technical users. Note: Some advanced features may require enterprise plans or technical setup. Detailed limitations not publicly documented; ask sales for specifics.

What integrations does Hygraph support?

Hygraph supports integrations with Digital Asset Management (DAM) systems (Aprimo, AWS S3, Bynder, Cloudinary, Imgix, Mux, Scaleflex Filerobot), hosting and deployment platforms (Netlify, Vercel), Product Information Management (Akeneo), commerce solutions (BigCommerce), and translation/localization tools (EasyTranslate). For a full list, visit the Hygraph Marketplace. Note: Integration availability may depend on your plan and project setup.

Does Hygraph provide APIs for content management and integration?

Yes, Hygraph offers multiple APIs: a high-performance GraphQL Content API, a Management API (with SDK), an Asset Upload API, and an MCP Server API for AI assistant integration. Detailed API documentation is available at Hygraph API Reference. Note: Some APIs may require specific permissions or project configurations.

What technical documentation is available for Hygraph users?

Hygraph provides extensive technical documentation, including API references, schema guides, getting started tutorials, integration guides (e.g., Mux, Akeneo, Auth0), and AI feature documentation. Access all resources at hygraph.com/docs. Note: Documentation is updated regularly; check for the latest version relevant to your project.

Security & Compliance

What security and compliance certifications does Hygraph hold?

Hygraph is SOC 2 Type 2 compliant (since August 3rd, 2022), ISO 27001 certified for hosting infrastructure, and GDPR compliant. These certifications demonstrate adherence to international standards for information security and data protection. Note: For more details, visit the Hygraph Secure Features page.

What security features are available in Hygraph?

Security features include granular permissions, SSO integrations (OIDC/LDAP/SAML), audit logs, encryption in transit and at rest, regular backups with one-click recovery, secure APIs with custom origin policies and IP firewalls, and automatic SSL certificates for all endpoints. Note: Some features may require enterprise plans or additional configuration.

Performance & Product Experience

How does Hygraph perform in terms of content delivery and API speed?

Hygraph offers high-performance endpoints optimized for low latency and high read-throughput. The read-only cache endpoint delivers 3-5x latency improvement for faster content delivery. Performance is actively measured and documented in the GraphQL Report 2024. Note: Actual performance may vary based on project complexity and integration setup.

What feedback have customers given about Hygraph's ease of use?

Customers highlight Hygraph's intuitive interface, quick adaptability, and user-friendly setup. For example, Sigurður G. (CTO) praised the UI as intuitive for non-technical users, and Charissa K. (Senior CMS Specialist) noted its clear setup and localization features. Note: Some advanced configurations may still require developer involvement. See more reviews at hygraph.com/try-headless-cms.

Implementation & Onboarding

How long does it take to implement Hygraph and get started?

Implementation time varies by project complexity. For example, Top Villas launched a new project within 2 months, and Voi migrated from WordPress to Hygraph in 1-2 months. Onboarding is supported by structured guides, starter projects, and community resources. Note: Large-scale migrations may require additional planning and technical support.

What onboarding and support resources are available for new Hygraph users?

Resources include a free signup, structured onboarding calls, technical kickoffs, extensive documentation, starter projects, community Slack, webinars, and live training. Access these at hygraph.com/docs and slack.hygraph.com. Note: Some resources may be more relevant for developers or technical teams.

Use Cases & Business Impact

What business impact can customers expect from using Hygraph?

Customers have achieved faster time-to-market (e.g., Komax: 3x faster), improved engagement (Samsung: 15% increase), cost reduction, and enhanced content consistency. AutoWeb saw a 20% increase in website monetization, and Voi scaled content across 12 countries and 10 languages. Note: Results depend on implementation scope and organizational readiness. See more at hygraph.com/case-studies.

What types of companies and roles benefit most from Hygraph?

Hygraph serves developers, content creators, product managers, and marketing professionals in enterprises and high-growth companies. Industries include SaaS, eCommerce, media, healthcare, automotive, fintech, education, and more. Note: Smaller teams or those without technical resources may require additional support for advanced features.

What problems does Hygraph solve for content teams and businesses?

Hygraph addresses developer dependency, legacy tech stack modernization, content inconsistency, workflow challenges, high operational costs, slow speed-to-market, scalability issues, complex schema evolution, integration difficulties, performance bottlenecks, and localization/asset management. Note: Some pain points may persist if organizational processes are not updated alongside technology.

Customer Proof & Success Stories

Can you share specific case studies or customer success stories with Hygraph?

Yes. Notable examples include Samsung (15% improved engagement), Komax (3x faster time-to-market), AutoWeb (20% increase in monetization), Voi (multilingual scaling across 12 countries), and Dr. Oetker (enhanced digital experience). See all case studies at hygraph.com/case-studies. Note: Outcomes vary by project and implementation.

What industries are represented in Hygraph's customer base?

Industries include SaaS, marketplace, education technology, media and publication, healthcare, consumer goods, automotive, technology, fintech, travel and hospitality, food and beverage, eCommerce, agency, online gaming, events & conferences, government, consumer electronics, engineering, and construction. See the full list at hygraph.com/case-studies. Note: Industry-specific requirements may affect implementation details.

Limitations & Considerations

What are the limitations or scenarios where Hygraph may not be the best fit?

Detailed limitations are not publicly documented. For advanced or highly specialized use cases, or if your team lacks technical resources, contact Hygraph sales for specifics. Note: Some features and integrations may require enterprise plans or developer involvement.

LLM optimization

When was this page last updated?

This page wast last updated on 12/12/2025 .

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

#Sidebar extension quickstart

#Introduction

Sidebar UI Extensions allows you to add custom widgets to Hygraph content editor sidebar.

You can add widgets to interact with specific fields on your editor like translations, to display information from 3rd party services, or to just display read-only information such as analytics data.

#What you will build

We will be building Google SERP Preview Sidebar UI Extension. It will display a preview of how your content would appear on Google Search Results.

You will also learn how to add custom configurations, like an API Key to connect to a 3rd party service provider, or a configuration to the widget instance like Background Color.

#Prerequisites

To complete this tutorial:

  • You need the latest LTS version of Node.js installed on your machine. If you don't have it, you can download it here
  • You should be comfortable using a command line tool and any IDE or text editor of your choice
  • You should be familiar with JavaScript and React
  • You need a free Hygraph account and a project. You can signup here.

#What you will learn

In this tutorial, you will learn:

  • How to create a Sidebar UI Extension
  • How to run and test Sidebar Extension UI Extension on your local development environment
  • How to add Sidebar UI Extension to your Schema
  • How to add custom configuration to your Extension, like an API Key
  • How to deploy your Sidebar UI Extension to Vercel
  • How to install and use your Sidebar UI Extension in production

#Step 1: Creating a UI extension

1. Create React project

# create a project with npm
npx create-react-app uix-google-serp-preview
# change directory
cd uix-google-serp-preview

Now, open the project in the code editor of your preference.

2. Create a new React component

// src/extensions/GoogleSerpPreview.js
const SerpPreview = () => {
return <div>Google Serp Preview</div>;
};
const GoogleSerpPreview = () => {
return <SerpPreview />;
};
export default GoogleSerpPreview;

3. Import the component into your app

// src/App.js
import GoogleSerpPreview from './extensions/GoogleSerpPreview';
function App() {
return <GoogleSerpPreview />;
}
export default App;

4. Run the app locally

npm run start

By visiting http://localhost:3000 on your browser, you should see a very basic HTML input field.

Now, let's transform it into a Hygraph UI Extension!

#Step 2: Using Hygraph React SDK

1. Installing the React SDK

In order to transform it into a UI Extension, you must install Hygraph React SDK as a dependency on your project. You can do it running the following command on your Terminal:

yarn add @graphcms/uix-react-sdk

2. Adding React SDK

Now, let's import some SDK components and hooks from Hygraph SDK.

Start with importing the Wrapper component and useFormSidebarExtension hook from the library inside your React application.

You should add the following code at the top of the GoogleSerpPreview.js file.

// src/extensions/GoogleSerpPreview.js
import { Wrapper, useFormSidebarExtension } from '@graphcms/uix-react-sdk';

Then, add useFormSidebarExtension hook into SerpPreview and adjust the code accordingly, like the following example:

import { Wrapper, useFormSidebarExtension } from '@graphcms/uix-react-sdk';
const SerpPreview = () => {
const { extension } = useFormSidebarExtension();
return (
<>
<h3>{extension.name}</h3>
<div>{extension.description}</div>
</>
);
};

Then, we need to add the extension declaration:

const declaration = {
extensionType: 'formSidebar',
name: 'Google SERP Preview',
description: 'Preview your content on Google',
};

Finally, let's wrap our custom input field with the Wrapper component. Remember to pass in declaration:

const GoogleSerpPreview = () => {
return (
<Wrapper declaration={declaration}>
<SerpPreview />
</Wrapper>
);
};
export default GoogleSerpPreview;

Your complete custom UI Extension code should look like this:

// src/extensions/GoogleSerpPreview.js
import { Wrapper, useFormSidebarExtension } from '@graphcms/uix-react-sdk';
const SerpPreview = () => {
const { extension } = useFormSidebarExtension();
return (
<>
<h3>{extension.name}</h3>
<div>{extension.description}</div>
</>
);
};
const declaration = {
extensionType: 'formSidebar',
name: 'Google SERP Preview',
description: 'Preview your content on Google',
};
const GoogleSerpPreview = () => {
return (
<Wrapper declaration={declaration}>
<SerpPreview />
</Wrapper>
);
};
export default GoogleSerpPreview;
// App.js
import GoogleSerpPreview from './extensions/GoogleSerpPreview';
function App() {
return (
<div className="App">
<GoogleSerpPreview />
</div>
);
}
export default App;

3. Testing UI extension on Localhost

At this point, you should see the "SDK connection error, check logs" message in your browser. The reason is that it's expected to be running from Hygraph application. So, you should just ignore this message for now.

Now, let's install and test your new Sidebar UI Extension on localhost by following these steps:

  1. Go to https://app.hygraph.com and open any existing project

  2. Navigate to Project Settings > UI Extensions

  3. Click on Add UI Extension button

  4. On Extension URL field, enter http://localhost:3000

  5. Click on Run compatibility test button

  6. Finally, click on Authorize & Install.

If everything went well, you should see something like this:

UI Extension InstallUI Extension Install

#Step 3: Adding your sidebar UI extension to a schema

Now, it's time to use your new Sidebar UI Extension.

Follow these steps:

  1. Go to Schema
  2. On the left, click on the model you want to add the new Sidebar UI Extension
  3. Now, click on Sidebar tab
  4. On the right, under Custom Widgets section, you should see your new Sidebar UI Extension
  5. Click on Google Serp Preview to add the widget to the sidebar
  6. Enter the display name (Optional)
  7. Finally, click on Create button

#Step 4: Using your sidebar UI extension

  1. On the left navigation, go to Content
  2. Select the model you've added the Sidebar UI extension in the previous step
  3. Click on Create Item button on the top right corner or Edit and existing one

You should see Google Serp Preview in the sidebar. Now, let's add some funcionality to that!

#Step 5: Adding interaction between widget and content editor

First, let's add some styling to the widget, so that it looks like Google Search Results.

Go back to your Code Editor, open src/extensions/GoogleSerpPreview.js, and change SerpPreview component like so:

// src/extensions/GoogleSerpPreview.js
const SerpPreview = () => {
const { extension } = useFormSidebarExtension();
return (
<div
style={{
padding: '10px',
backgroundColor: '#fff',
}}
>
<div
style={{
fontSize: '12px',
marginBottom: '5px',
}}
>
website.com
</div>
<div
style={{
fontSize: '16px',
fontWeight: 'bold',
color: 'blue',
marginBottom: '5px',
}}
>
Title here
</div>
<div>This is the description</div>
</div>
);
};

The widget should look like this: Google SERP Preview Sidebar WidgetGoogle SERP Preview Sidebar Widget

Now, we need to display three information from the current content: Site URL, title, and description. Therefore, we should do two things:

  1. Pick site URL
  2. Map content title and description to be displayed in the widget

For that, we'll add custom settings to our Sidebar UIX: global and instance settings. Both should be added to extension declaration.

#Step 5.1: Displaying site URL

Once site URL is the same for the whole website, we'll add it to the extension declaration as a global configuration.

On your code editor, add the following code to extension declaration:

// src/extensions/GoogleSerpPreview.js
const declaration = {
extensionType: 'formSidebar',
name: 'Google SERP Preview',
description: 'Preview your content on Google',
config: {
SITE_URL: {
type: 'string',
displayName: 'Site URL',
required: true,
},
},
};

Then, change SerpPreview component like so:

const SerpPreview = () => {
const { extension } = useFormSidebarExtension();
const siteUrl = extension.config.SITE_URL;
return (
<div
style={{
padding: '10px',
backgroundColor: '#fff',
}}
>
<div
style={{
fontSize: '12px',
marginBottom: '5px',
}}
>
{siteUrl}
</div>
<div
style={{
fontSize: '16px',
fontWeight: 'bold',
color: 'blue',
marginBottom: '5px',
}}
>
Title here
</div>
<div>This is the description</div>
</div>
);
};
  1. Go back to your browser and open your project dashboard
  2. Go to Project Settings > UI Extension
  3. On Google Serp Preview, click on the three dots and then click on Edit
  4. Click Refresh next to the Edit button

Now, you should see the new Site URL field. Once it's a required one, enter any URL and hit the Update button.

Finally, go to any content and the URL should appear in the widget.

#Step 5.2: Displaying content title and description

Now, you should map the content fields that you want to display in the widget as Title and Description. Therefore, we'll add sidebar instance configuration, which you allow you to set these fields for each model.

Go back to GoogleSerpPreview.js in your code editor and do the following steps:

Import useState and useEffect hooks at the top of the file:

import { useState, useEffect } from 'react';

Then, change SerpPreview component like the following code:

const SerpPreview = () => {
const {
extension,
form: { subscribeToFieldState },
} = useFormSidebarExtension();
const [title, setTitle] = useState('This is the title');
const [description, setDescription] = useState('This is the description');
const siteUrl = extension.config.SITE_URL;
const sidebarConfig = extension.sidebarConfig;
useEffect(() => {
const unsubscribe = async () => {
await subscribeToFieldState(
sidebarConfig.TITLE_FIELD,
(state) => {
setTitle(state.value);
},
{ value: true }
);
};
return () => unsubscribe();
}, [subscribeToFieldState, sidebarConfig.TITLE_FIELD]);
useEffect(() => {
const unsubscribe = async () => {
await subscribeToFieldState(
sidebarConfig.DESCRIPTION_FIELD,
(state) => {
setDescription(state.value);
},
{ value: true }
);
};
return () => unsubscribe();
}, [subscribeToFieldState, sidebarConfig.DESCRIPTION_FIELD]);
return (
<div
style={{
padding: '10px',
backgroundColor: '#fff',
}}
>
<div
style={{
fontSize: '12px',
marginBottom: '5px',
}}
>
{siteUrl || 'website.com'}
</div>
<div
style={{
fontSize: '16px',
fontWeight: 'bold',
color: 'blue',
marginBottom: '5px',
}}
>
{title || 'Title here'}
</div>
<div>{description?.substring(0, 155) || 'Description here'}...</div>
</div>
);
};

Finally, change extension declaration like so:

const declaration = {
extensionType: 'formSidebar',
name: 'Google SERP Preview',
description: 'Preview your content on Google',
config: {
SITE_URL: {
type: 'string',
displayName: 'Site URL',
required: true,
},
},
sidebarConfig: {
TITLE_FIELD: {
type: 'string',
displayName: 'Title Field',
required: true,
},
DESCRIPTION_FIELD: {
type: 'string',
displayName: 'Description Field',
required: true,
},
},
};

Let me explain the code above:

  • sidebarConfig is the object that stores sidebar configuration data. By declaring that, you should see two fields on sidebar widget dialog, where you will be able to enter the field names for title and description, respectively.
  • form.subscribeToFieldState is a method from the Hygraph SDK to interact with form fields in the content editor. In this case, we'll update Google Serp Preview widget while user update information in the fields that stores Title and Description. You'll see that happening in a moment.

Once we've updated extension declaration again, we need to refresh UI Extension installation.

  1. On Hygraph app, go to Project Settings > UI Extension
  2. On Google Serp Preview, click on the three dots and then click on Edit
  3. Click Refresh next to the Edit button
  4. Finally, click on Update

Now, let's map Schema fields to the sidebar widget:

  1. Go to Schema
  2. Click on the model you've added the widget
  3. Click in the pencil icon to edit widget

You should see 2 new fields: Title and Description. You just need to enter the appId of the fields you want to display as Title and Description, respectively. Then, click Update.

Finally, go to Content and click on any existing content to edit it or click on Create Item.

As you type in the Title or Description fields, you should see it being updated in realtime on Google Serp Preview widget!

#Step 6: Deploying your UI extension

To use your UI Extension in a live website or application, you should host it somewhere on the internet. For the sake of this tutorial, we will deploy it on Vercel. But you can use any hosting service.

Do the following steps:

  1. Open your Terminal
  2. Navigate into your project root directory and run npx vercel
cd google-serp-preview-uix
npx vercel
  1. Follow the step-by-step guide on your Terminal
  2. Once it's deployed, the extension URL will be automatically copied to your clipboard
  3. Open your project dashboard on your browser
  4. Go to Project Settings > UI Extension
  5. On Hello UIX World, click on the three dots, then click on Edit
  6. Click on Edit button next to the Extension URL field
  7. Replace Extension URL field with the new URL
  8. Click on the OK button
  9. Finally, click on the Update button

#Congratulations!

You've just learned how to build Sidebar UI Extensions for Hygraph!

Take a look into these UI extensions examples for inspiration.

Additional resources