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

@gitgov/cli

v2.1.0

Published

πŸš€ AI-first governance CLI for intelligent work. Install with `npm install -g @gitgov/cli` and start governing your projects with interactive dashboards, task management, and workflow automation.

Readme

@gitgov/cli: The Command Interface for GitGovernance

NPM Version License: Apache 2.0 TypeScript

@gitgov/cli is the canonical command-line interface for the GitGovernance ecosystem. Designed for collaboration between humans and AI agents directly from the terminal.

You don't need to memorize commands. Talk to your repository through the agent. Ask for project status, what to work on, or request new tasks in natural language. The agent translates your intent into precise commands.

You:    "What should I work on next?"
Agent:  gitgov status --alerts β†’ gitgov task list --status ready β†’ "Task X is ready, want me to activate it?"

You:    "Create a task for the login bug"
Agent:  gitgov task new "Fix login authentication bug" --priority high

You:    "How's the sprint going?"
Agent:  gitgov status --all --cycles --health β†’ "Sprint is 70% done, 3 tasks active, 1 blocked"

Install

npm install -g @gitgov/cli

Quick Start

cd my-project
git init
gitgov init --name "My Project"
gitgov indexer
gitgov status

Commands

Usage: gitgov [options] [command]

GitGovernance CLI - AI-first governance for intelligent work

Commands:
  init [options]         Initialize GitGovernance project
  task|t                 Create and manage TaskRecords
  cycle|c                Create and manage CycleRecords
  exec|x                Record proof-of-work via ExecutionRecords
  feedback|fb            Create structured, immutable FeedbackRecords
  status [options]       Show intelligent project status dashboard
  dashboard [options]    Launch interactive TUI dashboard
  indexer [options]      Control local cache system
  diagram|d [options]    Generate workflow diagrams
  lint [options] [path]  Validate GitGovernance records
  audit [options]        Audit source code (PII/secrets, GDPR)
  agent                  Manage and run GitGov agents
  actor                  Manage project actors (identity)
  sync                   State synchronization (push/pull/resolve/audit)
  hook                   Process Claude Code hook events (passive governance)
  context [options]      Query working context for agents and automation
  push [options]         Alias for "gitgov sync push"
  pull [options]         Alias for "gitgov sync pull"

Every command supports --json, --verbose, and --quiet flags. Run gitgov <command> --help for full details.

Note: The hook command is machine-only β€” invoked automatically by Claude Code hooks, not by users. It reads JSON from stdin and always exits 0.

Task Workflow

The core workflow for task management:

draft -> review -> ready -> active -> done -> archived

  Create:    gitgov task new "Fix login bug"
  Submit:    gitgov task submit <taskId>
  Approve:   gitgov task approve <taskId>
  Activate:  gitgov task activate <taskId>
  Complete:  gitgov task complete <taskId>

15 subcommands: new, list, show, submit, approve, activate, pause, resume, complete, cancel, reject, delete, assign, edit, promote

Execution Tracking

Record proof-of-work against tasks:

  Create:    gitgov exec new <taskId> --result "OAuth handler implemented"
  List:      gitgov exec list <taskId>
  Show:      gitgov exec show <executionId>

3 subcommands: new, list, show

Execution types: analysis, progress (default), blocker, completion, info, correction

Feedback

Create structured, immutable feedback linked to any entity:

  Create:    gitgov feedback --entity-type task --entity-id <id> --type approval --content "LGTM"

Feedback types: blocking, suggestion, question, approval, clarification, assignment

Cycle Management

Strategic planning with cycles:

  Create:    gitgov cycle new "Sprint Q1" -d "API focus"
  Activate:  gitgov cycle activate <cycleId>
  Add task:  gitgov cycle add-task <cycleId> --task <taskId>
  Complete:  gitgov cycle complete <cycleId>

10 subcommands: new, list, show, activate, complete, add-task, remove-task, move-task, edit, add-child

Project Monitoring

gitgov status                          # Personal dashboard
gitgov status --all --health --team    # Full project view
gitgov status --alerts --json          # For automation
gitgov dashboard                       # Interactive TUI (Ink/React)

Sync

gitgov sync push --message "Sprint 1"  # Publish to gitgov-state branch
gitgov sync pull                        # Pull remote changes
gitgov sync audit                       # Verify integrity
gitgov sync resolve --reason "..."      # Resolve conflicts

Architecture

graph TD
    subgraph "@gitgov/cli"
        Commands["Commands (16)"]
        Base["BaseCommand / SimpleCommand"]
        DI["DependencyInjectionService"]
        TUI["Ink/React TUI"]

        Commands --> Base
        Commands --> DI
        TUI --> DI
    end

    subgraph "@gitgov/core"
        Adapters["Adapters (10)"]
        Stores["Stores"]
    end

    DI --> Adapters
    DI --> Stores

    style Commands fill:#e8f5e8,stroke:#4caf50,stroke-width:2px
    style Adapters fill:#e3f2fd,stroke:#1976d2

The CLI is a thin UI layer. All business logic lives in @gitgov/core. Commands delegate to adapters via a dependency injection service.

| Technology | Role | | ------------ | ---------------------------------------------- | | Commander.js | Command framework (flags, subcommands, help) | | Ink + React | Interactive TUI (gitgov dashboard) | | @gitgov/core | Business logic (adapters, stores, validators) | | esbuild | Bundle to single gitgov.mjs for distribution |

Development

# Clone and setup
git clone https://github.com/gitgovernance/monorepo.git
cd monorepo && pnpm install

# Development
cd packages/cli
pnpm dev status          # Run commands directly via tsx
pnpm dev task list       # Hot-reload development
pnpm dev dashboard       # TUI development

# Verify (build + test + pack)
pnpm verify

# Individual steps
pnpm tsc --noEmit        # Type check
pnpm build               # esbuild bundle
pnpm test                # Jest tests

Demo / E2E Testing

cd packages/cli
pnpm build && npm link

# Use from any directory
cd /tmp/demo && git init
gitgov init --name "Demo"
gitgov status

# Cleanup
npm unlink

License

This package is licensed under the Apache License 2.0.

Links

  • GitHub: https://github.com/gitgovernance/monorepo/tree/main/packages/cli
  • NPM: https://www.npmjs.com/package/@gitgov/cli

Built with ❀️ by the GitGovernance team.