Tech riderRev. 20 Sept 2026
  1. 1Runs onWeb
  2. 2CostsNot stated by the maker
  3. 3Dynamic responsesYes
2 lines stated Written from the maker's own pages: github.com
The Pretender.js homepage

Overview

Pretender.js is ranked #24 of 27 in API mocking tools on Specifiction. It runs on Web.

Compared on API mocking tools

Dynamic responses
Yesgithub.com

Facts

Purpose
Pretender is a mock server library for XMLHttpRequest and Fetch with an Express/Sinatra-style routing syntax.github.com · 4 Oct 2026
Browser-only
Pretender only works in the browser.github.com · 4 Oct 2026
Route methods
The routing DSL provides get, put, post, delete, patch, and head methods.github.com · 4 Oct 2026
Response timing
Routes can respond asynchronously, synchronously, after a delay, or only when manually resolved.github.com · 4 Oct 2026
Pass-through
Routes can be configured to pass requests through to native XMLHttpRequest requests.github.com · 4 Oct 2026
Request tracking
Pretender tracks handlers and handled, unhandled, and pass-through requests, and tracking can be disabled with an option.github.com · 4 Oct 2026
Installation
The README shows installation with yarn add -D pretender or npm install --save-dev pretender.github.com · 4 Oct 2026
Module use
The README shows Pretender loaded directly in a browser or imported as a module.github.com · 4 Oct 2026
License
The repository uses the MIT license, which grants permission to use, copy, modify, distribute, sublicense, and sell the software without charge.github.com · 4 Oct 2026
Support and community
The project asks community members to follow its Code of Conduct and directs reports to a maintainer.github.com · 4 Oct 2026

Best Pretender.js alternatives

See all 20

Where it ranks on Specifiction

Is Pretender.js yours?

Claim it for free: prove the domain, then correct facts, plans and screenshots. An editor reviews every change.

Sources