Skip to content
Back to search

sdk

UsageRail SDKs for Node.js and Python: API keys, rate limits, quotas and usage metering inside your API server

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/usagerail--sdk/badge.svg)](/listings/usagerail--sdk)

HTML

<a href="/listings/usagerail--sdk"><img src="/api/listings/usagerail--sdk/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 24 lines
  1. # UsageRail SDKs
  2. Source for the UsageRail SDKs. They check API keys, apply rate limits and quotas, and count usage per customer inside your own API server, then report the counts to UsageRail in the background. Requests never pass through us.
  3. | SDK | Install | Frameworks | Source |
  4. |---|---|---|---|
  5. | Node.js 22+ | `npm install @usagerail/node` | Express, Hono, Fastify, Next.js | [node/](node) |
  6. | Python 3.10+ | `pip install usagerail` | FastAPI, Starlette, Flask, Django | [python/](python) |
  7. Setup guides and the API reference are at [usagerail.com/docs](https://usagerail.com/docs). To try the HTTP API before writing any code, there's a [UsageRail collection in a public Postman workspace](https://www.postman.com/usagerail-1505643/usagerail-api). The Node.js SDK is also published on [JSR as @usagerail/node](https://jsr.io/@usagerail/node).
  8. If you use a coding agent, [skills/add-usagerail/SKILL.md](skills/add-usagerail/SKILL.md) is an agent skill that walks it through adding the SDK to an existing API.
  9. ## Issues and pull requests
  10. Both are welcome here. The SDKs are developed in UsageRail's main codebase, next to the service they talk to, and this repository is published from there. An accepted pull request is applied upstream and comes back here with the next sync, credited to you.
  11. ## Releases
  12. From 0.1.1 on, every version on npm and PyPI is built and published by the [release workflow](.github/workflows/release.yml) from a tag in this repository (`node-v0.1.1`, `python-v0.1.1`). npm shows the commit each of those versions was built from.
  13. ## License
  14. MIT

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.