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

@precisa-saude/cli

v1.10.0

Published

Bootstrap and sync Precisa Saúde repositories — the `precisa` CLI.

Readme

@precisa-saude/cli

The precisa CLI — scaffold new repos, sync existing ones, audit drift against the shared template set.

Install

Run without installing:

pnpm dlx @precisa-saude/cli <command>

Or install globally:

pnpm add -g @precisa-saude/cli
precisa <command>

Commands

precisa new <repo-name>

Scaffold a new repository from the shared templates.

precisa new my-repo --profile oss-library
precisa new my-site --profile oss-site
precisa new internal-tool --profile private-app

Options:

  • --profile <profile> — preset. One of:
    • oss-library — public repo that publishes npm packages (default)
    • oss-site — public repo with a website, no npm publish
    • private-app — internal repo with a website + packages, no npm publish
  • --dry-run — print the planned file list without writing.

Interactive prompts ask for the GitHub owner, contact emails, and commit scopes. After rendering, the CLI runs git init and pnpm install in the new directory.

precisa sync

Re-render templates against the current repo's .precisa.json manifest.

precisa sync            # apply
precisa sync --dry-run  # preview (shows unified diffs)

Per-file merge strategies (declared in templates/templates.manifest.yml):

  • overwrite — replace the target; source of truth is the template.
  • merge_json — three-way-ish JSON merge: repo-local keys win on conflicts; template adds missing keys.
  • preserve — never overwrite; sync prints the diff as a suggestion.
  • skip_if_exists — create only if the target doesn't exist.

Output per file:

| Icon | Meaning | | ------------- | ------------------------------------------------------------------------- | | + create | Target didn't exist; rendered from template | | ~ update | Target existed; overwritten (dry-run shows unified diff) | | ~ merge | JSON merge applied | | i preserve | Target differs from template; left in place (dry-run shows would-be diff) | | = unchanged | Target already matches template | | s skip | Target exists; skip_if_exists prevented change | | ! error | JSON parse error or unknown merge strategy |

precisa doctor

Audit the repo without writing anything.

precisa doctor

Reports per template:

  • ok — present and matches template
  • ! warning — present but differs (run sync to update)
  • error — required template is missing
  • i info — preserve-strategy template differs (suggestion only, not drift)

Exits non-zero on any error-severity drift.

.precisa.json manifest

Every consumer repo declares its profile:

{
  "schemaVersion": 1,
  "name": "my-repo",
  "owner": "Precisa-Saude",
  "visibility": "oss",
  "hasSite": true,
  "hasPackages": true,
  "publishesToNpm": true,
  "commitScopes": ["core", "calculators", "ocr-utils", "rnds", "docs", "ci", "deps"],
  "contactEmails": {
    "security": "[email protected]",
    "conduct": "[email protected]"
  },
  "nodeVersion": "22",
  "pnpmVersion": "9.15.9"
}

The manifest is the single source of truth for which templates apply (required_when gates match visibility / hasSite / hasPackages / publishesToNpm) and which values get substituted into {{TOKEN}} placeholders.

Template tokens

| Token | Source | | ------------------------------------------------------------ | ------------------------------------------ | | {{REPO_NAME}} | manifest name | | {{OWNER_ORG}} | manifest owner | | {{REPO_SLUG}} | ${owner}/${name} | | {{VISIBILITY}} | manifest visibility | | {{NODE_VERSION}} | manifest nodeVersion (default: 22) | | {{PNPM_VERSION}} | manifest pnpmVersion (default: 9.15.9) | | {{SECURITY_EMAIL}} | manifest contactEmails.security | | {{CONDUCT_EMAIL}} | manifest contactEmails.conduct | | {{COMMIT_SCOPES}} | manifest commitScopes (comma-joined) | | {{HAS_SITE}} / {{HAS_PACKAGES}} / {{PUBLISHES_TO_NPM}} | boolean manifest fields |

Unknown tokens are left untouched so missing keys are visible in output.

License

Apache-2.0