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

conqr

v2.6.0

Published

Dead-simple TUI process runner

Readme

conqr

Dead-simple TUI process runner, written in Go.

Usage

Command Line Arguments

conqr 'npm run dev' 'npm run build:emails' 'npm run worker'

Customize process names with the 'name'='command' syntax:

conqr 'Dev Server'='npm run dev' 'Build Process'='npm run build' 'Worker'='npm run worker'

Configuration File

Create a conqr.json or .conqr.json file in your project directory.

Simple commands:

{
  "commands": {
    "Dev Server": "npm run dev",
    "Build Process": "npm run build",
    "Worker": "npm run worker"
  }
}

Extended commands with restart options:

{
  "commands": {
    "Dev Server": {
      "command": "npm run dev",
      "restart": {
        "policy": "on-error",
        "delay": 2000
      }
    },
    "Worker": {
      "command": "npm run worker",
      "restart": {
        "policy": "on-exit",
        "delay": 5000
      }
    }
  }
}

Then run:

conqr

CLI arguments take precedence over config files.

Restart Configuration

Restart policies:

  • "never": no automatic restart
  • "on-error": restart only when a process exits with a non-zero code
  • "on-exit": restart whenever a process exits

Global restart settings apply to all config-file commands:

{
  "restart": {
    "policy": "on-error",
    "delay": 2000
  },
  "commands": {
    "Dev Server": "npm run dev",
    "Worker": "npm run worker"
  }
}

Per-process restart settings override global settings:

{
  "restart": {
    "policy": "on-error",
    "delay": 2000
  },
  "commands": {
    "Dev Server": "npm run dev",
    "Worker": {
      "command": "npm run worker",
      "restart": {
        "policy": "on-exit",
        "delay": 5000
      }
    }
  }
}

Process Groups

Group commands in the sidebar and view merged logs per group. Use the object form for grouped commands:

{
  "defaultGroup": "services",
  "commands": {
    "api": { "command": "npm run api", "group": "services" },
    "ssr": { "command": "npm run ssr", "group": "services" },
    "worker": { "command": "npm run worker", "group": "services" },
    "cf": { "command": "cloudflared tunnel run", "group": "tunnels" },
    "emails": { "command": "npm run build:emails", "group": "build" }
  }
}
  • group: optional label used for sidebar sections and merged log views
  • defaultGroup: optional group selected on startup (falls back to "All processes" if missing)
  • Simple string commands cannot carry a group; use the object form instead
  • Select a group row to see merged logs from all processes in that group
  • Select an indented process row to see logs for one process
  • Stop/restart (s/r) work on individual process rows only

Startup Dependencies

Watch-mode services start at the same time by default. In a monorepo this makes a rebuild waterfall: each package compiles against an incomplete build of the package below it, and then compiles again when that package writes its output.

Use dependsOn and ready to start each service only after its dependencies finish the first build:

{
  "ready": "Found 0 errors\\. Watching for file changes",
  "busy": "File change detected",
  "commands": {
    "core": { "command": "tsc -w -p packages/core" },
    "db": { "command": "tsc -w -p packages/db", "dependsOn": ["core"] },
    "emails": { "command": "npm run build:emails", "ready": "" },
    "api": { "command": "tsc -w -p apps/api", "dependsOn": ["core", "db"] },
    "web": {
      "command": "vite dev",
      "dependsOn": ["core", "emails"],
      "ready": "ready in \\d+ ms"
    }
  }
}
  • dependsOn: names of commands or groups that must become ready first
  • ready: regular expression that marks the command as ready
  • busy: regular expression that marks the command as busy again
  • readyTimeout: milliseconds to wait for each dependency (default 120000)

Every command that has no unmet dependency starts at once. Each other command starts as soon as its dependencies report ready.

A dependsOn entry that names a group waits for every command in that group. Use a group to keep the config short when many packages build first:

{
  "ready": "Found 0 errors\\. Watching for file changes",
  "commands": {
    "types": { "command": "tsc -w -p packages/types", "group": "core" },
    "db": { "command": "tsc -w -p packages/db", "group": "core" },
    "utils": { "command": "tsc -w -p packages/utils", "group": "core" },
    "api": { "command": "tsc -w -p apps/api", "dependsOn": ["core"] }
  }
}

A name must not be both a command name and a group name. conqr rejects such a config, because the dependency is ambiguous.

A command becomes ready in one of three ways:

  1. An output line matches the ready pattern.
  2. The command exits with code 0. Use this for a one-shot build step.
  3. The readyTimeout expires. conqr then writes a warning and starts the dependents.

A non-zero exit does not make a command ready. The dependents wait for the timeout.

Rules for the patterns:

  • Global ready and busy apply to all commands. A per-command value overrides the global value.
  • An empty string clears an inherited global pattern.
  • conqr removes the ANSI colour codes from a line before it matches the pattern.
  • conqr tests busy before ready.
  • A long-running dependency needs a ready pattern. Without one it gates the dependents until the timeout.

Sidebar labels:

| Label | Meaning | |---|---| | WAIT | The command waits for a dependency | | BUILD | The command runs and builds now | | UP | The command runs and is ready | | ERROR | conqr found an error pattern in the recent output | | DOWN | The command is not running | | STOP | You stopped the command with s |

conqr writes the build state into the log. When an output line matches busy, conqr writes › Build started: and the line that matched. When the command becomes ready, conqr writes › Ready in and the time in seconds.

conqr removes the startup waterfall. conqr cannot remove the rebuild cascade after startup, because each watch process rebuilds on its own. To remove that cascade, replace the separate watch processes with one incremental build, for example tsc -b --watch over TypeScript project references. Select "All processes" to read the rebuild sequence in time order and find the process that starts it.

JSON Schema

For IDE autocomplete and validation, add a $schema reference:

{
  "$schema": "https://raw.githubusercontent.com/bohdan-shulha/conqr/main/conqr.schema.json",
  "commands": {
    "Dev Server": "npm run dev",
    "Build": "npm run build"
  }
}

Demo

Try it with the included demo scripts:

go run . 'node demo/logger1.js' 'node demo/logger2.js' 'node demo/logger3.js'

Features

  • Run multiple commands concurrently
  • Dependency-ordered startup with readiness detection
  • Live build state for watch-mode processes
  • Two-pane terminal interface with process statuses and logs
  • Process groups with merged log views per group
  • Unified "All processes" log view
  • ANSI color support in logs
  • Automatic error detection from common error patterns and red ANSI output
  • Auto-scroll to bottom while new logs arrive
  • Mouse wheel and keyboard scrolling
  • Raw log mode with l
  • Manual process stop with s
  • Manual process restart with r
  • Automatic process restart with configurable policies
  • Graceful process-group shutdown on quit

Keyboard Controls

  • Arrow Left/Right: switch focus between sidebar and logs
  • Arrow Up/Down: navigate commands or scroll logs
  • PageUp/PageDown: scroll logs 10 lines
  • Home/End: jump to top or bottom
  • s: stop selected process
  • r: restart selected process
  • l: toggle raw log mode
  • q or Ctrl+C: quit

Requirements

  • For npm installs: Node.js 18 or newer
  • For source builds: Go 1.25 or newer
  • Prebuilt npm binaries are published for macOS, Linux, and Windows on amd64 and arm64

Installation

Install from npm:

npm install -g conqr

The npm package preserves the existing conqr command and launches the bundled Go binary for your platform.

Install from source:

go install github.com/bohdan-shulha/conqr@latest

Or build locally:

make build
./bin/conqr 'command1' 'command2' 'command3'

Development

make test
go run . 'command1' 'command2' 'command3'