Node.js / TypeScript · Node 18+
Node.js / TypeScript SDK for the Modiva API
The typed Node.js & TypeScript client — the reference SDK for the Modiva API. One typed client reaches all 24 integrations and 280+ tools across social, ads, CRM and e-commerce — auth, retries, pagination and idempotency handled for you.
Install
npm i @modiva/nodeRequires Node 18+. Set MODIVA_API_KEY in your environment — the client reads it automatically.
Quickstart
Connect an account in the dashboard, create an API key, then publish in a few lines.
import { Modiva } from "@modiva/node";
const modiva = new Modiva(); // reads MODIVA_API_KEY
// List connected accounts
const connections = await modiva.connections.list();
// Publish a post (or schedule with scheduledAt)
await modiva.social.posts.create({
connectionId: connections[0].id,
text: "Hello from the Modiva Node SDK 👋",
});What you get
- One client for all 24 integrations — no library per platform.
- Typed methods for posts, comments, DMs and analytics, plus a generic tool surface for every one of the 280+ tools.
- Bearer-key auth from
MODIVA_API_KEY; provider OAuth and token refresh handled server-side. - Automatic retries with backoff, idempotent creates, and built-in pagination.
- MIT-licensed and open source on GitHub.
Frequently asked questions
How do I install the Modiva Node.js / TypeScript SDK?
Run `npm i @modiva/node`. It requires Node 18+. Then set MODIVA_API_KEY in your environment (create a key in the dashboard) and instantiate the client.
Is the Node.js / TypeScript SDK free and open source?
Yes — it's MIT-licensed and published on GitHub at modiva-dev/modiva-node. Read the source, file issues and contribute.
Which integrations does the Node.js / TypeScript SDK support?
All of them. One client reaches every one of the 24 integrations — Instagram, TikTok, Google Ads, HubSpot, Shopify and more — through the same typed methods and a generic tool surface.
Other languages
Start building with Node.js / TypeScript
Free to start · First 3 connected accounts free · API key in one click
Create free account