docs
SDKs

SDKs

The official clients for Ruby and Rails, Node.js, Next.js and Bun, and Go. Each one is open source, MIT, with no dependencies.

The three follow the same rules:

  • They send the API key in Authorization, and a User-Agent of their own, so the console shows which mails came from an SDK.
  • They try again only on a 503 or a network error, 3 times in all, with a wait that doubles (500 ms, then 1 s).
  • Each retry uses the same Idempotency-Key: the one you pass, or one the client makes. A retry never sends a mail twice.
  • No browser build: an API key must never reach a browser.
SDKInstallSource
Rubybundle add 1billionclowk-in/1billion-ruby
JavaScriptpnpm add @clowk/1billionclowk-in/1billion-js
Gogo get github.com/clowk-in/1billion-goclowk-in/1billion-go