---
title: "Frontend infrastructure"
label: "Frontend infrastructure"
description: "Add canonical routing, metadata, sitemaps, formatting, and localization."
publishedAt: 2026-07-10
updatedAt: 2026-11-08
order: 4
status: "published"
collapsible: true
collapsed: true
---

A custom board needs more than resource calls. This section turns Board API data into stable URLs, indexable pages, correct structured data, board-configured styling, and consistent language.

The helpers are framework-neutral and ship as dedicated package exports:

| Export | Responsibility |
| --- | --- |
| `@cavuno/board/paths` | Canonical public paths and absolute board URLs |
| `@cavuno/board/server` | Redirect guards and server session helpers |
| `@cavuno/board/seo` | Metadata descriptors and structured data |
| `@cavuno/board/seo-files` | Shared `robots.txt` / `ads.txt` / IndexNow bodies |
| `@cavuno/board/sitemap` | Catalog walking, chunking, and XML serialization |
| `@cavuno/board/mcp` | The board's public MCP server at `/mcp`, its setup page, Server Card and ARD manifest (`/.well-known/ard.json`) |
| `@cavuno/board/format` | Locale-aware dates, locations, salaries, and UI copy |
| `@cavuno/board/filters` | Listing filter vocabulary and URL parsing |

## Recommended order

1. Lock routes with [Paths and redirects](/docs/sdk/frontend-infrastructure/paths-and-redirects).
2. Add page metadata and JSON-LD with [SEO and structured data](/docs/sdk/frontend-infrastructure/seo-and-structured-data).
3. Publish the full corpus with [Sitemap generation](/docs/sdk/frontend-infrastructure/sitemap-generation).
4. Own design tokens, fonts, and color mode in your application; use [Styling and formatting](/docs/sdk/frontend-infrastructure/formatting) for board-language presentation.
5. Keep requests and presentation aligned with [Localization](/docs/sdk/frontend-infrastructure/localization).

## Infrastructure boundary

The SDK returns strings and plain objects, not router, head-manager, or component instances. Your framework still owns:

- Route declarations and HTTP responses.
- `<head>`, `<script>`, `<style>`, and `<link>` elements.
- Cache policy and revalidation.
- Accessibility, layout, and interaction.
- Deployment, monitoring, and rollback.

Build these helpers into your server-rendering boundary first. Public SEO and sitemap work should use a stateless client; user-specific responses must never share its cache.

## Verify the infrastructure boundary

Confirm the path helpers produce the same URL shape your router will serve:

```ts
import { boardUrl, jobDetailPath } from '@cavuno/board/paths';

const path = jobDetailPath('analytical-engines', 'staff-engineer');
const url = boardUrl('https://jobs.example.com/', path);

if (url !== 'https://jobs.example.com/companies/analytical-engines/jobs/staff-engineer') {
  throw new Error('Canonical job URL drifted');
}

console.log(url);
```

This check is pure—it does not make a network request. It should print the canonical job-detail URL without a doubled slash.

## Next step

Replace the first manually assembled job-detail link in your frontend with `jobDetailPath`, then render that same absolute URL as the page canonical and sitemap location. Follow [Paths and redirects](/docs/sdk/frontend-infrastructure/paths-and-redirects) to handle an inbound non-canonical slug before adding JSON-LD.
