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

ugcinc

v4.6.2

Published

TypeScript/JavaScript client for the UGC Inc API

Downloads

2,279

Readme

ugcinc

Official TypeScript/JavaScript client for the UGC Inc API.

Use this README as a quick reference. For full API details, examples, onboarding, and product information, go to:

  • Docs: https://docs.ugc.inc
  • Website: https://ugc.inc

Installation

npm install ugcinc

Quick Start

import { UGCClient } from "ugcinc";

const client = new UGCClient({
  apiKey: process.env.UGC_API_KEY!,
  // optional: when using admin key, scope requests to a specific org
  orgId: "org_123",
});

const res = await client.accounts.getAccounts({ status: "setup" });

if (res.ok) {
  console.log(res.data.length);
}

Authentication

  • apiKey is required.
  • Standard API keys operate on their own organization.
  • Admin keys can be scoped with orgId.

Overview

UGCClient groups the API into a few top-level namespaces:

  • client.accounts: list, create, update, troubleshoot, and manage account lifecycle
  • client.posts: create video/slideshow posts, update them, retry failures, and preview schedule conflicts
  • client.media: upload media, create media records, manage tags/names, and work with social audio
  • client.stats: fetch account/post analytics, daily aggregates, top performers, and refresh stats
  • client.org: manage organizations, API keys, and integration keys
  • client.billing: inspect subscription state and handle account deactivation, replacements, and refunds
  • client.automations: create, run, publish, export, and monitor automation workflows
  • client.comments and client.tasks: manage comment jobs and account tasks

The package also exports the API request/response types plus automation/render utilities used by the product.

Common Pattern

All client methods return the same response envelope:

type ApiResponse<T> =
  | { ok: true; code: 200; message: string; data: T }
  | { ok: false; code: number; message: string };

Example:

const posts = await client.posts.getPosts({ accountIds: ["acc_123"] });

if (posts.ok) {
  console.log(posts.data.length);
} else {
  console.error(posts.code, posts.message);
}

Useful Exports

  • UGCClient for API access
  • Request/response types for all public client methods
  • Automation graph utilities and node definitions
  • Render helpers and render job types

Full Reference

For the full endpoint reference, all method signatures, data structures, and workflow examples:

  • Docs: https://docs.ugc.inc
  • Website: https://ugc.inc

License

MIT