Important
This project is currently under active development. Features and interfaces are subject to change.
Spec Viewer is a specialized visualization tool designed to accompany the Spec Kit ecosystem. It facilitates Spec Driven Development (SDD) by providing a high-fidelity, live preview of technical specifications as they evolve.
Unlike generic Markdown viewers, Spec Viewer is tailored to the specific needs of the SDD workflow, ensuring that specifications remain the readable and authoritative source of truth for your development process. It serves as the visual interface for your "living specifications," allowing developers and stakeholders to review architectural decisions and data models in real-time.
- SDD Optimization: Designed to render Spec Kit artifacts with precision.
- Live Synchronization: Instant feedback loop for file changes using WebSocket connections with scroll-preserving hot reload.
- GitHub Flavored Markdown: Full support for tables, task lists, strikethrough, and auto-linked URLs.
- Mermaid Diagrams: Render flowcharts, sequence diagrams, ER diagrams, and more directly in your specs.
- Table of Contents: Auto-generated from headings with desktop sidebar and mobile overlay.
- Sidebar Search: Filter specs by file or folder name.
- Inline Comments: Annotate spec blocks with review comments stored in localStorage. Hover any block to reveal a comment indicator, add notes, then export all comments as an LLM-ready prompt with a single click.
- Mobile Responsive: Collapsible sidebar and TOC overlays for mobile and tablet.
- Zero Configuration: Adheres to Spec Kit conventions "out of the box" without requiring complex setup.
- Global Accessibility: Runs as a standalone CLI tool primarily for local development environments.
Spec Viewer is distributed as a Go binary and should be installed globally to be accessible from any project directory.
Ensure you have Go installed (version 1.25 or higher).
go install github.com/SantiagoBobrik/spec-viewer/cmd/spec-viewer@latestTo start the viewer, navigate to the root of your project or the directory containing your specifications:
spec-viewer serveBy default, the server listens on port 9091 and watches the ./specs directory, following standard Spec Kit structure.
You can override the default behaviors using command-line flags:
| Flag | Shorthand | Description | Default |
|---|---|---|---|
--port |
-p |
Port to run the server on | 9091 |
--folder |
-f |
Directory to watch for Markdown files | ./specs |
- Generate specifications using Spec Kit.
- Run
spec-viewer servein a separate terminal window. - Open
http://localhost:9091in your browser. - As you or your AI agents update the specifications, the viewer will automatically refresh to reflect the latest state.
Spec Viewer includes a client-side annotation system for reviewing specs:
- Hover any block (paragraph, heading, list, etc.) to reveal the comment indicator in the left gutter.
- Click the indicator to open the comment popover. Add comments with the textarea or press
Cmd/Ctrl+Enter. - Review — blocks with comments show a persistent indicator with a count badge, and the sidebar displays a badge per file showing total comment count.
- Export — click the chat-bubble button in the header to copy all comments as an LLM-ready prompt to your clipboard. Comments are automatically purged after copying.
Comments persist in localStorage and survive page refreshes and file edits (comments reconcile to shifted blocks via text matching).
This project is open source and welcomes contributions. Please ensure all pull requests adhere to the existing architectural standards.
This project is licensed under the MIT License. See the LICENSE file for details.



