Build Insomnia
YESreplaces $12/mosaves $144/yrback to the verdict
A file-based API client for one developer, with a small local web UI: requests as YAML in git, secrets only from the shell, assertions and chaining, history with diffs, and an importer for Insomnia's v4 export. Bruno is the free open-source answer; this is the version you can read in an afternoon.
Before step 1
Everything below is assumed from the first step. Tick each one when you actually have it, not when you plan to.
- installfree
Why Everything in this build runs on it: the server, the scripts, the tests.
Get it Download the LTS installer from nodejs.org, or install with your package manager (brew install node, or nvm install 22). Restart the terminal afterwards. open ↗
Verify
node --version prints v22 or higher - installfree
Why Every step below is a command you type or a file you edit.
Get it VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal. open ↗
Verify
You can open a folder and run a command in its terminal - installfree
Why History for your code, and the way most hosts deploy.
Get it Install from git-scm.com or with your package manager, then run git init in the project folder once it exists. open ↗
Verify
git --version prints a version - decidefree
Why The fork that stayed file-based and offline. Use it unless you want your own.
Get it usebruno.com open ↗
- have readyfree
Why Phase 5 imports it.
Get it Insomnia > Preferences > Data > Export Data > Insomnia v4 JSON.
Data model
Create these before the first phase that stores anything. Changing a table later is the expensive kind of change.
- requests/<name>.yaml (method, url, headers, query, body, auth, asserts), environments/<name>.yaml, history.sqlite.
Environment variables
These go in a .env file the app reads at startup. The pack's .env.example is this table as a file · copy it, never commit the filled-in version.
| Variable | Needed | Example | Where the value comes from |
|---|---|---|---|
API_UI_PORT | optional | 4880 | Localhost port for the small UI. |
API_TOKENsecret | optional | ... | Example secret referenced as {{env.API_TOKEN}}. |
The build, in order
Runner
One request from YAML with substitution; secrets from the shell only.
- terminal
mkdir api-cli && cd api-cli && git init && npm init -y && npm pkg set type=module && npm install yaml@2 mkdir -p requests environments && cp .env.example .env
done when · tick each as it passesAssertions and chaining
Non-zero exit on failure; a token captured into the next call.
done when · tick each as it passesHistory
Local UI
A localhost page listing requests, running one, showing the response.
done when · tick each as it passesImport
Share with a teamproduct builder
Publish the CLI and run the collection in CI.
done when · tick each as it passes
That is the whole plan for Insomnia. What it deliberately does not cover is below · check the gaps before you call it a replacement.
- Cloud sync, RBAC, mocks, gRPC: the seat price.
- the desktop GUI
- cloud projects and RBAC
- the mock server
- GraphQL and gRPC tooling
- OpenAPI import
- Response schema assertions
Need the files? The project pack on the verdict page hands your agent the whole brief · more dev tools.