# jakerella/jquery-mockjax

The jQuery Mockjax Plugin provides a simple and extremely flexible interface for mocking or simulating ajax requests and responses

Repository: https://github.com/jakerella/jquery-mockjax
Canonical: https://ross.abutalabs.com/products/jquery-mockjax
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2026-08-10T16:12:58+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 71, longevity 100
- inputs: {"age_days": 5964, "days_push": 23, "days_rel": 118, "gap_med": 71, "n_releases_24m": 2}
- 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 2088, forks 365 (observed 2026-08-28T04:06:12.089729+00:00)

## What it is
A jQuery plugin that mocks and simulates ajax requests and responses so front-end code can be tested without a live server. It intercepts $.ajax() calls and returns configurable mock responses, statuses, headers, and latency.

## Use cases
- mock ajax requests in front-end unit tests
- simulate API responses without a backend server
- test error handling by simulating HTTP status codes and timeouts
- simulate network latency in jQuery ajax calls
- mock JSONP requests during testing

## When to choose
- you are testing jQuery-based front-end code that uses $.ajax()
- you need fine-grained control over mocked responses, headers, and latency
- you want request matching by URL, data, headers, or HTTP method

## When to avoid
- your front end does not use jQuery's ajax methods
- you need mocking for fetch or axios instead
- you want a mock server for integration or production use

## Facets
- artifact type: library
- maturity: stable
- function: mocking, testing, http-client
- domain: testing, frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: jquery-plugin, ajax-mocking, front-end-testing, unit-testing, nodejs

## Member repositories
- jakerella/jquery-mockjax (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:12.089729+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:55:41.881570+00:00, confidence not recorded.
  - readme: https://github.com/jakerella/jquery-mockjax (fetched 2026-08-28T04:06:12.089729+00:00, sha b2f51da41ee0)
  - registry_npm: https://registry.npmjs.org/jquery-mockjax (fetched 2026-08-29T10:35:48.712949+00:00, sha f1004f41c35b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
