concurrently

Run multiple terminal commands in parallel, with color-coded output and cross-platform support.

Tool
npm
v10.0.5
7,857 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
78 /100 Good
Development Activity 72
Maintenance 80
Community 60
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
88 /100 Excellent
Architecture 88
Code Quality 90
Innovation 88
Learning Curve 88

concurrently is a cross-platform CLI and Node.js library that runs multiple shell commands at the same time from a single terminal session, instead of juggling command1 & command2 shell syntax or several open terminal tabs. It’s most commonly dropped into an npm scripts block to run a dev server, a CSS watcher, and a test runner together, prefixing each command’s output with a distinct name and color so interleaved logs stay readable.

Beyond simple parallel execution, it adds process-lifecycle controls that raw shell backgrounding doesn’t offer: killing all sibling processes when one exits (or fails), restart-on-crash with configurable retry counts, wildcard expansion for npm:-prefixed script names, and a choice of success conditions (first, last, or all commands must exit cleanly) so CI pipelines can fail correctly. It works identically on Windows, macOS, and Linux.

What You Get

  • A concurrently (aliased conc) CLI that accepts any number of quoted shell commands and runs them in parallel from one terminal
  • Automatic, color-coded prefixing of each command’s stdout/stderr by name, index, PID, or a custom template
  • --kill-others / --kill-others-on-fail to tear down all sibling processes when one exits or fails, avoiding orphaned watchers
  • npm:script-name and wildcard (npm:watch-*) expansion to run several package.json scripts without repeating boilerplate
  • Configurable --success conditions (first, last, all, or by command name/index) so the process exit code reflects the outcome CI or scripts care about
  • A programmatic concurrently(commands, options) JS/TS API with the same feature set as the CLI, returning spawned Command objects and RxJS observables for output/state/close events
  • --restart-tries and --restart-after for automatically respawning a command that crashes

Common Use Cases

  • Running a frontend dev server, a backend API server, and a CSS/asset watcher together with one npm run dev command
  • Wiring npm:build-* wildcard scripts so a monorepo’s per-package build scripts all run in parallel from the root
  • CI pipelines that need to start a server and then run tests against it, killing the server once the test command exits
  • Local development setups that watch and rebuild multiple targets (JS, CSS, docs) simultaneously with clearly separated, colorized logs

Under The Hood

Architecture - The core concurrently() function in lib/concurrently.ts runs each command string through a small pipeline of CommandParser implementations (ExpandShortcut, ExpandWildcard, and, when additionalArguments is set, ExpandArguments) before wrapping each resolved command in a Command instance (lib/command.ts) paired with spawn options from getSpawnOpts (lib/spawn.ts). Cross-cutting behaviors — killing others on exit, restarting crashed processes, handling stdin, logging timings, tearing down on signals — are implemented as independent FlowControllers under lib/flow-control/ and threaded through the command list via a single reduce call, so each concern (kill-others, restart-process, log-output, teardown, etc.) stays in its own file and is unit-testable in isolation. A CompletionListener subscribes to each command’s close observable and resolves/rejects the overall result promise according to the configured successCondition, while a semaphore-like maybeRunMore loop enforces maxProcesses by only starting a new command when a running one closes.

Tech Stack - Written in strict TypeScript ("strict": true in tsconfig.json) targeting Node 22+, compiled with tsc --build. Process orchestration relies on RxJS 7 observables (stdout, stderr, close, stateChange per command) rather than plain EventEmitters, chalk for prefix coloring, yargs for CLI argument parsing (bin/index.ts), tree-kill to reliably terminate process trees across platforms, and shell-quote/supports-color for command parsing and terminal capability detection. The repo is a pnpm workspace with Husky + lint-staged wiring pre-commit formatting and linting.

Code Quality - The lib/ and bin/ directories carry 29 .spec.ts files sitting alongside their implementation files (e.g. command.spec.ts, spawn.spec.ts, each flow-control/*.spec.ts), run through Vitest with a separate smoke test project (tests/smoke-tests.spec.ts) that exercises the built CLI end-to-end, plus dedicated ESM/CJS import tests (tests/esm, tests/cjs-require). ESLint runs @eslint/js + typescript-eslint recommended configs plus eslint-plugin-simple-import-sort, eslint-plugin-prettier, and a Vitest-specific plugin, enforced via a Husky pre-commit hook, and Coveralls tracks coverage in CI. Naming is consistent and interfaces (CommandInfo, ConcurrentlyOptions, CloseEvent) are documented with JSDoc directly in the type definitions.

API Design - The public surface is intentionally small: a single concurrently(commands, options) function returning { result, commands }, mirrored almost 1:1 by CLI flags (--kill-others, --restart-tries, --success, etc.) documented inline via yargs .describe() calls and expanded further in docs/cli. Commands can be passed as plain strings or { command, name, prefixColor, env, cwd, ipc } objects, keeping the common case (a list of strings) friction-free while still allowing per-command overrides. Getting started requires no configuration beyond installing and calling the CLI with quoted commands, and the README documents every option’s default and interaction with others (e.g. how raw overrides prefixing).

Used by 104 apps in this directory

TypeScript
100%
Other

Activepieces

AI Assistants · Automation · Mcp

24,756

Open-source AI automation platform that converts 280+ workflow integrations into MCP servers for LLMs, with no-code builders and TypeScript extensibility.

View details
92
Repo Health
85
Technical
64
Dependency
Built with
TypeScript 100%
Updated 4 days ago
Python
85%
MIT

ai-toolkit

AI Design Tools · AI Development

12,143

An all-in-one open-source training suite for finetuning diffusion models—FLUX, SDXL, Wan video, and audio—on consumer GPU hardware via CLI or web UI.

View details
79
Repo Health
66
Technical
72
Dependency
Built with
Python 85%
TypeScript 14%
Updated 5 days ago
TypeScript
72%
AGPL 3.0

APITable

Databases · Low Code Platforms

15,623

API-first collaborative spreadsheet-database platform that auto-generates REST APIs and lets teams build internal tools, CRMs, and dashboards without code.

View details
71
Repo Health
77
Technical
60
Dependency
Built with
TypeScript 72%
Java 22%
Updated 3 weeks ago
JavaScript
95%
MIT

AnythingLLM

AI Assistants · Automation · Developer Tools

66,533

The all-in-one AI platform for private document chat, no-code agents, and local LLMs with zero setup friction.

View details
90
Repo Health
78
Technical
64
Dependency
Built with
JavaScript 95%
Updated 6 days ago
Python
66%
Other

AutoGPT

AI Assistants · Automation · Productivity

187,596

Build, deploy, and run autonomous AI agents that automate complex multi-step workflows using a visual block-based graph editor.

View details
93
Repo Health
78
Technical
66
Dependency
Built with
Python 66%
TypeScript 33%
Updated 4 days ago
TypeScript
92%
GPL 3.0

Blinko

Knowledge Management · Note Taking

11,049

A self-hosted, AI-powered card note-taking tool that lets you capture fleeting thoughts instantly and retrieve them with natural language search.

View details
75
Repo Health
69
Technical
63
Dependency
Built with
TypeScript 92%
Updated 1 months ago
TypeScript
80%
GPL 3.0

Bramble

Authentication · Password Manager · Security

399

Local-first, end-to-end encrypted password manager that syncs your vault directly between your own devices over a private peer-to-peer mesh — no server, no account, no cloud in the middle.

View details
75
Repo Health
84
Technical
68
Dependency
Built with
TypeScript 80%
Updated 5 days ago
TypeScript
70%
Other

Budibase

Low Code Platforms · No Code Platforms

28,324

Build AI agents, automations, and internal apps on a single open-source platform with full self-hosting control.

View details
91
Repo Health
81
Technical
63
Dependency
Built with
TypeScript 70%
Svelte 26%
Updated 1 weeks ago
Java
72%
Other

ByteChef

AI Agents · Automation

1,003

Unified open-source platform for AI agent orchestration and workflow automation with 180+ connectors, MCP support, and durable execution.

View details
85
Repo Health
82
Technical
67
Dependency
Built with
Java 72%
TypeScript 28%
Updated 5 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers