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
NextQuickstart
Platform Overview

Introduction to Playground API

Playground API is an instant, stateful mock REST and GraphQL backend designed for modern frontend, mobile, and AI development. It gives you realistic backend capabilities—with persistent mutations, auth flows, WebSockets, and fault injection—without writing backend code or managing databases.

Production API Endpoint
Zero API Keys NeededCORS Enabled
https://playground.nileslabs.com/api/v1v1.0 (Live)

Requests from your browser automatically receive a signed visitor session cookie (pg_identity). For server-side rendering, CI runners, or mobile apps, pass an X-Playground-Identity header.

Why Playground API? The Stateful Advantage

For years, frontend and mobile engineers have had to choose between two frustrating extremes: static dummy APIs where POST requests vanish instantly, or heavy local backend setups requiring Docker, migrations, and seed scripts. Playground API bridges this gap with virtual session overlays.

Traditional Dummy Mock APIs
  • Ephemeral mutations: Calling POST /posts returns a fake ID, but subsequent GET queries never show your new record.
  • No auth lifecycle: Cannot simulate login token expiration, refresh rotation, or role permission checks.
  • No real protocols: Missing WebSockets, SSE streams, webhook dispatchers, or latency simulation.
Playground API Virtual Sandboxes
  • Copy-on-Write (CoW) overlays: Every create, edit, and delete persists in your private session overlay without touching shared baseline data.
  • Complete auth & RBAC: Real JWT access & refresh tokens, concurrent token refresh mutexes, and 403 role guards.
  • Unified protocol suite: REST, GraphQL, Native WebSockets, Socket.io, SSE, and simulated chaos built in.

Try It in 10 Seconds

Open your terminal and run these commands right now. No sign-up, no API key, and no configuration required.

1. Fetch Baseline Posts
Terminal
1
# Verify instant connectivity and inspect the baseline catalog
2
curl -X GET "https://playground.nileslabs.com/api/v1/posts?_limit=3"
2. Perform a Stateful Mutation
Terminal
1
# Create a persistent post in your private visitor sandbox overlay
2
curl -X POST "https://playground.nileslabs.com/api/v1/posts" \
3
-H "Content-Type: application/json" \
4
-d '{"title": "My First Stateful Post", "body": "Persists on reload!", "user_id": 1}'

Comprehensive Platform Capabilities

Everything modern product teams need to prototype, test, and ship complete frontend applications.

Stateful

Persistent CRUD Mutations

POST, PUT, PATCH, and DELETE operations persist across browser reloads in your private visitor sandbox overlay.

Relational

Core Relational Resources

Users, Posts, Comments, and Todos pre-populated with relational nested routing (/users/1/posts, /posts/1/comments).

Realtime

Realtime & WebSockets

Native WebSocket chat hub (/ws), Socket.io gateway, Server-Sent Events (SSE), and automated presence echo bots.

Security

JWT Auth & RBAC Simulation

Register, login, token refresh rotation with concurrency mutex locks, and simulated 403 role-based permissions.

Billing

Mock Commerce & 3DS Billing

Hosted checkout sessions, payment intents, test credit card vaults, and interactive 3D Secure verification modals.

In-App

Virtual Communications

Integrated virtual email mailbox (Mailtrap-style) and SMS terminal for verifying OTPs and password reset links.

Resilience

Chaos & Fault Injection

Configurable artificial latency (0-5000ms), jitter simulation, custom HTTP error status codes, and 429 rate limiting.

Flexible

Dynamic Custom Collections

Define arbitrary custom schemas on the fly for dynamic E-Commerce, CRM, and SaaS database collections.

GraphQL

GraphQL & GraphiQL IDE

Full GraphQL gateway with schema introspection, nested relational queries, mutations, and realtime subscriptions.

DevOps

Automated CI/CD Fixtures

Headless testing support with X-Playground-Identity headers to isolate parallel test runners in Playwright and Cypress.

AI Agents

AI Context Standards

Ready-to-use LLM context rules including llms.txt, llms-full.txt, product.json, and Cursor/Windsurf rule templates.

Interactive

Interactive API Studio

In-browser visual API workbench to inspect headers, execute live mutations, monitor payloads, and reset sandboxes.

Next Steps

Select a pathway to start integrating Playground API into your workflow.

5-Minute Quickstart

Step-by-step tutorial with interactive health checks and fetch examples.

How It Works

Learn how Copy-on-Write overlays and session isolation engine function.

Recipes & Cookbooks

Copy-paste integration code for React, Next.js, Vue, Axios, and Playwright.