mrkeyoor.comAsk

npm package

opencollective-postinstall review

Keep opencollective-postinstall if you deliberately want this funding reminder and accept its suppression settings.

npmWeb Backendupdated 25 Nov 2026

Your package can install successfully without anyone seeing its donation message. opencollective-postinstall 2.0.3 prints an Open Collective funding invitation when its command runs and the metadata and environment permit it. It reads package.json from the current working directory and appends /donate to collective.url. Package maintainers can invoke it through postinstall for an optional funding reminder. It does not process donations. Application developers encountering it through a dependency usually have no reason to add it directly.

Verdict

Keep opencollective-postinstall if you deliberately want this funding reminder and accept its suppression settings. Before adding it to a new package, decide whether install logs are the right place to ask for support. Then review your existing postinstall script and collective.url together.

Answers from our run

opencollective-postinstall or thanks: which should you use?

thanks: Consider thanks 2.3.0 if your goal is to thank the maintainers behind your dependencies. Its registry description addresses that task; this evidence does not establish it as a replacement for the collective.url hook. Keep opencollective-postinstall if you deliberately want this funding reminder and accept its suppression settings.

When should you not use opencollective-postinstall?

You only run an application that encounters this package through a dependency.

API stability3/5The 2.0.3 registry entry exposes a command and points main to index.js. Its configuration surface consists of collective metadata, three environment switches, and npm's log level. The implementation runs at the top level rather than exporting a reusable function. These sources explain this version's behavior but do not establish compatibility across releases or current runtimes.
Docs3/5The pinned README shows dependency installation, a postinstall entry, collective.url, and opt-out instructions. It covers basic setup. The implementation reveals additional conditions: CI and OPEN_SOURCE_CONTRIBUTOR suppress output, the exact strings false and 0 are exceptions, and metadata comes from the working directory. Those omissions limit the README's troubleshooting coverage.
Maintenance2/5The registry identifies version 2.0.3 and its gitHead commit, so the documented behavior can be traced to a specific implementation. A declared Jest test command is not a passing test result. The packet does not establish a current support commitment or runtime compatibility matrix. The rating reflects limited support evidence rather than an observed execution failure.
Ecosystem3/5npm recorded 9,632,114 downloads for November 17 through November 23, 2026. This establishes retrieval volume during that interval, not unique users, satisfaction, or maintainer demand. The command's documented integration is an optional funding invitation using Node environment settings and local package metadata. Distribution alone does not establish suitability for another task.

Use it if

You maintain an npm package with an Open Collective page and want a funding invitation in install logs.
You already ship this hook and need to understand its metadata lookup or suppression settings.
You need to suppress this reminder without disabling unrelated lifecycle commands.
You accept that environment settings can prevent the invitation from appearing.

Skip it if

You only run an application that encounters this package through a dependency.
Your installation cannot run lifecycle scripts and you intend to rely on postinstall for the reminder.
You need donation processing, account management, live balances, or a configurable message template.
You require executed installation or current-runtime compatibility evidence before adopting tooling.
You require a funding banner that always appears.

Setup reality

Add opencollective-postinstall as a dependency and merge its command into your package's scripts. The version-matched README shows a postinstall entry and collective.url. Supply your collective's base URL without /donate or a trailing slash: the implementation adds /donate literally and does not validate the result. A truthy collective object with no url can print undefined/donate. If collective is absent, the command prints no funding invitation.

The command resolves ./package.json from the current working directory. It does not locate that metadata beside its own installed file. A manual invocation from another folder can read different metadata or fail to find the file. Preserve existing postinstall work when editing scripts. Replacing a build or native-module setup command would remove that work. Adding the dependency alone does not configure your package's hook.

DISABLE_OPENCOLLECTIVE, OPEN_SOURCE_CONTRIBUTOR, and CI use the same case-sensitive string check. Empty values and the exact strings false and 0 do not suppress the banner. Other nonempty values do, including FALSE. Output is also suppressed when npm_config_loglevel is silent, error, or warn. These checks run before the package.json lookup, so silence does not establish that your metadata is valid. The environment assignments below use POSIX shell syntax.

This guide uses the supplied npm 2.0.3 registry metadata, the implementation pinned to its gitHead commit, the matching README, alternative-package registry descriptions, and dated npm download data. The packet contains no package-installation results, runtime executions, donation requests, or Windows shell checks. Every snippet below is an unexecuted, source-based illustration. The registry identifies the release and source commit; it does not establish that a tarball was inspected or that a separate release page was checked.

Read the rating explanations by dimension: configuration behavior, documentation coverage, support evidence, and distribution. No site-wide scoring formula is established by this evidence packet. The ratings do not establish runtime compatibility. npm recorded 9,632,114 downloads for November 17 through November 23, 2026. That figure counts package retrievals, not distinct maintainers or endorsements.

Patterns

Add the version covered here install-pinned-package

npm install --save-exact opencollective-postinstall@2.0.3

Unexecuted installation illustration. Configure your package's postinstall hook and collective metadata separately.

Connect the command to package metadata configure-funding-hook

{
  "scripts": {
    "postinstall": "opencollective-postinstall"
  },
  "collective": {
    "url": "https://opencollective.com/YOUR-COLLECTIVE"
  }
}

Unexecuted configuration fragment. Merge it into package.json, preserve existing scripts, and replace YOUR-COLLECTIVE. Supply the base URL because 2.0.3 appends /donate literally.

Invoke the file from your package root inspect-local-banner

node ./node_modules/opencollective-postinstall/index.js

Unexecuted example. The command reads ./package.json from the working directory. A missing file can throw; suppression settings can prevent the lookup entirely.

Suppress this reminder explicitly disable-funding-message

DISABLE_OPENCOLLECTIVE=true node ./node_modules/opencollective-postinstall/index.js

Unexecuted POSIX shell example. This variable suppresses the command before metadata is read. It does not disable unrelated lifecycle commands.

Use the CI environment check suppress-in-ci

CI=true node ./node_modules/opencollective-postinstall/index.js

Unexecuted POSIX shell example. A nonempty CI value other than the exact strings 0 and false suppresses output. For an installation hook, configure the variable in the job environment.

Use the contributor opt-out suppress-for-contributors

OPEN_SOURCE_CONTRIBUTOR=true node ./node_modules/opencollective-postinstall/index.js

Unexecuted POSIX shell example. This variable uses the same string check as CI and DISABLE_OPENCOLLECTIVE.

Apply a quiet log level honor-quiet-log-level

npm_config_loglevel=warn node ./node_modules/opencollective-postinstall/index.js

Unexecuted POSIX shell example. The implementation directly checks this environment variable for warn, error, or silent, including when Node invokes the file outside npm.

Allow a manual invocation to reach metadata clear-suppression-switches

DISABLE_OPENCOLLECTIVE=false OPEN_SOURCE_CONTRIBUTOR=false CI=0 npm_config_loglevel=info node ./node_modules/opencollective-postinstall/index.js

Unexecuted POSIX shell example. These exact values pass the suppression checks. Valid local package metadata and a truthy collective field are still needed to print the invitation. Uppercase FALSE suppresses output. Printing a URL does not verify its destination.

Alternatives

PackageRegistryPick it when
thanksnpmConsider thanks 2.3.0 if your goal is to thank the maintainers behind your dependencies. Its registry description addresses that task; this evidence does not establish it as a replacement for the collective.url hook.
opencollectivenpmThe opencollective 1.0.3 registry description calls it the official Open Collective command-line interface. Consider it for a separate CLI evaluation. Command and configuration compatibility with this hook are not established here.

More web backend guides

How this guide is made: grounded in the library's documentation, release notes, changelog, and issue history, on a fixed rubric — not a hands-on install of every release. The 50 most-downloaded entries are additionally install-verified in clean containers. Corrections: contact the desk.