# NK Viewer > Coding agents describe a page in a short YAML or JSON Page Spec. NK Viewer compiles it into one deterministic, offline, self-contained HTML file. Open source (MIT), published on npm as `@bninekit/viewer`. The agent writes meaning (blocks such as hero, prose, table, chart, timeline, code, callout); the compiler owns layout, theme, accessibility and motion. The emitted page opens from `file://`, makes no network request, and the same spec always produces the same bytes. Spec input is untrusted: no raw HTML, CSS or JS. ## Use it - CLI: `npx -y @bninekit/viewer validate plan.yaml`, then `npx -y @bninekit/viewer plan.yaml --out plan.html` - One-call shortcut for known page kinds: `npx -y @bninekit/viewer compose input.yaml --out page.html` builds a page from a typed intent such as `investment-report` - Agent skill: `npx skills add bninekit/nk-ecosys` - Local MCP server (stdio, no account, no network): `npx -y @bninekit/viewer mcp`. Tools: `catalog`, `search-catalog`, `describe`, `search-icons`, `describe-icon`, `icon-packs`, `motions`, `recipes`, `recipe`, `validate`, `repair`, `patch`, `audit-motion`, `audit-ui`, `compose`, `render`, `themes`. `patch` applies RFC 6902 ops to a spec file in place; `/blocks/@` paths address a block by its `id`, and `baseHash` refuses a stale edit. `nk-viewer audit-ui [--preset publication]` checks the compiled page (overflow, clipped chart labels, wide tables, contrast, interaction smoke) and gives each finding a spec path and a fix. - Hosted MCP server (Streamable HTTP): `https://viewer.nk.cnine.io.vn/mcp`. Sign-in is OAuth at nk.cnine.io.vn or an API key. Reserved for owners of NK Engineer, NK Marketing or the Bundle. Anyone can run the local server or deploy their own copy on Cloudflare from the GitHub repository. ## Links - [Landing page](https://viewer.nk.cnine.io.vn/): overview, install, MCP setup for Claude, ChatGPT, Claude Code, Cursor, VS Code and Codex - [Gallery](https://viewer.nk.cnine.io.vn/gallery/): compiled example pages - [Theme preview](https://viewer.nk.cnine.io.vn/gallery/themes/): every built-in theme preset on the same page - [3D widgets](https://viewer.nk.cnine.io.vn/gallery/#nk-sec-widgets-3d): scene, network, model, scatter, bar, particle, shader, product, text, morph, globe, terrain, timeline and point cloud 3D demos, linked from the gallery index - [Motion recipes](https://viewer.nk.cnine.io.vn/gallery/motion-recipes.html): every named motion recipe on the blocks it suits - [GitHub repository](https://github.com/bninekit/nk-ecosys/tree/main/nk-viewer): source, README, agent guide, self-hosting - [npm package](https://www.npmjs.com/package/@bninekit/viewer) - [NK](https://nk.cnine.io.vn): the team that builds and hosts NK Viewer