npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

kadenzo-sdk

v1.0.0

Published

Official JavaScript/TypeScript SDK for the Kadenzo API — schedule posts, generate captions, upload media, read analytics, and find best times across 12+ networks.

Readme

kadenzo-sdk

Official JavaScript/TypeScript SDK for the Kadenzo API — schedule posts, generate captions, upload media, read analytics, and find your best times across 12+ networks (Instagram, TikTok, X, LinkedIn, YouTube, Facebook, Pinterest, Threads, Bluesky, Mastodon, Telegram) from your own code. Zero dependencies, fully typed.

Install

npm install kadenzo-sdk

Auth

Generate an API key in Kadenzo (Settings → API keys, studio.kadenzo.app/dashboard/settings?section=api; paid plans), then pass it in or set KADENZO_API_KEY.

import { Kadenzo } from 'kadenzo-sdk'

const kadenzo = new Kadenzo({ apiKey: process.env.KADENZO_API_KEY })

Quick start

// 1. List your connected accounts
const accounts = await kadenzo.accounts.list()

// 2. Generate copy from a topic
const draft = await kadenzo.generate({
  topic: 'our summer sale',
  platform: 'instagram',
  goal: 'promote',
})

// 3. Schedule it for a future time
const post = await kadenzo.posts.schedule({
  content: draft.text ?? 'Hello 👋',
  accountIds: [accounts[0].id],
  scheduledFor: '2026-08-01T09:00:00Z',
})

API

// Accounts
await kadenzo.accounts.list()
await kadenzo.accounts.analytics(accountId, { limit })
await kadenzo.accounts.bestTimes(accountId)          // Professional+

// Posts (schedule-only — the scheduler publishes at scheduledFor)
await kadenzo.posts.list({ status, limit, offset })
await kadenzo.posts.get(postId)
await kadenzo.posts.schedule({ content, accountIds, scheduledFor, mediaUrls, dryRun })
await kadenzo.posts.update(postId, { content, accountIds, scheduledFor, mediaUrls })
await kadenzo.posts.cancel(postId)
await kadenzo.posts.analytics(postId)

// Media — upload a Buffer/Blob, get a hosted URL to attach
const { urls } = await kadenzo.media.upload(fileBuffer, 'photo.jpg')

// Generate copy
await kadenzo.generate({ topic, platform, goal })   // platform: instagram|tiktok|snapchat|facebook|youtube

// Listening + replies
await kadenzo.mentions.list({ platform, since, unread, limit })
await kadenzo.comments.create({ accountId, targetId, text })  // instagram|facebook|linkedin

Errors

Any non-2xx response throws a KadenzoError with the HTTP status and the API's code:

import { Kadenzo, KadenzoError } from 'kadenzo-sdk'

try {
  await kadenzo.posts.schedule({ accountIds: [], scheduledFor: '2026-08-01T09:00:00Z' })
} catch (err) {
  if (err instanceof KadenzoError) {
    console.error(err.status, err.code, err.message) // e.g. 422 invalid_account_ids ...
  }
}

Notes

  • Schedule-only: posts go live at scheduledFor through each network's official API — there's no instant publish.
  • Idempotency: pass idempotencyKey to posts.schedule() to make retries safe.
  • Requirements: Node 18+ (built-in fetch/FormData/Blob) or a modern browser.

Links

  • Website: https://kadenzo.app
  • API docs: https://kadenzo.app/features/api
  • CLI: kadenzo-cli · MCP server: kadenzo-mcp

License

MIT © Kadenzo