Build Insomnia

YESreplaces $12/mosaves $144/yrback to the verdict

0%0 of 15 items done

Saved on this device only. Tick prerequisites first, then work the phases in order · do not start one until the checks above it pass.

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.

estimated effort one sittingthe files for this build are in the project pack

RuntimeNode 22, a CLI plus a localhost pageStorageYAML in git, SQLite history

Before step 1

Everything below is assumed from the first step. Tick each one when you actually have it, not when you plan to.

  1. 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

  2. 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

  3. 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

  4. decidefree

    Why The fork that stayed file-based and offline. Use it unless you want your own.

    Get it usebruno.com open ↗

  5. 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.

VariableNeededExampleWhere the value comes from
API_UI_PORToptional4880Localhost port for the small UI.
API_TOKENsecretoptional...Example secret referenced as {{env.API_TOKEN}}.

The build, in order

  1. Runner

    One request from YAML with substitution; secrets from the shell only.

    1. 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 passes
  2. Assertions and chaining

    Non-zero exit on failure; a token captured into the next call.

    done when · tick each as it passes
  3. History

    Every run to SQLite; list and diff.

    done when · tick each as it passes
  4. Local UI

    A localhost page listing requests, running one, showing the response.

    done when · tick each as it passes
  5. Import

    Insomnia v4 becomes YAML.

    done when · tick each as it passes
what this build does not replace
after v1, if you want it

Need the files? The project pack on the verdict page hands your agent the whole brief · more dev tools.