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

optimal-cli

v3.1.0

Published

Optimal CLI — unified command-line interface for bot orchestration, financial analytics, content management, and infrastructure

Downloads

2,822

Readme

Optimal CLI

Unified command-line interface for agent config sync, financial analytics, content management, and infrastructure.

npm version License: MIT

Installation

# Install globally
npm install -g optimal-cli

# Or use with npx (no install)
npx optimal-cli <command>

Quick Start

  1. Install the CLI:
npm install -g optimal-cli
  1. Initialize local config:
optimal config init --owner yourname
  1. Set up environment variables in ~/.optimal/.env:
# OptimalOS Supabase (for config sync, kanban)
OPTIMAL_SUPABASE_URL=https://hbfalrpswysryltysonm.supabase.co
OPTIMAL_SUPABASE_SERVICE_KEY=your_service_key

# ReturnPro Supabase (for financial data)
RETURNPRO_SUPABASE_URL=https://vvutttwunexshxkmygik.supabase.co
RETURNPRO_SUPABASE_SERVICE_KEY=your_service_key

# Strapi CMS
STRAPI_URL=https://strapi.optimal.miami
STRAPI_API_TOKEN=your_token

# AI Provider (for content generation)
OPENAI_API_KEY=your_key
  1. Verify setup:
optimal doctor
  1. Sync your agent config (optional):
optimal config push --agent youragent

Commands

Config Sync (Agent Management)

Synchronize OpenClaw configurations across multiple agents.

| Command | Description | |---------|-------------| | optimal config push --agent <name> | Push local ~/.openclaw/openclaw.json to cloud | | optimal config pull --agent <name> | Pull config from cloud to local | | optimal config list | List all saved agent configs | | optimal config diff --agent <name> | Compare local vs cloud config | | optimal config sync --agent <name> | Two-way sync (newer wins) |

Example workflow:

# Push Oracle's config
optimal config push --agent oracle

# Pull it on another machine
optimal config pull --agent oracle

# Auto-sync (detects which is newer)
optimal config sync --agent oracle

Kanban Board

Manage tasks across agents.

| Command | Description | |---------|-------------| | optimal board view | Display kanban board | | optimal board create --title "Task name" | Create new task | | optimal board update --id <uuid> --status done | Update task status | | optimal board sync:pull | Pull supabase tasks to obsidian | | optimal board sync:push | Push obsidian tasks to supabase | | optimal board sync:status | Diff supabase vs obsidian |

Financial Analytics (ReturnPro)

| Command | Description | |---------|-------------| | optimal audit-financials | Compare staged vs confirmed financials | | optimal export-kpis --format csv | Export KPI data | | optimal project-budget --adjustment-value 4 | Run budget projections | | optimal rate-anomalies | Detect rate anomalies | | optimal upload-r1 --file data.xlsx --month 2025-01 | Upload R1 data |

Content Management (Strapi CMS)

| Command | Description | |---------|-------------| | optimal generate-newsletter --brand CRE-11TRUST | Generate newsletter | | optimal distribute-newsletter --document-id <id> | Send newsletter | | optimal generate-social-posts --brand LIFEINSUR | Generate social posts | | optimal publish-social-posts --brand CRE-11TRUST | Publish to platforms | | optimal blog-drafts | List unpublished blogs | | optimal publish-blog --slug my-post | Publish blog post |

Infrastructure

| Command | Description | |---------|-------------| | optimal deploy <app> --prod | Deploy to Vercel | | optimal health-check | Check all services | | optimal migrate push --target optimalos | Run DB migrations |

Authentication

All config sync operations require Supabase authentication. The CLI uses your service role key for server-side operations.

To get your credentials:

  1. Go to Supabase Dashboard
  2. Select your project
  3. Settings → API → Copy "service_role key"

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | OPTIMAL_SUPABASE_URL | ✅ | OptimalOS Supabase URL | | OPTIMAL_SUPABASE_SERVICE_KEY | ✅ | OptimalOS service role key | | RETURNPRO_SUPABASE_URL | For financial commands | ReturnPro Supabase URL | | RETURNPRO_SUPABASE_SERVICE_KEY | For financial commands | ReturnPro service key | | STRAPI_URL | For CMS commands | Strapi CMS URL | | STRAPI_API_TOKEN | For CMS commands | Strapi API token | | OPENAI_API_KEY | For AI commands | OpenAI API key |

Multi-Agent Sync Workflow

  1. Oracle (primary) makes config changes:

    optimal config sync push --profile oracle
  2. Opal pulls latest config:

    optimal config sync pull --profile oracle
    # or
    optimal config sync
  3. Verify sync:

    optimal config list

Development

# Clone repo
git clone https://github.com/clenisa/optimal-cli.git
cd optimal-cli

# Install dependencies
pnpm install

# Run in dev mode
pnpm dev

# Build
pnpm build

# Lint
pnpm lint

License

MIT © Carlos Lenis