DevTrends开发者趋势
主题色

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, …

语言TypeScriptDT生活与娱乐DT软件开发DT库 / SDK原始api-integration原始atproto原始bluesky原始bun原始developer-tools原始instagram原始linkedin原始nodejs原始oauth

关于

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

收录记录

  1. Show HN

    2026年10月3日 · 1 次收录

  2. HelloGitHub·用户投稿

    2026年10月19日 · 1 次收录

  3. 阮一峰周刊·用户投稿

    2026年10月19日 · 1 次收录

讨论这个产品