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

@cortex-os/cli

v1.0.0

Published

Cortex OS CLI - Lock decisions. Learn faster.

Downloads

53

Readme

Cortex OS CLI

Command-line interface for Cortex OS - Lock decisions. Learn faster.

Installation

npm install -g @cortexos/cli

Quick Start

1. Login

Get your API key from Cortex OS Settings and authenticate:

cortex login --api-key YOUR_API_KEY

Or set it as an environment variable:

export CORTEX_API_KEY=your_api_key_here
cortex login

2. Create a Bet

Lock a decision before you act:

cortex bet "Hire Sarah as lead designer"

With more details:

cortex bet "Hire Sarah as lead designer" \
  --reasoning "Portfolio shows strong UX thinking" \
  --success "Ships redesign in 3 months" \
  --review-date 2026-04-15

3. List Your Bets

cortex list

Show more:

cortex list --limit 20

4. Check Today's Reviews

cortex today

Commands

cortex login

Authenticate with Cortex OS.

Options:

  • -k, --api-key <key> - Your API key from settings

Example:

cortex login --api-key cortex_abc123...

cortex logout

Remove stored credentials.

cortex logout

cortex bet <choice>

Create a new solo bet.

Arguments:

  • <choice> - The decision you're making

Options:

  • -r, --reasoning <text> - Why you're making this choice
  • -s, --success <signal> - How you'll know it worked
  • -d, --review-date <date> - When to review (YYYY-MM-DD)

Example:

cortex bet "Switch to TypeScript" \
  --reasoning "Better type safety and IDE support" \
  --success "Zero runtime type errors in production" \
  --review-date 2026-06-01

cortex list

List your recent bets.

Options:

  • -l, --limit <number> - Number of bets to show (default: 10)

Example:

cortex list --limit 5

cortex today

Show decisions due for review today.

cortex today

cortex status

Show current authentication status.

cortex status

Configuration

The CLI stores configuration in ~/.cortexos/config.json:

{
  "apiKey": "cortex_...",
  "workspace": "Your Workspace"
}

Environment Variables

  • CORTEX_API_KEY - Your API key (alternative to --api-key flag)
  • CORTEX_API_URL - API base URL (default: https://cortexos.com)

Use Cases

Daily Review Workflow

# Morning: Check what needs review
cortex today

# Throughout the day: Lock decisions
cortex bet "Approve design mockups for v2"
cortex bet "Merge PR #234"

# Evening: Review your bets
cortex list

Quick Decision Logging

# Lock a decision with context
cortex bet "Use PostgreSQL for analytics" \
  --reasoning "Better JSON support than MySQL" \
  --success "Query performance under 100ms"

Integration with Scripts

#!/bin/bash
# Lock deployment decisions
cortex bet "Deploy v2.1.0 to production" \
  --reasoning "All tests passing, QA approved" \
  --review-date $(date -d "+7 days" +%Y-%m-%d)

Support

  • Documentation: https://cortexos.com/docs
  • Issues: https://github.com/cortexos/cortexos-cli/issues
  • Email: [email protected]

License

MIT © Cortex OS