JavaScript / TypeScript
@pocketenv/sdk — tagged template literals, builder pattern, full sub-resource support.Gleam
pocketenv on hex.pm — type-safe, functional, pipe-friendly API.Clojure
io.pocketenv/pocketenv on Clojars — idiomatic Clojure with -> chaining.Elixir
pocketenv_ex on hex.pm — pipe-friendly, OTP-ready, config via config.exs.Authentication
All SDKs resolve your token from the same sources, in priority order:- Passed explicitly at the call site
POCKETENV_TOKENenvironment variable~/.pocketenv/token.json— written bypocketenv login
Common concepts
Every SDK covers the same core resources:| Resource | Description |
|---|---|
| Sandbox | Create, start, stop, delete, exec |
| Environment variables | Plaintext key-value config |
| Secrets | Encrypted credentials (redacted in responses) |
| Files | Read/write files inside a sandbox |
| Ports | Expose sandbox ports to the internet |
| Services | Long-running processes |
| Volumes | Persistent storage |
| Backups | Point-in-time directory snapshots |
