resq-software/npm workspace. It
publishes a UI component library plus seven standalone utility packages
under the @resq-sw/* scope. The packages are Effect-based, with zero or
peer dependencies where it matters.
| Package | Purpose |
|---|---|
@resq-sw/http | HTTP client utilities |
@resq-sw/security | Auth and crypto helpers |
@resq-sw/dsa | Zero-dependency data structures |
@resq-sw/logger | Structured logging |
@resq-sw/rate-limiting | Rate-limiting primitives |
@resq-sw/decorators | Method decorators |
@resq-sw/helpers | Cross-cutting utilities |
Install only what you need — every package is independently versioned and
tree-shakable. See the
README for the canonical
per-package API.
Install
Authenticate
You can callPOST /login directly with fetch while you’re getting set
up. The packages provide higher-level wrappers — see the package READMEs
for their current API.
expires_at (Unix seconds) as authoritative — refresh proactively
when fewer than 60 seconds remain. See Authentication
for rotation guidance.
First call
Errors
The API rejects with HTTP status codes; bodies follow the envelope at Errors. For retry/backoff, the@resq-sw/rate-limiting and
@resq-sw/http packages provide ready-made primitives — refer to the
resq-software/npm README for
their current shape.
Browser
The packages ship native ESM and tree-shake cleanly. In the browser:- Never embed long-lived credentials in client JavaScript.
- Issue short-lived operator tokens server-side and hand them to the page.
- Use a same-site, HTTP-only cookie or
sessionStorage(memory only) to hold the token; clear on logout.
Next
API reference
Full endpoint catalog for both APIs.
Other SDKs
Python, Rust, .NET, and more.