PSPDFKit-labs/bypass
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests. observed · 2026-10-21
Health v2 · maintenance only
43/100
- Activity 23
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: 4052
- days_rel: n/a
- days_push: 467
- n_releases_24m: 0
Adoption not part of the score
1001 stars · 118 forks observed · 2026-10-21
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-07, confidence 0.97
Bypass is an Elixir library for spinning up a lightweight mock HTTP server (a Plug) inside tests to return prebaked responses to client requests. It supports route-specific expectations, stubs, and toggling the server up/down to simulate downtime.
Use cases
- mock an external HTTP API in Elixir tests
- test how an HTTP client handles error responses like 429
- simulate a server going down and recovering in tests
- stub specific routes with method and path expectations
- run async ExUnit tests against a local test server
When to choose
- you're writing Elixir/ExUnit tests for code that makes HTTP requests
- you need fine-grained control over mock responses and server availability
- you want a lightweight in-process alternative to a full mock server
When to avoid
- you need contract testing or recorded/replayed traffic rather than hand-written stubs
- your project isn't in Elixir or on the Erlang VM
- you need to mock non-HTTP protocols
Facets
library · maturity stable
testing mocking http-server middleware testing web-development developer-tools elixir jvm elixir plug mock-http-server test-server exunit cowboy
1 source
- readme: https://github.com/PSPDFKit-labs/bypass · fetched 2026-10-21 · 785603c35fa1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| PSPDFKit-labs/bypass | main | 43 |
For agents
markdown · JSON · MCP: product_card(name="PSPDFKit-labs/bypass")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem