SDKs & LibrariesOfficial

The API, wrapped in your language of choice.

Official SDKs for TypeScript and Python — with full type safety, automatic retries, pagination helpers, and webhook utilities built in.

Available now & coming soon.

TSAvailable

TypeScript / JavaScript

v1.2.0
npm install socialrouter
PyAvailable

Python

v1.1.0
pip install socialrouter
LaravelAvailable

Laravel

v1.0.2
composer require socialrouter/laravel
RbAvailable

Ruby

v1.0.1
gem install socialrouter
GoComing soon

Go

go get github.com/socialrouter/socialrouter-go
JavaComing soon

Java

implementation "eu.socialrouter:sdk:1.0.0"
C#Coming soon

.NET / C#

dotnet add package SocialRouter
SwiftComing soon

Swift

.package(url: "...socialrouter-swift")

From install to
first post in minutes.

  • One-line install from npm or PyPI
  • Typed client with autocomplete for every param
  • Same API surface across all supported languages
  • Mirrors the REST API — switch without relearning
import SocialRouter from "socialrouter"

const client = new SocialRouter(process.env.SR_API_KEY)

// Publish to multiple platforms
const post = await client.posts.create({
content: "Hello from SocialRouter!",
platforms: ["twitter", "linkedin"],
})

console.log(post.id, post.status) // "post_abc123", "scheduled"

More than a thin wrapper.

Full type safety

Complete TypeScript types and Python type hints. Autocomplete across all endpoints, params, and responses.

Automatic retries

Configurable retry logic with exponential back-off. The SDK handles transient failures so you don't have to.

Pagination helpers

Built-in auto-pagination for list endpoints. Iterate over every result without managing cursors manually.

Webhook utilities

Signature verification and typed event parsing built in. Drop in the middleware and start handling events.

Tree-shakeable

Import only what you need. The JS SDK is fully tree-shakeable so your bundle only grows with what you use.

Zero dependencies

The Python SDK ships with zero third-party dependencies. The JS SDK has one: the native fetch API.

Ship faster in your stack.

Get a walkthrough of the SDK and see how quickly your team can integrate social publishing.