Examples are live, complete patterns you can compare against your own Rocket project. Use them after the tutorial path when you want to see one feature working in context.
For relaunch, Rocket needs three polished public examples: a marketing site, component-library docs, and an AI-generated site from a brief. The examples below are the current feature examples that support that launch set.
| Example | What it proves |
|---|---|
| Web Awesome Components | Markdown Pages can use package Web Components through Rocket registration. |
| Component Showcase With Demos | Component documentation can include rendered demos beside source. |
| Server Time Page | JavaScript Pages can run at request time when static output is not enough. |
| JavaScript Pages With Layouts | Static and server-rendered JavaScript Pages can share docs layout code. |
| API Output | JavaScript Pages can emit machine-readable static output. |
Use Web Awesome custom elements in a Markdown Page with Rocket's component registration model.
This example covers:
Use js demo blocks to document Web Awesome's <wa-details> component with JavaScript Demos and
source code.
This example covers:
Render a request-time JavaScript Page that shows the current server timestamp and request details.
This example covers:
.rocket.js Page shaperender: 'server'context.pageData with atlasDocLayoutResponseUse the docs layout from static and server-rendered JavaScript Pages without constructing PageData by hand.
This example covers:
Return JSON from a JavaScript Page and build it as a static file output.
This example covers:
.json route pathsrender: 'server'Start with Web Awesome Components when the Page is mostly Markdown and needs package components.
Use Component Showcase With Demos when a Page documents component usage, variants, states, and interactive behavior.
Use Server Time Page when you need a minimal working .rocket.js Page.
Use JavaScript Pages With Layouts when a JavaScript Page should still look like the rest of the docs site, whether it renders once at build time or runs at request time.
Use API Output when a JavaScript Page should return machine-readable JSON instead of an HTML document.
server, client, or hydrate:*.@rocket/js imports for Pages and
layouts.