Build a page from the Nook "Network monitor" template (app, infrastructure), exactly as Nook ships it, then fit it to my product.
Link health, traffic, a network layout, devices that need a look and the latest events.
Steps
1. Check for `nook.json` in the project root. If it is missing, run `npx nook-ui@latest init` first (React or Next.js with Tailwind CSS v4). It adds the Nook tokens, the theme and `cn()`.
2. Run `npx nook-ui@latest add network-monitor`. It writes `components/templates/network-monitor.tsx` together with its blocks and the components they use. Do not write any of it from memory.
3. If you cannot run commands, fetch http://localhost:3000/r/network-monitor.json, write every entry of `files` to the path it names, install the packages in `dependencies`, and repeat for each name in `registryDependencies`.
4. Render it on the route I ask for:
```tsx
import { NetworkMonitor } from "@/components/templates/network-monitor";
export default function Page() {
return (
);
}
```
Make it mine
- Ask me for the product name, what it does and who it is for, if I have not said so. Then rewrite every heading, sentence, link and number for that product. Keep the tone: plain words, sentence case, real content, no filler.
- The page is made of these blocks, in order: app-shell. Change a section through the props of its block. To drop a section, remove it from the template file. To add one, run `npx nook-ui@latest list --type block` and add the block that fits.
- Point the links and buttons at real routes, and pass real handlers to the forms (`onSubmit`, `onJoin`, `onSubscribe` and so on). Blocks never talk to a server by themselves.
Rules
- Colors, radii, shadows and motion come from Nook tokens and classes such as `bg-primary`, `text-muted-foreground`, `border-border`, `rounded-lg` and `h-control`. Never hard-code them.
- Do not restyle or simplify the file. Change how it looks through `className`, its props and the theme.
- It must keep working with the keyboard, in light and dark mode, and in the sharp, soft and bold styles.
- Keep one `h1` on the page and keep the section order sensible for someone reading top to bottom.
Done when the page renders like the Nook template in light and dark mode, at phone width too, with my content in place, and the project type-checks.