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

@open_harness/open-harness

v0.3.5

Published

All open-harness linting tools in one package — linelens, dupelens, secretlens, testlens

Readme

@open_harness/open-harness

The full open-harness suite in a single package. Installs all five code-quality tools at once: linelens, dupelens, secretlens, testlens, scopelens.

Part of the open-harness monorepo. Español abajo.

Other ecosystems: the individual tools are also published on PyPI as open-harness-<tool> (e.g. open-harness-linelens, open-harness-scopelens) for Python projects. The all-in-one meta-package is on npm as @open_harness/open-harness and on PyPI as open-harness-suite (pip install open-harness-suite). Packagist (PHP/Composer) is planned. The underlying binaries and config formats are identical across registries.

Install

npm install --save-dev @open_harness/open-harness

npm resolves the dependency tree and pulls the right native binary for your platform for each tool (Linux x64, macOS arm64, macOS x64, Windows x64).

What you get

| Tool | Purpose | |---|---| | linelens | File length linter — flags files over a configurable line limit. | | dupelens | Code duplication detector (Rabin-Karp, language-agnostic). | | secretlens | Secret and credential detector (AWS keys, GitHub tokens, JWT, PEM, …). | | testlens | Test coverage detector — finds source files without tests, 10 languages. | | scopelens | Per-PR file- and line-budget gate — counts the branch-vs-base diff locally, at pre-commit. |

After install, all five binaries are available via npx:

npx linelens   check
npx dupelens   check
npx secretlens check
npx testlens   check --lang typescript
npx scopelens  check --max-files 15

Any tool prints a configuration guide with --tutorial (e.g. npx secretlens --tutorial), and npx open-harness init creates every tool's config file at your project root in one shot.

Configure everything from package.json

Each tool reads its config from a dedicated key inside package.json:

{
  "name": "my-project",
  "linelens":   { "default": { "maxLines": 100 } },
  "dupelens":   { "default": { "minTokens": 50, "minLines": 5 } },
  "secretlens": { "allowlist": ["example", "placeholder"] },
  "testlens":   { "language": "typescript", "exclude": ["node_modules", "dist"] },
  "scopelens":  { "maxFiles": 15 }
}

You can mix-and-match: keep dedicated files (linelens.json, etc.) for tools you want to override and use package.json keys for the rest. Precedence per tool: --config <path> > dedicated *.json > package.json key > built-in defaults. See docs/CONFIGURATION.md.

Run them as a single CI / git-hook gate

# GitHub Actions
- run: npx linelens   check --fail
- run: npx dupelens   check --fail
- run: npx secretlens check --fail
- run: npx testlens   check --fail --lang typescript
- run: npx scopelens  check --fail
# lefthook.yml
pre-commit:
  commands:
    linelens:   { run: npx linelens   check --fail --no-color }
    dupelens:   { run: npx dupelens   check --fail --no-color }
    secretlens: { run: npx secretlens check --fail --no-color }
    testlens:   { run: npx testlens   check --fail }
    scopelens:  { run: npx scopelens  check --fail --no-color }

Note: scopelens needs git on PATH and a full (non-shallow) clone; it exits 2 (not 0) when it can't measure, so a broken checkout fails loudly instead of passing silently.

Tool-level docs

Each tool ships on npm and PyPI with identical behavior. Pick the registry that matches your project's stack:

| Tool | npm (Node/TS) | PyPI (Python) | |---|---|---| | linelens | @open_harness/linelens | open-harness-linelens | | dupelens | @open_harness/dupelens | open-harness-dupelens | | secretlens | @open_harness/secretlens | open-harness-secretlens | | testlens | @open_harness/testlens | open-harness-testlens | | scopelens | @open_harness/scopelens | open-harness-scopelens |


Español

La suite completa de open-harness en un solo paquete. Instala los cinco tools de calidad de código de una sola línea: linelens, dupelens, secretlens, testlens, scopelens.

Parte del monorepo open-harness.

Otros ecosistemas: los tools individuales están también en PyPI como open-harness-<tool>. El meta-paquete todo-en-uno está en npm como @open_harness/open-harness y en PyPI como open-harness-suite (pip install open-harness-suite). Packagist (PHP/Composer) está planeado. Los binarios y formatos de config son idénticos entre registries.

Instalación

npm install --save-dev @open_harness/open-harness

npm resuelve el árbol de dependencias y descarga el binario nativo correcto para tu plataforma por cada tool (Linux x64, macOS arm64, macOS x64, Windows x64).

Qué incluye

| Tool | Propósito | |---|---| | linelens | Linter de longitud — marca archivos que superan un límite de líneas. | | dupelens | Detector de duplicación (Rabin-Karp, agnóstico al lenguaje). | | secretlens | Detector de secretos y credenciales (AWS, GitHub tokens, JWT, PEM, …). | | testlens | Detector de cobertura — encuentra archivos sin test, 10 lenguajes. | | scopelens | Presupuesto de archivos por PR — cuenta el diff rama-vs-base local en pre-commit. |

Después del install, los cinco binarios están disponibles via npx. Cada tool imprime su guía de configuración con --tutorial, y npx open-harness init crea los cinco archivos de config en la raíz de una.

Configurá todo desde package.json

Cada tool lee su config desde una key dedicada dentro de package.json (ver ejemplo arriba). Podés combinar: archivos dedicados (linelens.json, etc.) para los tools que quieras y keys en package.json para el resto. Precedencia por tool: --config <path> > archivo dedicado *.json > key en package.json > defaults del binario. Guía completa: docs/CONFIGURATION.md.

Integraciones

Sirve con Husky, lefthook o GitHub Actions con los snippets de la sección en inglés. scopelens necesita git en el PATH y un clon completo (no shallow); sale con código 2 cuando no puede medir, en vez de pasar en verde.

Docs por tool

Cada tool tiene su propio README bilingüe con flags completos, formato de configuración y ejemplos. Los links de arriba apuntan a cada página de npm y PyPI.

License

MIT — see the main repository.