# repo-check

> Maintain order in repositories chaos

Latest version **2.0.0** (published 2026-11-15) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install repo-check
pnpm add repo-check
yarn add repo-check
bun add repo-check
```

Provides the command `repo-check`.

## Health

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

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

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-11-15 |
| First published | 2019-06-23 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 9 |
| Unpacked size | 2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | Romain Racamier-Lafon |
| Maintainers | shuunen |
| Keywords | cli, repository, check, checker |

## Links

- npm: https://www.npmjs.com/package/repo-check
- Repository: https://github.com/Shuunen/repo-checker
- Issues: https://github.com/Shuunen/repo-checker/issues
- npm.io page: https://npm.io/package/repo-check

## Dependencies (9)

- [cac](https://npm.io/package/cac.md) ~7.1.0
- [hono](https://npm.io/package/hono.md) ~4.13.16
- [magicast](https://npm.io/package/magicast.md) ~0.5.5
- [shuutils](https://npm.io/package/shuutils.md) ~12.0.0
- [es-toolkit](https://npm.io/package/es-toolkit.md) ~1.53.1
- [jsonc-parser](https://npm.io/package/jsonc-parser.md) ~3.3.1
- [lucide-react](https://npm.io/package/lucide-react.md) ^1.68.0
- [react-markdown](https://npm.io/package/react-markdown.md) ^10.1.0
- [@hono/node-server](https://npm.io/package/@hono/node-server.md) ~2.1.6

## 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

- 2.0.0 (latest) — 2026-11-15
- 2.0.0-rc.1 (rc) — 2026-11-03
- 2.0.0-rc.0 — 2026-11-02
- 1.46.0 — 2025-06-20
- 1.45.0 — 2025-06-07
- 1.44.0 — 2025-05-25
- 1.43.0 — 2025-05-03
- 1.42.0 — 2025-02-24
- 1.41.0 — 2025-02-23
- 1.40.0 — 2024-12-07
- 1.39.0 — 2024-10-28
- 1.38.0 — 2024-10-26
- 1.37.1 — 2024-07-08
- 1.37.0 — 2024-07-07
- 1.36.0 — 2024-06-20
- … 62 more at https://npm.io/package/repo-check/versions

## README

# Repo Checker

[![Project license](https://img.shields.io/github/license/Shuunen/repo-checker.svg?color=informational)](https://github.com/Shuunen/repo-checker/blob/master/LICENSE)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/Shuunen/repo-checker?style=flat)](https://codeclimate.com/github/Shuunen/repo-checker)
[![npm version](https://img.shields.io/npm/v/repo-check.svg?color=informational)](https://www.npmjs.com/package/repo-check)
[![npm monthly downloads](https://img.shields.io/npm/dm/repo-check.svg?color=informational)](https://www.npmjs.com/package/repo-check)
[![Visitors](https://hits.sh/github.com/Shuunen/repo-checker.svg?label=visitors&color=informational)](https://hits.sh/github.com/Shuunen/repo-checker/)

[![Package Quality](https://npm.packagequality.com/shield/repo-check.svg)](https://packagequality.com/#?package=repo-check)
[![Publish size](https://img.shields.io/bundlephobia/min/repo-check?label=publish%20size)](https://bundlephobia.com/package/repo-check)
[![Install size](https://badgen.net/packagephobia/install/repo-check)](https://packagephobia.com/result?p=repo-check)

![logo](docs/banner.svg)

- [Repo Checker](#repo-checker)
  - [Cli mode](#cli-mode)
  - [UI mode](#ui-mode)
  - [Usage](#usage)
  - [Options](#options)
  - [Configuration](#configuration)
  - [Thanks](#thanks)

## Cli mode

Run `repo-check` :

![demo](docs/demo-cli.svg)

## UI mode

Run `repo-check ui` :

![demo-ui](docs/demo-ui.svg)

## Usage

Run it in a folder of projects to check them all against your GitHub account, or inside one project to check only that one. It needs `git` and an authenticated [GitHub CLI](https://cli.github.com) (`gh auth login`), and the report changes nothing unless you add `--fix`, which applies the file fixes (a file you already changed gets the fix merged into your changes, and nothing is committed, `git diff` shows it). `repo-check ui` can fix things too, always after a confirmation that says what will happen.

```bash
npx repo-check
```

From a clone of this repository: `pnpm install` then `pnpm start --target=~/Projects`. To look at the dashboard without your own repos, `pnpm run build` then `pnpm demo` starts it on a fake account (see [demo/README.md](demo/README.md)).

`npx repo-check ui` (or `pnpm start:ui` from a clone) starts a local server on `127.0.0.1:4747` instead. Open the printed URL: the project list fills in as the scan streams, with filters, summary tiles and a Rescan button, and a click on a project opens its findings and git state, refreshed live while the page is open. Run inside one project, it opens straight on that project. Every action runs after a confirmation that says what will happen, and the server proves again, with a fresh fetch, that it is still safe:

- fix the files the checks complain about (a diff per file to confirm, a file you have already changed gets the fix merged into your changes and stays out of the commit), fix the git issues of a clone, check out the default branch
- clone a repo you do not have yet, open a project in VS Code, sync its description and homepage with GitHub, set the GitHub settings the checks want
- archive or unarchive a repo, save the unpushed work of an archived repo (unarchive, push, archive again), discard the unsaved work of an archived clone
- delete the local clone of an archived repo that holds nothing that is not on GitHub, the local branches of a clone, a fork that is provably pristine, or a whole project (its GitHub repo and its clone). The GitHub deletes need the `delete_repo` scope: `gh auth refresh -s delete_repo`
- ignore a check on a project for 24 hours, or update a project with Claude (`/update-project`)

The report groups the findings by severity (errors, warnings, info) and ends with a summary line. It exits with an error code when a finding is an error. Every check is listed in [docs/checks.md](docs/checks.md).

## Options

- `--target=path` folder to scan, the current one by default
- `--owner=name` GitHub account to compare with, the `gh` login by default
- `--fix` apply the file fixes, the same as in the ui: a file you already changed gets the fix merged into your changes, and nothing is committed
- `--nitpick` also run the nitpick checks (small details like `outdated-minor-dependency` and `lighthouse-budget`), the ui has a `Nitpick mode` toggle in its Actions menu
- `--no-fetch` skip `git fetch` and the automatic fast forward that follows it, faster but unpushed work is measured against stale remote refs
- `--verbose` also list every passed and skipped check, per project
- `--port=number` port of the `ui` server, 4747 by default
- `--no-open` do not open the browser (`ui` only)

## Configuration

A `.repo-checker.json` file in a project tells repo-check what it cannot detect, for example:

```json
{
  "license": "MIT",
  "maxSizeKo": 100,
  "webUrl": "https://my-website.com"
}
```

`webUrl` is the url of the **deployed website or web app**. It is not the `homepage` of the `package.json`: that one is the homepage of the **source code**, so it must be the url of the GitHub repo (the `package-homepage` check fills it that way). The homepage shown on the GitHub repo is the deployed website, and the "Sync infos" action of the UI keeps it in line with `webUrl`: it shows what the project and GitHub say side by side, lets you edit the description and the homepage, then writes the description in the `package.json` (and on GitHub) and the homepage as `webUrl` (and on GitHub). The `homepage` of the `package.json` is never changed by it.

`themeColor` is the color of the project, like `"#024eb8"`. Without it, repo-check reads it from the web manifest, then the `theme-color` meta tag of a page, then the VS Code title bar, and never invents one. It then checks that the manifest `theme_color`, the meta tag and the VS Code colors follow it, with a darker shade for the manifest `background_color` and the VS Code activity bar.

For autocompletion in your editor, point it to the schema shipped with the package:

```json
{
  "$schema": "./node_modules/repo-check/schema.json"
}
```

## Thanks

- [Boxy Svg](https://boxy-svg.com) : simple & effective svg editor
- [Bun](https://bun.sh) : super fast runtime for JavaScript and TypeScript
- [pnpm](https://pnpm.io) : fast, disk space efficient package manager
- [Github](https://github.com) : for all their great work year after year, pushing OSS forward
- [HeroUI](https://heroui.com) : beautiful and accessible React components
- [Hono](https://hono.dev) : small and fast web framework, the server of the dashboard
- [Knip](https://github.com/webpro/knip) : super tool to find & fix problems
- [Oxc](https://oxc.rs) : a lovely super-fast collection of JavaScript tools written in Rust
- [React](https://react.dev) : great library for web and native user interfaces
- [Repo-checker](https://github.com/Shuunen/repo-checker) : oxlint covers the /src code and this tool the rest ^^
- [Shields.io](https://shields.io) : for the nice badges on top of this readme
- [Shuutils](https://github.com/Shuunen/shuutils) : collection of pure JS utils
- [Svg Omg](https://jakearchibald.github.io/svgomg) : the great king of svg file size reduction
- [TailwindCss](https://tailwindcss.com) : awesome lib to produce maintainable style
- [Turborepo](https://turborepo.com) : runs the scripts in parallel and caches them
- [V8](https://github.com/demurgos/v8-coverage) : simple & effective cli for code coverage
- [Vite](https://github.com/vitejs/vite) : super fast frontend tooling
- [Vitest](https://github.com/vitest-dev/vitest) : super fast vite-native testing framework

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