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

@vishalgojha/social-flow

v0.2.17

Published

Social Flow CLI for Meta API operations (Facebook, Instagram, WhatsApp).

Downloads

65

Readme

Social Flow

Social Flow Mint Logo

An agentic operations platform for Meta APIs (Facebook, Instagram, WhatsApp, and Marketing API), with a terminal command surface, a bundled Studio UI, and an API/WebSocket gateway.

Built for developers and agencies that want one consistent system for auth, execution, analytics, and guarded automation.

Do This First

npm ci
npm run build
npm start
npm run quality:check
railway up

Why Use Social Flow

  • One auth surface across Meta APIs
  • Profile-based multi-account workflows
  • Deterministic commands for posting/querying/marketing
  • Agent + chat workflows with risk-aware execution
  • Bundled Studio UI + API/WebSocket gateway (social gateway) for local and remote operation
  • External frontend integration option using secured gateway access (x-gateway-key)
  • Ops control-plane commands for approvals, invites, handoff, and runbooks

Install

npm (recommended)

npm install -g @vishalgojha/social-flow
social --help

Optional executable alias:

social-flow --help

One-click installer (Windows, from repo)

  1. Open the repo locally.
  2. Double-click install.cmd.
  3. After install, choose guided setup (Y) to run auth and launch the gateway.

What installer does:

  • installs dependencies
  • builds required targets
  • links global social command (with fallback)
  • verifies runtime health

Quick Start

# 1) Unified first run (AI provider + setup + health)
social start-here

# 2) Open conversational control plane
social hatch

If social is not recognized in your current terminal, open a new terminal and retry.

Railway + Frontend (Agentic)

  • Deploy gateway on Railway (bundled Studio is available at / plus API/WebSocket routes)
  • Set SOCIAL_GATEWAY_API_KEY and SOCIAL_GATEWAY_CORS_ORIGINS
  • Connect your frontend with x-gateway-key header on REST and ?gatewayKey= on /ws
  • Optional launcher:
social studio --url https://<railway-domain> --frontend-url https://<frontend-domain>

Command Surface

social auth ...        # token/app credential management
social query ...       # generic Graph API reads
social post ...        # Facebook page posting
social marketing ...   # Ads/Marketing API operations
social whatsapp ...    # WhatsApp API operations
social ai "..."        # natural-language command interface
social chat            # conversational chat agent
social agent ...       # plan/execute agent workflows
social gateway         # localhost API/WebSocket gateway
social ops ...         # agency ops workflows + reports/handoff
social hub ...         # package/connector trust + lifecycle

Agency portfolio view:

social marketing portfolio --preset last_7d --target-daily 250
social marketing portfolio --targets-file ./agency-targets.json --include-missing

Docs Index

  • Fast walkthrough: QUICKSTART.md
  • Example commands: EXAMPLES.md
  • Domain skills: skills/README.md
  • AI interface details: docs/AI_INTERFACE.md
  • Chat agent details: docs/CHAT_AGENT.md
  • Gateway API details: docs/GATEWAY_UI.md
  • Command-surface v2 simplification map: docs/CLI_V2_MIGRATION.md
  • Deployment runbook: DEPLOYMENT.md
  • TypeScript migration plan: docs/TYPESCRIPT_MIGRATION.md
  • Contributor guide: CONTRIBUTING.md
  • Publish/release maintainer flow: SETUP_AND_PUBLISHING.md

Troubleshooting (Quick)

social command not found

  • Open a fresh terminal after install.
  • Run local CLI directly from repo root:
node .\dist-legacy\bin\social.js --help

PowerShell blocks npm scripts (npm.ps1 policy issue)

Use npm.cmd in PowerShell:

npm.cmd install
npm.cmd link

npm link EPERM on Windows

  • Run terminal as Administrator, or
  • Enable Windows Developer Mode, or
  • Use repo-local execution (node .\dist-legacy\bin\social.js ...) instead of global link.

Safety Notes

High-risk operations (campaign mutation, budget updates, bulk sends, etc.) should be reviewed before execution. Use:

  • social doctor
  • plan-first flows in social ai / social agent
  • approvals in social ops for team workflows

Maintainer Release

npm run release:patch

Other options:

  • npm run release:minor
  • npm run release:major
  • npm run release:dry-run

License

MIT - see LICENSE.