Ross ROSS = Recommend OSS · open-source software intelligence for agents

pretenderjs/pretender

Some data may be outdated — see provenance labels.

A mock server library with a nice routing DSL observed · 2026-09-25

github.com/pretenderjs/pretender · JavaScript · MIT (permissive) observed · 2026-09-25

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4573
  • days_rel: n/a
  • days_push: 996
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1261 stars · 154 forks observed · 2026-09-25

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Pretender is a browser-only mock server library that intercepts XMLHttpRequest and Fetch requests and routes them to handlers defined with an express/sinatra-style DSL. It is commonly used in frontend testing to simulate backend APIs without a real server.

Use cases

  • mock api responses in browser tests
  • intercept fetch and xmlhttprequest requests
  • stub backend endpoints for frontend development
  • test ajax calls without a real server
  • define fake rest routes with an express-style dsl

When to choose

  • you need to mock XHR or Fetch in browser-based tests like Ember or QUnit suites
  • you want a lightweight, express-style routing DSL for fake endpoints
  • you're developing a frontend against an unfinished backend API

When to avoid

  • you need to mock requests in Node.js or server-side code (Pretender is browser-only)
  • you need full HTTP server simulation with networking, TLS, or websockets
  • your project uses modern alternatives like MSW and wants active maintenance

Facets

library · maturity maintenance

mocking http-client routing testing testing web-development frontend developer-tools browser mock-server xhr fetch request-interception express-style-dsl frontend-testing javascript nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
pretenderjs/pretendermain23

For agents

markdown · JSON · MCP: product_card(name="pretenderjs/pretender")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem