libraryPackage manifestv4.0.4

lib.presentation-runtime-next

Next.js lane for contract-driven marketing SEO/LLMO: metadata, JSON-LD, sitemap, robots, and llms.txt/agents.json route handlers

@lssm-tech/lib.presentation-runtime-next
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 4.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.presentation-runtime-nextplatform

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

7 déclarations · les 6 premières affichéesSELECT TO INSPECT

@lssm-tech/lib.presentation-runtime-next

Next.js lane for contract-driven marketing SEO / LLMO. It maps the framework-neutral metadata produced by @lssm-tech/lib.presentation-runtime-core/marketing into Next.js primitives and serves AI-discovery artifacts.

This is the only presentation-runtime package allowed to import next. presentation-runtime-core and presentation-runtime-react stay Next-free.

Adapters

Export Objectif
toNextMetadata(meta, opts?) NormalizedMetadata → Next Metadata (hreflang via negotiateLocale).
JsonLd, StructuredData, serializeJsonLd JSON-LD <script> rendering from resolved schema.org shapes.
JsonLdDocument, serializeJsonLdDocument, escapeJsonForScript Host-authored JSON-LD documents (single node or @graph node list with @id links); all JSON-LD emission escapes <, >, &, U+2028 and U+2029 so the payload cannot break out of the <script>.
buildSitemap(blueprint, opts?) AppBlueprintSpec.routes → MetadataRoute.Sitemap.
buildRobots(aiDiscovery, opts?) AiDiscoveryConfig.crawlerPolicy → MetadataRoute.Robots.
createLlmoRouteHandlers(emitter, opts?) /llms.txt, /llms-full.md, /agents.json route handlers with CDN cache headers.

Usage

Page metadata + JSON-LD

tsx
// app/pricing/page.tsx
import type { Metadata } from 'next';
import { transformAppConfigSeo } from '@lssm-tech/lib.presentation-runtime-core/marketing';
import { toNextMetadata, StructuredData } from '@lssm-tech/lib.presentation-runtime-next';
import { resolvedAppConfig } from '@/app-config';

const normalized = transformAppConfigSeo(resolvedAppConfig, { routePath: '/pricing' });

export const metadata: Metadata = toNextMetadata(normalized);

export default function PricingPage() {
  return (
    <>
      <StructuredData metadata={normalized} />
      {/* … */}
    </>
  );
}

sitemap + robots

ts
// app/sitemap.ts
import { buildSitemap } from '@lssm-tech/lib.presentation-runtime-next';
import { blueprint } from '@/app-config';
export default function sitemap() {
  return buildSitemap(blueprint, { supportedLocales: ['en', 'fr'], defaultLocale: 'en' });
}

// app/robots.ts
import { buildRobots } from '@lssm-tech/lib.presentation-runtime-next';
import { blueprint } from '@/app-config';
export default function robots() {
  return buildRobots(blueprint.aiDiscovery, {
    baseUrl: 'https://contractspec.dev',
    sitemapUrl: 'https://contractspec.dev/sitemap.xml',
  });
}

LLMO route handlers (ISR + CDN cache)

ts
// app/llms.txt/route.ts
import { createLlmoRouteHandlers } from '@lssm-tech/lib.presentation-runtime-next';
import { llmoEmitter } from '@/app-config'; // @lssm-tech/lib.content-gen LlmoEmitter

// Next.js segment config must be statically analyzable; keep this literal in the route file.
export const revalidate = 3600;
export const GET = createLlmoRouteHandlers(llmoEmitter).llmsTxt;

The LlmoEmitter contract is declared structurally in ./llmo-routes so the concrete @lssm-tech/lib.content-gen emitter is injected by the app.

Declared capabilities.

Lib Presentation Runtime Next

Next.js lane for contract-driven marketing SEO/LLMO: metadata, JSON-LD, sitemap, robots, and llms.txt/agents.json route handlers

Use it to

  • Adopt next.js lane for contract-driven marketing seo/llmo: metadata, json-ld, sitemap, robots, and llms.txt/agents.json route handlers

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/lib.presentation-runtime-next package constraints do not match the target runtime or platform.

@lssm-tech/lib.presentation-runtime-next

@lssm-tech/lib.presentation-runtime-next/__fixtures__/marketing-blueprint

@lssm-tech/lib.presentation-runtime-next/data

@lssm-tech/lib.presentation-runtime-next/data/dehydrate

@lssm-tech/lib.presentation-runtime-next/data/hydration

@lssm-tech/lib.presentation-runtime-next/data/prefetch

@lssm-tech/lib.presentation-runtime-next/feature-hub-types

@lssm-tech/lib.presentation-runtime-next/feature-hubs

@lssm-tech/lib.presentation-runtime-next/llmo-routes

@lssm-tech/lib.presentation-runtime-next/manifest

@lssm-tech/lib.presentation-runtime-next/next-seo-metadata

@lssm-tech/lib.presentation-runtime-next/og-image

Imports and export paths.

18 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

18 imports

Dependencies and related packages.

Runtime dependencies 7
server-only
^0.0.1
Peer dependencies 3
next
catalog:
react
catalog:
Development dependencies 8
happy-dom
catalog:testing
next
catalog:
react
catalog:
react-dom
catalog:
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
publish:pkg:canarybun publish:pkg --tag canary
buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
cleanrimraf dist .turbo
devcontractspec-bun-build dev
lintbun run lint:fix
lint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .
lint:checknode ../../../../scripts/biome.cjs check .
testbun test --pass-with-no-tests
prebuildcontractspec-bun-build prebuild
typechecktsgo --noEmit -p tsconfig.json
Votre vue

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.