App Docs

Hygraph

Laioutr app package that connects a Nuxt storefront to Hygraph's Content API, Orchestr, Studio media, and Nuxt Image, using a sample content model as a starting point only.

Overview

@laioutr/app-hygraph is a Laioutr Nuxt module that talks to Hygraph over its Content API (GraphQL). It registers as a Laioutr app: Orchestr handlers live under the package's server/orchestr tree, a Hygraph media library provider plugs into Studio, and @nuxt/image is configured with a Hygraph provider using your asset base URL.

For module options, configuration examples, and runtime behaviour, see the package README on GitHub.

About the built-in content shape

The repository includes example GraphQL documents and Orchestr wiring that follow a blog-oriented content model (lists, detail by slug, collections). Treat that as a demo: it shows how to connect Laioutr to Hygraph, not a fixed product contract.

Every Hygraph project has its own schema. You are expected to adapt or replace the packaged queries and Orchestr registrations so they match your models, fields, and naming. The same module pattern applies; only the GraphQL strings and the mapping into Laioutr types need to follow whatever you define in Hygraph.

Reusing Hygraph integration in another app

When another Laioutr app also needs to talk to Hygraph, import from this package instead of duplicating the client and codegen setup. Three subpath exports are available:

  • @laioutr/app-hygraph/runtime: defineHygraph Orchestr builder, hygraphClientFactory, mapHygraphMedia, plus types.
  • @laioutr/app-hygraph/codegen: defineHygraphCodegen() factory with Hygraph-specific scalar mappings.
  • @laioutr/app-hygraph/queries: reusable GraphQL fragments (e.g. AssetFragment).

See the Exports section in the README for the full API and usage examples.

  • Orchestr: how queries, resolvers, and middleware fit the rest of the stack.
  • Apps: the Apps section overview and other app integrations.
  • Hygraph documentation: schema, permissions, and Content API usage.
Copyright © 2026 Laioutr GmbH