Connect SDKs
A typed package for building on top of DuabaConnect — embedding its social-marketing and AI-automation engine into your own app, on behalf of your own clients.
Published under the
@duabalabs/npm scope. Source lives atapps/duabaconnect/packages/connect-client.
Packages
What it’s for
@duabalabs/connect-client is the engine’s public face. An integrating app (e.g. Sellub) uses it to offer its clients two capabilities without building either:
- Social — connect a client’s social platforms, then run product campaigns that auto-generate image/video posts and publish them on a schedule (Postiz under the hood).
- Automations — a catalog of parameterized AI/n8n workflows a client can deploy and run against their commerce journey.
The integrator’s catalog never leaves their own system — every call carries a clientRef (the integrator’s stable id for the end client, e.g. a Sellub seller’s account id or email), which Connect maps to its own account/Postiz customer.
Install
npm install @duabalabs/connect-client
# or
pnpm add @duabalabs/connect-clientQuick start
import { createConnectClient } from "@duabalabs/connect-client";
const connect = createConnectClient({
apiKey: process.env.CONNECT_API_KEY, // server-only
});
await connect.social.createCampaign({ clientRef, product, platforms, mediaType });
await connect.automations.deploy({ clientRef, workflowKey, config });The Connect API key is server-only — it identifies the integrating app, not an end user. Never embed it in a browser bundle.
See the full reference: @duabalabs/connect-client.