@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, and optional sections/blocks and media library integration ship with the module. @nuxt/image is configured with a Hygraph provider using your asset base URL.
The module exposes a small GraphQL client on the orchestr context (hygraph) so server-side code can run arbitrary queries against your project endpoint.
The repository includes example GraphQL documents and orchestr wiring that follow a blog-oriented content model (lists, detail by slug, collections, etc.). Treat that as a demo / reference: it shows how to connect Laioutr to Hygraph, not a fixed product contract.
In practice, 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.
Configure the module under @laioutr/app-hygraph at the top level of nuxt.config.ts (the module merges these values into runtimeConfig). Typical options:
| Option | Purpose |
|---|---|
contentApiUrl | Hygraph Content API endpoint for your environment (e.g. master or a specific stage). |
token | API bearer token used on each GraphQL request (keep in env vars in production). |
imageBaseUrl | Base URL passed into Nuxt Image’s Hygraph provider for resolving image URLs from Hygraph assets. |
Use environment variables for token and URLs in deployed environments.
// nuxt.config.ts (illustrative)
export default defineNuxtConfig({
modules: ['@laioutr/app-hygraph', '@laioutr-core/orchestr' /* + your frontend stack */],
'@laioutr/app-hygraph': {
contentApiUrl: process.env.HYGRAPH_CONTENT_API_URL!,
token: process.env.HYGRAPH_TOKEN!,
imageBaseUrl: process.env.HYGRAPH_IMAGE_BASE_URL!,
},
});
Exact keys follow the published module types; align URLs and tokens with your Hygraph project settings.
{ query, variables } to contentApiUrl with Authorization: Bearer <token>. Orchestr handlers and other server code use this client rather than calling fetch ad hoc.baseURL from imageBaseUrl) so components can resolve Hygraph-hosted assets consistently.server/orchestr demonstrate wiring Laioutr’s blog-style flows to Hygraph. Swap or extend these when your schema differs.No separate “Hygraph schema download” is required for the concept: the source of truth is always your Hygraph project; the Laioutr app is the adapter between that API and the storefront.
Google Tag Manager (GTM)
Developer documentation for the Laioutr GTM app package. Add Google Tag Manager to your Nuxt app with consent integration and a tracking adapter for the Laioutr tracking store.
Nimstrata Google Retail API
Developer documentation for the Laioutr Nimstrata app package. Add AI-powered search, recommendations, suggested search, and event tracking to your Laioutr frontend via the Nimstrata (Retail Connect) API, with Shopify integration.