If you've ever built automated posting for social media, you know the pain. X has its own rate limits, Bluesky runs on the AT Protocol, and Instagram enforces strict media sessions.
OpenCore has released Social SDK v0.1 (MIT), a typed TypeScript library for Node.js 22.12+ and Bun. It standardizes integrations across seven platforms behind a single trusted server-side interface.
npm install @opencoredev/social-sdk
bun add @opencoredev/social-sdk
The library isolates platform-specific methods via subpath imports. Multi-posting through social.posts.publish() returns separate per-target statuses (complete, processing, failed) with idempotencyKey support:
import { createSocial, connectedAccountRef } from '@opencoredev/social-sdk';
const social = createSocial({ apiKey: process.env.SOCIAL_SDK_KEY! });
const res = await social.posts.publish({
targets: [
{ account: connectedAccountRef({ backend: 'default', platform: 'x', accountId: 'x-101' }) },
{ account: connectedAccountRef({ backend: 'default', platform: 'bluesky', accountId: 'did:plc:123' }) },
],
content: { text: 'Анонс через единый Social SDK!' },
idempotencyKey: 'rel-20261017',
});
For CI tests, mockBackend simulates network delays without burning through real API quotas.
