Skip to content

Development

github-actions[bot] edited this page Nov 4, 2026 · 1 revision

Development

You need Node.js from .nvmrc, npm 12 and Git.

Setup

npm install
npm run dev

On Linux, install the libcurl and font packages listed in the README.

Commands

Command Purpose
npm run dev Start the app with live reload
npm run lint Lint every package
npm run type-check Type-check every package
npm test Run unit tests
npm run app-build Production build
npm run app-package Build installers

Conventions

  • Use React Router loaders and actions for data.
  • Use React Aria for interactive elements.
  • Use Tailwind utility classes.
  • Add IPC handlers in src/main/ipc and expose them in src/entry.preload.ts.
  • Buffer bulk database writes.

Upgrading Electron

Update electron and node-libcurl together, then rebuild native modules with npm install. Check the window controls on Linux afterwards. See Decisions.

Regenerating icons

Edit packages/insomnia/src/icons/icon.svg, then run this. It needs rsvg-convert and ImageMagick.

node packages/insomnia/scripts/generate-icons.mjs

Clone this wiki locally