# Kong/insomnia-mockbin

Insomnia Mockbin is the underlying backend for the API mocks capability of Insomnia. It is built and used by Kong, the author of the open-source Kong Gateway.

Repository: https://github.com/Kong/insomnia-mockbin
Canonical: https://ross.abutalabs.com/products/insomnia-mockbin
Homepage: https://insomnia.rest/
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: apis, mocking, api-management, api-testing, api-client, testing-tools, api-test, api-mock
Last push: 2026-08-26T16:14:25+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 4559, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2048, forks 211 (observed 2026-08-28T04:06:09.055636+00:00)

## What it is
Insomnia Mockbin is the backend service powering the API mocking capability of Kong's Insomnia platform. It lets developers create custom mock bins that return HAR-based responses in JSON, YAML, XML, or HTML and log incoming requests.

## Use cases
- mock api endpoints for frontend development
- self-host a mock server from an openapi spec
- log and inspect incoming http requests to a mock endpoint
- return canned json yaml xml responses for testing
- unblock parallel api development before backend is ready

## When to choose
- you use Insomnia and want to self-host its mock server backend
- you need HAR-based mock responses with multiple output formats
- you want request logging to debug client calls against mocks

## When to avoid
- you need a fully open-source license - this repo is source-visible, not open-source
- you want a general-purpose API gateway rather than a mocking service
- you need persistent mock definitions without Redis

## Facets
- artifact type: service
- maturity: active
- function: http-server, mock-api, testing, api-framework
- domain: apis, developer-tools, testing, web-development
- platform: self-hosted
- tags: api-mocking, har, mock-server, insomnia, kong, request-logging, source-visible, nodejs, docker, web-server

## Member repositories
- Kong/insomnia-mockbin (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.055636+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:41.158746+00:00, confidence not recorded.
  - readme: https://github.com/Kong/insomnia-mockbin (fetched 2026-08-28T04:06:09.055636+00:00, sha 9d022f286a20)
  - homepage: https://insomnia.rest/ (fetched 2026-08-29T10:38:12.814366+00:00, sha 1a3668d159e8)
  - site_page: https://insomnia.rest/features/ai-native (fetched 2026-08-29T10:38:12.823751+00:00, sha 8a9243bf7d5d)
  - site_page: https://insomnia.rest/features/api-design (fetched 2026-08-29T10:38:12.825625+00:00, sha 65aed8c18bcd)
  - site_page: https://insomnia.rest/features/insomnia-cli (fetched 2026-08-29T10:38:12.827237+00:00, sha c3db252dd22a)
  - site_page: https://insomnia.rest/features/api-mocking (fetched 2026-08-29T10:38:12.828789+00:00, sha e03bd0d4cc6a)
  - site_page: https://insomnia.rest/features/collaboration (fetched 2026-08-29T10:38:12.830332+00:00, sha c0f3c4e11dcc)
  - site_page: https://insomnia.rest/features/api-testing (fetched 2026-08-29T10:38:12.831785+00:00, sha f3c046a76a3b)
  - site_page: https://insomnia.rest/features/local-vault (fetched 2026-08-29T10:38:12.833264+00:00, sha 66dcbba28ea5)
  - site_page: https://insomnia.rest/features/api-debugging (fetched 2026-08-29T10:38:12.834780+00:00, sha 0eff3c5d3450)
- Data as of 2026-08-30T08:39:29.467469+00:00.
