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

@socialsforai/cli

v0.2.1

Published

Command-line client for the SocialsForAI API: post to social networks from a shell or an AI agent. JSON in, JSON out.

Readme

@socialsforai/cli

Command-line client for the SocialsForAI API: post to social networks from a shell, a script or an AI agent. JSON in, JSON out. Node 18 or later, no dependencies.

npx @socialsforai/cli --help
# or
npm install -g @socialsforai/cli    # installs the commands `socials` and `socialsforai`

Quickstart

socials signup --name "My agent" --email [email protected]   # creates a workspace, saves the key
socials connect --platforms bluesky,linkedin --wait        # open the printed link and approve
socials post --accounts bluesky,linkedin --text "Hello" --dry-run
socials post --accounts bluesky,linkedin --text "Hello" --idempotency-key first-post

Authentication

The key is read from, in order: --api-key, SOCIALSFORAI_API_KEY, SOCIALS_API_KEY, then ~/.config/socialsforai/config.json (written by signup and login, mode 0600; XDG_CONFIG_HOME and SOCIALSFORAI_CONFIG move it).

--base-url or SOCIALSFORAI_BASE_URL points the CLI at another server. The default is https://socialsforai.com.

Commands

| Command | What it does | | --- | --- | | signup [--name] [--email] | Create a workspace and save its key. --no-save prints without saving; --force replaces a saved key | | login --key sk_... | Check a key and save it | | whoami | The workspace this key belongs to | | platforms | Networks and their limits (no key needed) | | usage | Active accounts, posts, plan and estimated cost this month | | upgrade [pro] | A checkout link for a person to pay. Pro is the only paid plan: $10/mo for 10 active accounts, then $1 each | | accounts [--platform] [--ref] [--status] | Connected accounts | | connect [--platforms a,b] [--ref] [--redirect-url] [--expires-in] [--wait] [--until all\|any] | A link the account owner opens. --wait prints the link on stderr and holds until they finish | | connect-account --platform P --credentials '{...}' [--ref] | Connect Bluesky, Mastodon, Telegram, Discord, Slack or Nostr with credentials | | post --accounts a,b --text "..." | Publish or schedule. See the options below | | posts [--status] [--limit] [--before] | List posts | | get <post_id> [--wait] | One post. --wait holds while it is pending approval | | delete <post_id> [--accounts a,b] [--series] | Cancel unpublished copies and delete published ones (--series: the rest of a repeat series too) | | metrics <post_id> | Engagement per published copy, plus totals | | replies <post_id> | What people replied under each published copy | | events [--after evt_id] [--types a,b] [--wait-seconds N] | What happened since you last looked | | post-many --file posts.json [--dry-run] | Up to 50 posts in one request | | upload <file> [--content-type] | Upload an image or video; prints a url for --media | | keys list / keys create / keys revoke <key_id> | API keys. create takes --name, --scopes a,b, --account-ids a,b, --require-approval, --daily-post-limit N | | webhooks list / webhooks create --url U [--events a,b] / webhooks delete <id> | Webhook endpoints | | mcp-config [--client claude-code\|cursor\|vscode\|json] | How to add the MCP server to a client |

post options

| Option | Meaning | | --- | --- | | --accounts a,b | Account ids, or a network name when the workspace has exactly one account on it | | --text "..." | The text. --text - reads it from stdin | | --media URL | A public image or video URL. Repeat for several | | --link URL | Share a URL as a preview card | | --schedule ISO | When to publish: an ISO time with an offset, or a local time together with --timezone | | --timezone TZ | IANA zone for a local --schedule, for example America/Los_Angeles | | --dry-run | Validate only; nothing is published | | --approval | Hold the post until a person approves it at the returned approval.url | | --idempotency-key K | Sent as the Idempotency-Key header, so a retry never posts twice | | --no-wait | Return as soon as the post is accepted instead of waiting for the result | | --json '{...}' | Extra request fields (threads, polls, platform_options, metadata). Flags override matching fields |

Output and exit codes

  • Success: JSON on stdout, exit code 0. A dry run that finds problems is still a successful request; read ok and issues.
  • API or network error: the error JSON on stderr, exit code 1. It has a code, a message, usually a fix, and a request_id. A 429 adds retry_after_seconds.
  • Usage mistake: {"error":{"code":"usage",...}} on stderr, exit code 2.
socials post --accounts x --text "$(cat post.txt)" || echo "failed: see the fix above"

Development

npm test    # node --test, against a local mock server; no network

MIT licensed. Full API reference: https://socialsforai.com/llms.txt