All templates

Starters

Mock a slow API

Endpoints that take their time, so spinners and timeouts get exercised.

4 routes · live immediately · no account needed

Loading states are hard to see on localhost, where every response comes back in a millisecond — which is why so many of them are subtly broken in production. Each route here waits a fixed, known amount before answering, from instant to long enough to trip a default client timeout, so skeletons, spinners, cancellation, and timeout handling can all be checked deliberately.

What you get

GET/instant200 OK
GET/slow200 OK
GET/very-slow200 OK
GET/timeout200 OK

Example response

GET /instant

{
  "latency_ms": 0,
  "message": "Answered immediately."
}

Good for

  • See your loading skeletons for long enough to judge them
  • Verify a client timeout fires when it should
  • Test request cancellation and race handling