Skip to main content

Playground Overview

The built-in playground provides demo endpoints for all supported protocols, perfect for learning and testing Istek features.

What is the Playground?​

The playground is a local server that runs inside Istek, providing:

  • REST API for HTTP testing
  • WebSocket echo server
  • SSE (Server-Sent Events) for real-time streaming
  • GraphQL endpoint with queries and mutations
  • gRPC service with reflection enabled
  • MQTT broker for pub/sub testing
  • Unix Socket server (macOS/Linux)

Starting the Playground​

  1. Look for the Playground panel at the bottom of the sidebar
  2. Click Start Playground
  3. Wait for all services to start (green indicators)

Stopping the Playground​

Click Stop Playground to shut down all services.

Architecture​

Ports​

ServicePortURL
HTTP (REST, WS, GraphQL)19510http://localhost:19510
MQTT Broker19511localhost:19511
gRPC Server19512localhost:19512
Unix Socket-/tmp/istek-playground.sock

Data​

The playground comes with sample data:

Products​

IDNamePriceCategory
1Laptop Pro$1299.99Electronics
2Wireless Mouse$49.99Electronics
3Coffee Mug$14.99Kitchen
4Notebook Set$24.99Office
5USB-C Cable$19.99Electronics

Users (GraphQL)​

IDNameEmail
1Alice Johnsonalice@example.com
2Bob Smithbob@example.com
3Carol Whitecarol@example.com
4David Browndavid@example.com
5Eve Daviseve@example.com

Data Reset​

Data modifications are stored in memory. To reset:

  1. Stop the playground
  2. Start the playground again

Or call:

POST http://localhost:19510/api/reset

Use Cases​

Learning​

Practice with each protocol before using real APIs.

Documentation Examples​

All documentation examples use playground endpoints.

Offline Development​

Work without internet using local playground services.

Debugging​

Test request configurations before sending to production.

Features by Protocol​

ProtocolFeatures
HTTPCRUD operations, OpenAPI spec
WebSocketEcho messages, JSON responses
SSEReal-time event streaming, counters, timestamps
GraphQLQueries, mutations, SDL endpoint
gRPCReflection, unary calls, streaming
MQTTPublish, subscribe, QoS levels
Unix SocketSame as HTTP, via socket

Next Steps​

See Playground Endpoints for detailed API documentation.