Skip to content

vishalgojha/social-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

239 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Flow

Social Flow Mint Logo

Deterministic CLI for Meta profile, post, and ads workflows.

Social Flow now standardizes on the latest deterministic CLI path. The shipped social binary, the dev entrypoint, and the TypeScript cli/ source all resolve to the same command surface and the same ~/.social-flow/config.json store.

Quickstart

# 1) Install
npm install -g @vishalgojha/social-flow

# 2) Set token, defaults, and AI provider
social onboard
# also provisions Chromium for browser automation unless you pass --skip-browser

# 3) Verify local readiness
social doctor
social status

# 4) Run a command
social profile get --fields id,name

Natural-language mode:

social ai --provider deterministic "list ads account act_123"
social ai --provider ollama "get my facebook profile"

Core Commands

social onboard
social doctor
social status
social status --profiles
social config
social accounts summary
social accounts check --only needs-setup
social accounts switch <name>
social profile get --fields id,name
social post create --message "Hello team" --page-id PAGE_ID
social ads list --account act_123
social ops center
social logs
social replay <LOG_ID>
social ai --provider deterministic "create post \"Hello\" page 12345"
social hatch

Hatch UI

Launch the agentic terminal UI with:

social hatch

Onboarding notes:

  • Facebook/Instagram: opens Graph Explorer to generate a token.
  • WhatsApp: opens Meta App Dashboard (WhatsApp API Setup) for token generation.

WhatsApp Send Safety

social whatsapp send requires --sandbox or --prod (or set SOCIAL_WABA_MODE=prod). Sandbox mode prints the payload and never sends.

Retry tuning for transient Meta failures:

  • SOCIAL_META_RETRY_MAX (default 3)
  • SOCIAL_META_RETRY_BASE_MS (default 1000)
  • SOCIAL_META_RETRY_MAX_MS (default 8000)

Config Compatibility

  • Active state lives in ~/.social-flow/config.json
  • Existing ~/.social-cli/config.json and ~/.meta-cli/config.json are migrated automatically
  • Existing profile-based ~/.social-flow/config.json files continue to work; the latest CLI now reads and writes that shared schema directly

Developer Workflow

npm ci
npm run build:social-ts
npm run test:social-ts
npm start

npm run dev uses the same latest CLI entrypoint as the published social binary.

Docs

License

Open-core licensing:

About

Run Meta operations without chaos. Social Flow is a guided control plane for agencies, growth teams, and account operators managing Facebook, Instagram, WhatsApp, and Ads Manager workflows. It gives you one place for setup, daily execution, approvals, reporting, and handoffs via commands, gateway APIs, and an SDK.

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE-COMMERCIAL.md

Contributing

Stars

Watchers

Forks

Packages