# service-mocker/service-mocker

🚀 Next generation frontend API mocking framework

Repository: https://github.com/service-mocker/service-mocker
Canonical: https://ross.abutalabs.com/products/service-mocker
Homepage: https://service-mocker.js.org
Language: JavaScript
License: MIT
License Family: permissive
Topics: service-worker, mock
Archived: true
Last push: 2020-07-21T12:35:10+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3562, "days_push": 2234, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1005, forks 28 (observed 2026-09-03T02:15:17.790292+00:00)

## What it is
Service Mocker is a frontend API mocking framework that uses service workers to intercept real HTTP requests without requiring any backend server. It provides an Express-style routing system for defining mock endpoints in browser-based development workflows.

## Use cases
- mock backend APIs during frontend development
- intercept fetch requests with service workers
- test frontend apps without a real server
- define express-style mock routes in the browser
- prototype frontend features before the API exists

## When to choose
- you need realistic HTTP request/response mocking in the browser
- you want API mocks with zero server setup
- you prefer express-style routing for mock endpoints

## When to avoid
- you need to mock in Node.js or non-browser environments
- your target browsers lack service worker support and you cannot use polyfills
- you need an actively maintained project - last release was 2020

## Facets
- artifact type: framework
- maturity: maintenance
- function: mocking, mock-api, http-client, routing, testing
- domain: web-development, frontend, developer-tools, testing
- platform: browser
- tags: service-worker, api-mocking, frontend-development, express-style-routing, no-server, nodejs, javascript

## Member repositories
- service-mocker/service-mocker (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:17.790292+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-30T07:13:40.141950+00:00, confidence not recorded.
  - readme: https://github.com/service-mocker/service-mocker (fetched 2026-09-03T02:15:17.790292+00:00, sha 4d378891653b)
  - homepage: https://service-mocker.js.org (fetched 2026-08-29T13:13:25.016693+00:00, sha 36e0997fda20)
  - registry_npm: https://registry.npmjs.org/service-mocker (fetched 2026-08-29T13:13:25.026367+00:00, sha 89ab78ac50ec)
- Data as of 2026-08-30T08:39:29.467469+00:00.
