Azure Cosmos DB
Playground

Query. Learn. Share. No setup required.
An interactive sandbox for Cosmos DB SQL queries — powered by the vNext emulator.

Everything you need to explore Azure Cosmos DB

A focused set of capabilities for learning, prototyping, and sharing — without the overhead.

Pre-Loaded Datasets

Choose from built-in datasets—IoT telemetry, movies, products—each paired with ready-to-run example queries.

Custom Data

Paste your own JSON or upload a file. Write queries from scratch against your own data models and structures.

Shareable Links

Generate a link that captures your dataset and query. Anyone opening it lands in the same state, ready to run.

Session Restore

Refresh the page or close the tab — your last dataset and query are saved. Pick up exactly where you left off.

Embeddable

Embed interactive examples in blogs, docs, and tutorials. Readers run live queries alongside your written content.

Dark & Light Mode

Toggle between themes with a click. Your preference persists across pages and sessions automatically.

From query to result in seconds

Each query runs in an isolated container against the Cosmos DB vNext emulator. Nothing to install.

01

Write Your Query

Choose a dataset or paste your own JSON, then write a SQL query in the interactive editor.

02

Runs in a Sandbox

Behind the scenes, an ephemeral Docker container spins up, seeds your data, and executes the query against the emulator.

03

See Results Instantly

Results appear inline. Iterate, modify, share — all in the browser with zero cleanup required.

Under the hood

Four components, one Docker network. Simple by design.

User Browser
HTML + Codapi Widget
nginx
Reverse Proxy + Static Files
Codapi
Sandbox Server
Ephemeral Container
Cosmos DB vNext Emulator

Each query runs in an isolated, ephemeral container. Data is seeded per-request and cleaned up automatically. Read the full architecture docs →

Self-host in minutes

Run the full playground locally with Docker Compose. All services — emulator, sandbox server, and frontend — start automatically on a shared network.

  • No cloud account or API keys needed
  • Runs entirely on your machine
  • Only Docker required as a prerequisite
terminal
# Clone the repo
git clone https://github.com/abhirockzz/cosmosdb-playground.git
cd cosmosdb-playground

# Start everything
docker compose up

# Open in browser
http://localhost/playground.html