An isomorphic, zero-dependency client library providing end-to-end type safety, automatic session identity persistence, intelligent retry backoff, and full autocomplete across browser, Node.js, and Next.js runtimes.
Add playground-api to your application with your favorite package manager:
Browser CDN Alternative: You can also load the client bundle directly via script tag from https://playground.nileslabs.com/api/v1/downloads/playground-api.js which exposes window.PlaygroundClient.
Initialize the client according to your application environment:
Every standard API resource is exposed as a strongly typed submodule on the client:
Failed HTTP calls throw typed PlaygroundApiError exceptions with status codes, error identifiers, and field-level validation details:
Generate copy-pasteable request snippets in your language of choice.