hitspec docs
Output AI-readable documentation (llms.txt) for AI agents to learn hitspec syntax.
hitspec studio
Open the keyboard-first interactive app for working with hitspec files, right in the terminal.What It Provides
- Inline
.httpand.hitspecsource editing with syntax highlighting and save - File tree, request table, response viewer, headers, assertions, and history
- Stress, mock, contract, record, import, cookies, and settings screens
- Copy/export as curl, HTTPie, Python, fetch, or Go; workspace search; environment switching
- Command palette and keyboard-first navigation
- Real-time file watching and execution progress
Flags
| Flag | Short | Description | Default |
|---|---|---|---|
--watch | -w | Watch for file changes | true |
--read-only | Disallow file mutations | false | |
--env | -e | Default environment | dev |
--config | Path to hitspec.yaml | ||
--verbose | -v | Verbose logging | false |
--allow-shell | Allow shell command execution | false | |
--allow-db | Allow database assertions | false | |
--log-format | Log format: text or json | text | |
--log-level | Log level: debug, info, warn, error | info | |
--theme | Color theme (see below) | Nord |
Themes
studio ships with five built-in color themes: Nord, Catppuccin Mocha, Dracula, Tokyo Night, and Gruvbox Dark. Switch at any time withctrl+t (or the command palette), or set one at launch with --theme:
Examples
hitspec serve
Start the REST/WebSocket API server for scripts and integrations. With no flags it openshitspec studio; pass --api-only to run just the API with no interactive UI.
What It Provides
- REST endpoints under
/api/v1/* - Realtime events over WebSocket at
/api/v1/ws - The same parser, runner, history store, and engines as the CLI
serve.
Flags
| Flag | Short | Description | Default |
|---|---|---|---|
--api-only | REST/WebSocket API only, no interactive UI | false | |
--port | -p | API server port | 4000 |
--host | API bind address | localhost | |
--cors | Enable CORS headers | false | |
--watch | -w | Watch for file changes | true |
--read-only | Disallow mutating actions | false | |
--env | -e | Default environment | dev |
--config | Path to hitspec.yaml | ||
--verbose | -v | Verbose logging | false |
--allow-shell | Allow shell command execution | false | |
--allow-db | Allow database assertions | false | |
--log-format | Log format: text or json | text | |
--log-level | Log level: debug, info, warn, error | info |