opencoredev /
social-sdk
Project URL Category JS Project Title Social SDK: one TypeScript client for seven social platforms Project Description Social SDK is an MIT TypeScript library for adding social features to an app. One client talks to X, …
opencoredev /
Project URL Category JS Project Title Social SDK: one TypeScript client for seven social platforms Project Description Social SDK is an MIT TypeScript library for adding social features to an app. One client talks to X, …
Project URL Category JS Project Title Social SDK: one TypeScript client for seven social platforms Project Description Social SDK is an MIT TypeScript library for adding social features to an app. One client talks to X, Threads, Bluesky, LinkedIn, Instagram, TikTok and YouTube directly, or to managed backends like Postiz and Buffer. Runs on Node.js 22.12+ or Bun. Highlights Each publish target returns its own outcome (published, processing, accepted, failed, unknown) instead of one success flag. Capability checks say up front what each platform and backend supports. A deterministic mock backend lets you test without calling live APIs. Example Code ts import { createSocial, connectedAccountRef } from "@opencoredev/social-sdk"; import { mockBackend } from "@opencoredev/social-sdk/testing"; const social = createSocial({ backend: mockBackend({ scenario: "immediate-text-success" }), }); const result = await social.posts.publish({ targets: [ { account: connectedAccountRef({ backend: "default", platform: "x", accountId: "mock-account-1", }), }, ], content: { text: "Hello from Social SDK" }, idempotencyKey: "quickstart-1", }); console.log(result.status, result.outcomes[0]?.state); // complete published Screenshots or Demo Videos
Discuss this product