Example: Basic App Router
Last Updated March 22, 2026
This example demonstrates the most minimalist integration of Omni-Core within the new Next.js App Router (Next 13+).
ℹ️ Information
Full Source Code: Find this ready-to-clone example on our official sandbox repository: omni-mdx-sandbox/next.
The Concept
In a Server Components (RSC) architecture, the best practice is to let Omni-Core parse the Markdown document on the server, then transmit the generated AST directly to the client for rendering.
This ensures that the heavy parsing workload (executed by our Rust engine) never impacts the end-user’s JavaScript bundle.
Implementation (page.tsx)
Here is what a basic documentation page looks like:
tsx
To test this locally, simply clone the sandbox and start the development server!