# mswjs/data

Data querying library for testing JavaScript applications.

Repository: https://github.com/mswjs/data
Canonical: https://ross.abutalabs.com/products/mswjs-data
Homepage: https://npmjs.com/@msw/data
Language: TypeScript
License: MIT
License Family: permissive
Topics: mocking, orm, data-modeling, api, fixtures, testing, testing-tool
Last push: 2026-08-30T13:03:15+00:00

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

## Adoption (not part of the score)
Stars 1061, forks 66 (observed 2026-09-01T02:14:05.163327+00:00)

## What it is
A data querying library for testing JavaScript applications that lets developers define schema-based collections and query them with an ORM-inspired syntax. It works standalone or alongside Mock Service Worker to mock data at both the network and data layers.

## Use cases
- create test fixtures for javascript tests
- mock database layer in unit tests
- seed test data with faker
- query in-memory test records with prisma-like syntax
- mock api responses with msw and test data
- model relational test data with relations

## When to choose
- you need realistic, schema-validated test data in JavaScript/TypeScript apps
- you use Mock Service Worker and want consistent data and network mocking
- you want ORM-style querying of fixtures without a real database

## When to avoid
- you need a real persistent database or production ORM
- your tests don't involve data modeling or fixtures
- you work outside the JavaScript/TypeScript ecosystem

## Facets
- artifact type: library
- maturity: active
- function: mocking, testing, data-generation
- domain: testing, developer-tools, databases
- platform: browser, cross-platform
- tags: orm-inspired, fixtures, schema-based, msw, typescript, test-data, nodejs

## Member repositories
- mswjs/data (main) score 100

## Provenance
- Observed fields: from GitHub, fetched 2026-09-01T02:14:05.163327+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:05:09.588407+00:00, confidence not recorded.
  - readme: https://github.com/mswjs/data (fetched 2026-09-01T02:14:05.163327+00:00, sha 429564444845)
- Data as of 2026-08-30T08:39:29.467469+00:00.
