# google/intermock

Mocking library to create mock objects with fake data for TypeScript interfaces

Repository: https://github.com/google/intermock
Canonical: https://ross.abutalabs.com/products/intermock
Homepage: https://google.github.io/intermock/
Language: TypeScript
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2024-06-10T23:18:41+00:00

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

## Adoption (not part of the score)
Stars 1144, forks 71 (observed 2026-08-28T04:03:45.086021+00:00)

## What it is
Intermock is a Google open-source mocking library that generates mock objects and JSON with fake data from TypeScript interfaces using Faker. It can be used via a CLI or a small programmatic API.

## Use cases
- generate fake JSON data from TypeScript interfaces
- create mock objects for frontend development
- seed test fixtures with realistic fake data
- mock API response payloads from type definitions
- generate demo data for prototypes

## When to choose
- you have TypeScript interfaces and need realistic fake data quickly
- you want a CLI to generate mock JSON without writing code
- you need Faker-style data controlled via JSDoc annotations

## When to avoid
- your project is not TypeScript-based
- you need dynamic runtime mocking of HTTP APIs
- you need highly customized or relational fake data generation

## Facets
- artifact type: library
- maturity: maintenance
- function: mocking, data-generation, testing, cli
- domain: developer-tools, testing
- platform: cli
- tags: fake-data, typescript-interfaces, faker, mock-objects, json-generation, typescript, nodejs

## Member repositories
- google/intermock (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:45.086021+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-30T06:34:44.801810+00:00, confidence not recorded.
  - readme: https://github.com/google/intermock (fetched 2026-08-28T04:03:45.086021+00:00, sha 2046216884df)
  - homepage: https://google.github.io/intermock/ (fetched 2026-08-29T12:40:03.565064+00:00, sha 7721c6d047cb)
  - registry_npm: https://registry.npmjs.org/intermock (fetched 2026-08-29T12:40:03.574627+00:00, sha de05e6eb3595)
- Data as of 2026-08-30T08:39:29.467469+00:00.
