Playground API
DocsStatsBlogStudio
Documentation Tree
Technical BlogFeature Deep Dives
  • Introduction
  • Quickstart
    5 min
  • How It Works
  • Recipes & Cookbooks
  • Platform Comparisons
  • Real-World Showcase
  • Interactive Studio
    Studio
  • GraphiQL IDE
    IDE
  • Session Quotas & Activity
  • Network Chaos Simulator
  • Atomic Sandbox Reset
  • Overview & Models
    Hub
  • Users Resource
  • Posts Resource
  • Comments Resource
  • Todos Resource
  • Custom Collections
    Custom
  • Multipart File Uploads
    Upload
  • Dynamic SVG Avatars
    SVG
  • Image Thumbnails
    CDN
  • Relational Filtering
  • Full-Text Search
  • Dynamic Sorting
  • Offset Pagination
  • Cursor Pagination
    Scroll
  • CSV & Excel Export & Import
    IO
  • Custom Collections
    CRUD
  • Overview & Architecture
    Hub
  • JWT Auth Flow
  • Refresh Token Rotation
    Mutex
  • RBAC Permission Matrix
    Roles
  • Expiry Simulation
  • Clock Skew Drift
  • Password Recovery Loop
  • Dual-Mode Sandboxing
  • GraphiQL IDE
    IDE
  • Relational Queries
  • Stateful Mutations
  • Realtime Subscriptions
  • Overview & Flowcharts
    Hub
  • Hosted Checkout
    Stripe
  • Payment Intents API
  • 3DS Challenge Modal
    Modal
  • Customers Vault
  • Charges & Refunds
  • Test Cards Catalog
  • Overview & Channels
    Hub
  • Virtual Email Mailbox
    Mailtrap
  • Virtual SMS Terminal
    Phone
  • In-App Notifications
  • Message Dispatcher
  • Realtime Studio
    Studio
  • Native WebSocket (/ws)
  • Socket.io Gateway
  • Presence & Echo Bot
  • Server-Sent Events (SSE)
    SSE
  • Analytics Telemetry
  • Webhook Subscriptions
  • HMAC SHA-256 Signatures
  • Delivery Logs
  • Manual Retry Simulator
  • Network Latency Delay
  • HTTP Status Codes
  • Rate-Limit Simulator
    429
  • Flaky Network & Jitter
    Chaos
  • Session Quotas & Activity
  • JSON Snapshots
    JSON
  • Headless CI/CD Testing
    CI
  • Mobile QR Code Sync
  • System Metrics & Health
  • Atomic Sandbox Reset
  • Official TypeScript SDK
  • Multi-Language Generators
  • DevTools Extension
  • OpenAPI 3.1 Spec
    JSON
  • Postman Collection v2.1
  • Bruno Collection
  • Insomnia Workspace
  • TypeScript .d.ts
    .d.ts
  • AI Prompt Rules
    Rules
  • Context Index (llms.txt)
  • Full Schema (llms-full.txt)
  • Manifest (product.json)
  • All Feature Articles
    Blog
  • React CRUD Without Backend
    Deep Dive
  • Why Static APIs Fail
  • Mocking Stateful Auth
  • WebSockets & SSE Guide
Technical Blog
Articles

In-depth articles explaining stateful mock APIs, WebSockets, payments, and frontend resilience.

Read Articles
PreviousSession Quotas & Activity
NextAtomic Sandbox Reset
Chaos & Resilience

Network Chaos & Latency Simulator

Test UI skeleton loaders, error toast alerts, debounce handlers, and optimistic rollbacks by injecting configurable network delays, HTTP error codes, and flaky jitter into any REST query.

Chaos Engineering & Fault Injection Pipeline
Fault Injection
Playground API Chaos Engineering and Network Latency Simulation Engine Workflow Diagram
Click to expand full architecture
Runtime resilience testing: Intercept incoming requests to inject artificial delays, forced HTTP error codes, and flaky jitter without mock code changes.Interactive High-Resolution Flowchart
1Query Modifiers

Request Modifiers

Attach query parameters (_delay=2000, _status=500, _flaky=true) to any API call.

2Middleware

Chaos Middleware

Injects artificial latency timers (0-5000ms), error overrides, and jitter randomizers.

3UX Resilience

Frontend UX Resilience

Validate skeleton loading animations, toast error messages, and retry backoff UX.

Interactive Chaos Playground

Configure modifiers and click "Trigger Request" to test real-world network edge cases:

0ms2.5s5.0s
https://playground.nileslabs.com/api/v1/posts?_delay=1500&_limit=3

Supported Chaos Modifiers

Modifier TypeQuery ParamHTTP Header AlternativeDescription
Latency Delay?_delay=1500X-Simulate-Delay: 1500Sleeps on the server for 0-5000 milliseconds before sending headers.
Status Override?_status=500X-Simulate-Status: 500Forces response code to 400, 401, 403, 404, 429, 500, or 503.
Random Flakiness?_flaky=trueX-Simulate-Flaky: trueInjects randomized latency (200-2500ms) and random 10% packet drops.

Need to test specific error codes?

Simulate 400 Bad Request, 404 Not Found, 429 Rate Limits, or 500 Server Crashes.

View Status Code Injection