Install spek
spek reads any repository that has an openspec/ directory. Each form below shows the same views
(Browsing). The GitHub Action is different:
it builds a static page in CI instead of running on your machine.
VS Code
Section titled “VS Code”Install spek — OpenSpec Viewer from the Visual Studio Marketplace (it is also on Open VSX). It needs VS Code 1.85 or later.
-
It turns on when the workspace’s
openspec/directory containsconfig.yaml,specs/, orchanges/. -
The spek icon in the Activity Bar opens a sidebar that lists your specs (nested by folder) and changes. Click an item to open it in the full viewer panel.
-
Commands: spek: Open spek, spek: Search OpenSpec, spek: Open Dashboard.
-
Settings:
Setting What it does Default spek.aggregateWorktreesShow the changes of every git worktree of the repository truespek.aggregateJjWorkspacesExperimental: also show jj workspaces falseThe panel’s scope control writes these settings, and editing the settings updates the control (Worktree aggregation).
JetBrains IDEs
Section titled “JetBrains IDEs”Install spek - OpenSpec Viewer from the JetBrains Marketplace — or search for “spek” in Settings › Plugins › Marketplace. It works in IntelliJ IDEA, WebStorm, PyCharm, PhpStorm, GoLand, RubyMine, CLion, Rider, and other IntelliJ-based IDEs, 2023.3 or later.
- It turns on when the project contains an
openspec/directory. - Open it from the spek tool window in the right sidebar, or Tools › Open spek.
- It renders inside the IDE when the IDE has an embedded browser (JCEF). Otherwise it opens the same page in your default browser.
- The plugin does not aggregate worktrees.
Web app
Section titled “Web app”The web app runs from spek’s source; it is not published as a package. You need Node.js 22 or later, and git.
git clone https://github.com/spekhq/spek.gitcd speknpm installnpm run devOpen http://localhost:5173, enter the path of a repository that contains an openspec/ directory, and
browse. npm run dev starts two processes on your machine: the page on port 5173, and the API the page
reads from on port 3001 (Data and network).
The OpenSpec CLI
Section titled “The OpenSpec CLI”spek reads openspec/ on its own. When the OpenSpec CLI is
installed, spek also asks it about the repository’s workflow schemas. Without the CLI everything else still
works, but spek can show less about schemas.