# Examples

> End-to-end scenario walkthroughs for the Directus + Next.js stack. This skill should be used when the user asks for "Directus Next.js examples", "how to build a blog with Directus and Next.js", "Directus Next.js product catalog", "show me a complete example", or needs implementation references for common application types.

- Skill: `agents-store/examples-49` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx get-skill add agents-store/examples-49`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agents-store/examples-49/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: agents-store (https://skillmd.com/u/agents-store)
- Updated: 2026-11-15
- Page: https://skillmd.com/skills/agents-store/examples-49

---


# Examples: Directus + Next.js Scenarios

Complete walkthroughs for building common application types with this stack. Each scenario shows the full flow from the Directus data model to rendered Next.js pages, using the rules of `directus-to-nextjs` (tagged reads, no token in asset URLs) and the pipeline of `deployment`.

## Available Scenarios

| Scenario | Description | Key Patterns |
|----------|-------------|--------------|
| [Blog](references/scenarios/blog-with-directus.md) | Content blog with posts, authors, and categories | M2O and M2M relations, images, tagged reads, SEO metadata, RSS feed |
| [Product Catalog](references/scenarios/product-catalog.md) | E-commerce catalog with products, categories, and filtering | Decimal fields, search params, typed filters, image gallery, uncached search |

## How to Use

1. Pick the scenario closest to what you are building
2. Read the full walkthrough in `references/scenarios/`
3. Adapt the collections, fields, and page structure to your needs
4. Follow the `full-feature` template for each new feature you add

Each scenario includes:
- Directus collection schema (fields, relations, permissions)
- TypeScript interfaces (or a pointer to the shared ones in `directus-dev`)
- Next.js page code (listing, detail, metadata)
- Image handling patterns
- The revalidation strategy: which tags, which collections the Flow lists

