Install

Packages, supported runtimes and how to add Sponsorkit to your project, and which versions to use.

On this page

Every SDK is one package with the same behaviour and the same result shape. Pick yours:

LanguagePackageRuntimeDependencies
JavaScript / TypeScript@sponsorkit/sdkNode 20+, Bun, Deno, evergreen browsersNone
.NETSponsorkitnetstandard2.0 and net8.0 buildsSystem.Text.Json (netstandard2.0 only)
PythonsponsorkitPython 3.10+httpx
Gogithub.com/ffMathy/sponsorkit/sdks/goGo 1.23+Standard library only
RustsponsorkitRust 1.85+ (MSRV), Tokioreqwest (rustls), serde, tokio

Rust apps also need a Tokio runtime, for example cargo add tokio --features macros,rt-multi-thread.

Use 1.0.0 or later

Every SDK is published at 1.0.0: npm, NuGet, PyPI, crates.io and the Go module proxy. Releases before 1.0.0 used an older spelling of Open Collective and don't work with the hosted API; see versions.

Install#

npm install @sponsorkit/sdk

Run each command in your project's folder. Package managers & CDNs has the commands for pnpm, Yarn, Bun, Deno, uv, Poetry, Paket and more.

In this section#

  • Package managers & CDNs: npm, pnpm, Yarn, Bun, Deno and browser CDNs; dotnet, PackageReference and Paket; pip, uv and Poetry; Go modules; Cargo.
  • Supported platforms: runtime versions, sign-in methods and where state is stored on each operating system.
  • Verify the install: print the installed version and run a smoke test without signing in.
  • Versions & pinning: how SDK versions and release tags work, and how to pin one.
  • Build from source: use an unreleased SDK or change from this monorepo.

Once installed, continue with the quickstart.