SDKs
Phosra provides official SDKs to accelerate your integration. All SDKs wrap the REST API and provide typed interfaces and token management. (There is no general automatic-retry option in@phosra/sdk@0.1.0 — the one built-in retry is the single onTokenExpired 401 retry; see the TypeScript SDK.)
Available SDKs
TypeScript SDK
Full-featured SDK for Node.js and browser applications. Typed interfaces for all 80 endpoints.
MCP Server
Model Context Protocol server for AI agent integration. Works with Claude, GPT, and other MCP-compatible agents.
iOS SDK
On-device child safety enforcement using FamilyControls, ManagedSettings, and DeviceActivity.
Android SDK
On-device enforcement using UsageStatsManager, VpnService, DevicePolicyManager, and AccessibilityService.
Published packages
These are the packages actually on the public npm registry today. Versions verified againstnpm view — pin the ones you use.
The native iOS and Android enforcement SDKs are distributed privately (not on npm/Maven Central yet) — see iOS SDK and Android SDK, or email
developers@phosra.com for repo access. There is no published @ocss/* npm scope; the open standard’s library ships under @openchildsafety/*.Language coverage
Phosra ships a first-party TypeScript SDK today. Every other language talks to the same plain-JSON REST API directly — no SDK required, and the Quickstart proves the curl / Python / Go paths run copy-paste against the live sandbox.Generate a typed client in any language
Need Python, Go, Java, Rust, or C#? The OpenAPI spec drives standard code generators to produce a fully-typed client in about a minute. The Generate a client in your language guide runs the real commands (openapi-generator-cli for Python/Go/Java, openapi-typescript for TS)
against the live sandbox and pastes the actual output — including a generated-client
call that returns 201.
Generate a client in your language
Worked TypeScript, Python, and Go clients from the hosted spec — verified copy-paste,
plus which-spec guidance and the RFC 9421 data-plane caveat.
SDK Comparison
Direct API Access
All SDKs are optional. The REST API is plain JSON over HTTPS — call it from any language. Every tab leads with the open sandbox (https://phosra-api-sandbox-production.up.railway.app) so your first copy-paste returns 201 with no API key. The same one-call setup in four languages:
Going to production. Swap the sandbox
baseUrl for the production host (https://prodapi.phosra.com/api/v1) and add a phosra_ API key. The raw HTTP tabs send the key as Authorization: Bearer (the canonical header) against the /developer/* prefix; the TypeScript PhosraClient sends the same key as the X-Api-Key header internally — both are accepted. See Authentication.Get your API key
Sign up at dashboard.phosra.com/signup and mint a key on the Keys page —
phosra_test_… for the sandbox, phosra_live_… for production.