Ogma is an open-source, local-first design viewer for AI-assisted product design review.
The npm package is @hcgstudio/ogma. It provides a Node CLI, a local review server, a React JSX prototype viewer, pinned annotations, stable feedback IDs, a feedback queue, and a URL-based skill contract for Codex and Claude Code.
Install: Copy the following to your code agent:
Install Skill: https://raw.githubusercontent.com/hcgstudio/ogma/main/docs/skills/ogma/SKILL.md
The skill explains how agents should create JSX screens, write product notes, install @hcgstudio/ogma, start the local review server, and preserve feedback IDs such as OG-001 when applying edits.
npm install -D @hcgstudio/ogma
npx ogma scaffold
npx ogma startThe default review URL is http://localhost:4317/review. scaffold creates missing Ogma files without overwriting existing work. start also creates missing files before launching the server:
designs/ogma/review.tsxfor JSX prototype screensdesigns/ogma/product-notes.mdfor product design notes.ogma/session.jsonfor persisted annotations and feedback IDs
npx ogma scaffold
npx ogma scaffold --review designs/ogma
npx ogma init
npx ogma start --review designs/ogma
npx ogma start --review designs/ogma --port 4317 --no-open
npx ogma skill-urlFeedback can be read from .ogma/session.json or http://localhost:4317/api/ogma/feedback.
Session history is stored in .ogma/history.json, and viewport snapshots are stored in .ogma/snapshots.
corepack enable
yarn install
yarn typecheck
yarn dev