What is the SKNCRE demo and how does it showcase Hygraph?
The SKNCRE demo is a composable commerce example built with Hygraph, NuxtJS, and an external API for product data. It demonstrates how Hygraph's Content Federation can unify product information from external sources (like a PIM) with website content and commerce features. All pages, content, and media are stored in Hygraph, while product data is fetched from the "Federate This" mock API and exposed via Hygraph's Content Federation. This allows developers and editors to work with both native and federated content seamlessly. Learn more.
How can I run the SKNCRE demo myself?
You can run the SKNCRE demo by cloning the GitHub repository, installing dependencies with yarn install (or npm, pnpm, bun), setting up your .env file with the API endpoint, and running the app with yarn dev. You can also clone the Hygraph project directly using this link, which will guide you through creating a Hygraph account if needed.
What technologies are used in the SKNCRE demo?
The SKNCRE demo uses Hygraph as the headless CMS, NuxtJS for the frontend, and the "Federate This" mock API for product data. It leverages Hygraph's Content Federation to fetch external product data and expose it via the GraphQL API. The frontend uses the nuxt-graphql-client module for GraphQL functionality and types, and includes features like draft preview mode and dynamic rendering of Hygraph page components with Vue. Read more about the tech stack.
What is Content Federation in Hygraph and how is it used in the SKNCRE demo?
Content Federation in Hygraph allows you to unify data from external sources (such as product information from a PIM) with native CMS content. In the SKNCRE demo, product data is fetched from the "Federate This" mock API and exposed in Hygraph via Content Federation. This enables developers and editors to work with both native and federated content seamlessly, without needing to understand the external API. Learn more about Content Federation.
Does Hygraph provide a GraphQL API for content management?
Yes, Hygraph provides a powerful GraphQL API that allows you to fetch and manage content efficiently. In the SKNCRE demo, the GraphQL API is used to query both native and federated product data. Learn more about the Hygraph API.
What integrations does Hygraph support?
Hygraph offers a wide range of integrations, including hosting & deployment (Netlify, Vercel), headless commerce (BigCommerce, commercetools, Shopify), localization (Lokalise, Crowdin, EasyTranslate, Smartling), digital asset management (Aprimo, AWS S3, Bynder, Cloudinary, Mux, Scaleflex Filerobot), personalization & AB testing (Ninetailed), artificial intelligence (AltText.ai), and more. See all integrations.
How does Hygraph optimize content delivery performance?
Hygraph emphasizes optimized content delivery performance, which directly impacts user experience, engagement, and search engine rankings. By ensuring rapid content distribution and responsiveness, Hygraph reduces bounce rates and increases conversions. Learn more about performance.
Pricing & Plans
What is Hygraph's pricing model?
Hygraph offers a free forever Hobby plan, a Growth plan starting at $199/month, and custom Enterprise plans. For more details, visit the pricing page.
Use Cases & Benefits
Who can benefit from using Hygraph?
Hygraph is ideal for developers, IT decision-makers, content creators, project/program managers, agencies, solution partners, and technology partners. Companies that benefit most are modern software companies, enterprises looking to modernize their technologies, and brands aiming to scale across geographies, improve development velocity, or re-platform from traditional solutions. See case studies.
What business impact can customers expect from using Hygraph?
Customers using Hygraph can expect significant business impacts, including time-saving through streamlined workflows, ease of use with an intuitive interface, faster speed-to-market for digital products, and enhanced customer experience through consistent and scalable content delivery. These benefits help businesses modernize their tech stack and achieve operational efficiency. Learn more.
What industries are represented in Hygraph's case studies?
Hygraph's case studies represent industries such as food and beverage (Dr. Oetker), consumer electronics (Samsung), automotive (AutoWeb), healthcare (Vision Healthcare), travel and hospitality (HolidayCheck), media and publishing, eCommerce, SaaS (Bellhop), marketplace, education technology, and wellness and fitness. Explore case studies.
Can you share specific customer success stories using Hygraph?
Yes. Komax achieved a 3X faster time to market, Autoweb saw a 20% increase in website monetization, Samsung improved customer engagement with a scalable platform, and Dr. Oetker enhanced their digital experience using MACH architecture. See more success stories.
Technical Requirements & Documentation
Where can I find technical documentation for Hygraph?
Comprehensive technical documentation for Hygraph is available at Hygraph Documentation. It covers everything you need to know about building and deploying projects.
How easy is it to get started with Hygraph?
Hygraph is designed to be easy to start with, even for non-technical users. For example, Top Villas launched a new project in just 2 months from the initial touchpoint. Customers can get started quickly by signing up for a free account and using resources like the Hygraph Documentation and onboarding guides. Learn more.
What training and technical support is available for Hygraph?
Hygraph offers comprehensive training and technical support, including 24/7 support via chat, email, and phone, onboarding sessions for enterprise customers, training resources like video tutorials, documentation, webinars, and access to Customer Success Managers. Contact support.
Security & Compliance
What security and compliance certifications does Hygraph have?
Hygraph is SOC 2 Type 2 compliant, ISO 27001 certified, and GDPR compliant. These certifications ensure enterprise-grade security and data protection. Hygraph also provides features like SSO integrations, audit logs, encryption at rest and in transit, and sandbox environments. Learn more about security features.
Customer Feedback & Success
What feedback have customers given about Hygraph's ease of use?
Customers have praised Hygraph for its ease of use and intuitive interface. Feedback includes comments like "super easy to set up and use," and "even non-technical users can start using it right away." The user interface is described as logical and user-friendly, making it accessible for both technical and non-technical teams. Read more feedback.
Support & Implementation
What customer service or support is available after purchasing Hygraph?
Hygraph offers extensive customer support after purchase, including 24/7 support via chat, email, and phone. Enterprise customers receive dedicated onboarding and expert guidance. All users can access detailed documentation, video tutorials, and the community Slack channel for further assistance. Contact support.
How does Hygraph handle maintenance, upgrades, and troubleshooting?
Hygraph provides 24/7 support through chat, email, and phone for maintenance, upgrades, and troubleshooting. Enterprise customers receive dedicated onboarding and expert guidance, and all users can access detailed documentation and the community Slack channel for additional support. Learn more.
Product Information & Vision
What is the primary purpose of Hygraph?
Hygraph's primary purpose is to unify data and enable content federation, allowing businesses to create impactful digital experiences. It leverages its GraphQL-native architecture to remove traditional content management pain points, offering scalability, flexibility, and efficient data querying. Learn more about Hygraph's vision.
What are the key capabilities and benefits of Hygraph?
Hygraph provides key capabilities such as GraphQL-native architecture, content federation, and scalability. Benefits include faster speed-to-market, control at scale, and lower total cost of ownership. Learn more about Hygraph features.
Customer Proof & Case Studies
Who are some of Hygraph's customers?
Hygraph is trusted by leading brands such as Sennheiser, Holidaycheck, Ancestry, Samsung, Dr. Oetker, Epic Games, Bandai Namco, Gamescom, Leo Vegas, and Clayton Homes. See more customer stories.
Blog & Community
Where can I find the Hygraph blog and latest updates?
You can visit the Hygraph Blog for developer tutorials, product updates, and essential guides to content modeling.
How can I join the Hygraph community?
You can join the Hygraph community via Slack to ask questions, share feedback, and connect with other users.
A composable commerce demo with Hygraph, NuxtJS, and an external API for product data.
Written by Tim
on Jan 18, 2024
Composable architectures can be complicated. As a headless CMS with Content Federation features, we’re working to simplify this architecture as much as possible. With that goal, I created this example app to inspire you to try it yourself. I have worked with many luxury brands in my career, and it was fitting to come up with SKNCRE, a fictitious cosmetics brand selling costly snail slime skin care products.
SKNCRE has four products: face serum, face cream, eye contour, and the SKNCRE bundle. What you often see in composable commerce is that the product information lives in a specialized management system (a PIM), the content of the website in a CMS, and commerce features such as a cart, checkout, account, and payments in yet another system (a commerce engine).
In this example, all pages, content, and media are stored in Hygraph, but the products come from an external system – in this case, a mock API called Federate This. We expose the data in Hygraph via Content Federation. Developers query the CMS for product data, while editors can use the data inside the CMS while they combine editing native and federated content as if it were the same. The beauty is that developers and content editors do not need to understand the external product API as they use it directly through Hygraph.
This demo’s architecture is highly composable, and it would be relatively easy to add a system like Commerce Layer to facilitate shopping cart and checkout functionality.
Clone the repository, install the dependencies with yarn install, create and fill out the .env file with your API endpoint (or grab the one from the .env.example file), and run the app with yarn dev. If you dislike Yarn, use npm, pnpm, or bun instead.
As mentioned in the introduction, we are using the Federate This mock data API for the product information in this demo. We use Content Federation to fetch the API response of Federate This into Hygraph so we can use it as native data in the GraphQL API.
For the content model, we use a wide array of features in the CMS, from models that represent pages (page, pdp) to a productHighlight model to component schemas attached to page models for easy page building. Learn more about Hygraph’s components in our documentation.
The pdp page and the productHighlight models have been connected to external Federate This product data. This way, Hygraph doesn’t own the product data but merely serves it, leaving the external system completely autonomous. If the external API data changes, it also changes in Hygraph. Hygraph serves the data from the CDN edge, and you can set a TTL for the cached data.
The schema for a product page with a remote GraphQL API field for selecting a Product from the Federate This endpoint.
I chose to use NuxtJS for this example as it is one of the fastest ways for me to create high-quality code. Consider NuxtJS the Next.js of the Vue world (it has even more advanced features in certain areas!)
If you want to see this same demo in Astro, Next, or Sveltekit, join our community and let us know!
For this project, we use the nuxt-graphql-client module. This helps with codegen for GraphQL functionality and types, and it is an all-around easy way to use GraphQL API’s in NuxtJS.
Want to learn more about nuxt-graphql-client? I made a video about how this works.
Nuxt features to make your life easier
There are a few things added to this project to make developers happy.
A Hygraph @nuxt/image provider so developers can render lazy loaded, responsive images with custom quality and image format using the Nuxt Image module.
<NuxtImg
provider="hygraph"
src="<hygraph_image_url>"
width="500"
height="500"
quality="90"
sizes="sm:100vw lg:50vw"
alt="Alt text for image"
loading="lazy"
/>
Draft preview with Nuxt preview mode. If you add ?preview=true to any URL, the app will query Hygraph APIs in draft mode. It also turns on Nuxt’s excellent preview mode, allowing you to update the data on the page without reloading it.
Dynamically render Hygraph page components with Vue. The dynamic nature of Hygraph’s components approach ensures developers can’t just set up a structure and expect the data to be the same continuously. Instead, you loop over the data, see what you are dealing with, and dynamically render each bit as a Vue component. This is how the demo project solves this problem for you.
If you want a nice-looking demo that dips its toes into composable commerce with Hygraph and an external data source, this demo is for you. It’s been designed to be intuitive and highly composable, so adding a shopping cart and checkout would be relatively simple.
Tim is Developer Relations Lead at Hygraph with a focus on developer relations, community building, and content creation. He’s active in the developer community through speaking engagements at conferences and creation of YouTube videos on modern technologies. Tim collaborates regularly with startups like Cloudinary, Supabase, Algolia, HeyGen, and NuxtJS, and is a member of the MACH Alliance Tech Council. It's all about quality, community, and development of great websites.
Share with others
Sign up for our newsletter!
Be the first to know about releases and industry news and insights.