# @code-pushup/core

> Core business logic for the used by the Code PushUp CLI

Latest version **0.126.4** (published 2026-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @code-pushup/core
pnpm add @code-pushup/core
yarn add @code-pushup/core
bun add @code-pushup/core
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.126.4 |
| Published | 2026-09-11 |
| First published | 2023-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 75 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 346 |
| Maintainers | vmasek, matejchalk, bio_photon |
| Keywords | CLI, Code PushUp, automation, developer tools, code quality, conformance, build tools, KPI tracking, tech debt, automated feedback, regression guard, CI integration, code management, actionable feedback, trend analysis, static analysis, linting, audit, performance, score monitoring |

## Links

- npm: https://www.npmjs.com/package/@code-pushup/core
- Repository: https://github.com/code-pushup/cli
- Homepage: https://github.com/code-pushup/cli/tree/main/packages/core#readme
- Issues: https://github.com/code-pushup/cli/issues?q=is%3Aissue%20state%3Aopen%20type%3ABug%20label%3A"🧩%20core"
- npm.io page: https://npm.io/package/@code-pushup/core

## Dependencies (3)

- [ansis](https://npm.io/package/ansis.md) ^3.3.0
- [@code-pushup/utils](https://npm.io/package/@code-pushup/utils.md) 0.126.4
- [@code-pushup/models](https://npm.io/package/@code-pushup/models.md) 0.126.4

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.126.4 (latest) — 2026-09-11
- 0.126.3 — 2026-05-19
- 0.126.2 — 2026-03-31
- 0.126.1 — 2026-03-31
- 0.126.0 — 2026-03-30
- 0.125.0 — 2026-03-27
- 0.124.0 — 2026-03-26
- 0.123.0 — 2026-03-24
- 0.122.1 — 2026-03-24
- 0.122.0 — 2026-03-23
- 0.121.0 — 2026-03-20
- 0.120.1 — 2026-03-18
- 0.120.0 — 2026-03-17
- 0.119.1 — 2026-03-17
- 0.119.0 — 2026-03-16
- … 240 more at https://npm.io/package/@code-pushup/core/versions

## README

# @code-pushup/core

[![npm](https://img.shields.io/npm/v/%40code-pushup%2Fcore.svg)](https://www.npmjs.com/package/@code-pushup/core)
[![downloads](https://img.shields.io/npm/dm/%40code-pushup%2Fcore)](https://npmtrends.com/@code-pushup/core)
[![dependencies](https://img.shields.io/librariesio/release/npm/%40code-pushup/core)](https://www.npmjs.com/package/@code-pushup/core?activeTab=dependencies)

🔎🔬 **Quality metrics for your software project.** 📉🔍

1. ⚙️ **Configure what you want to track using your favourite tools.**
2. 🤖 **Integrate it in your CI.**
3. 🌈 **Visualize reports in a beautiful dashboard.**

---

This package contains the **core business logic** for the Code PushUp CLI.

For most use cases, you'll probably want to use the [@code-pushup/cli](../cli/README.md) package instead.
The core package is useful if you prefer programmatic usage (avoids going through the command line).

## Setup

```sh
npm install --save-dev @code-pushup/core
```

```sh
yarn add --dev @code-pushup/core
```

```sh
pnpm add --save-dev @code-pushup/core
```

## Usage

```ts
import { collect } from '@code-pushup/core';

const report = await collect({
  // ...
});
```

---
_Source: https://npm.io/package/@code-pushup/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
