npm package
opencollective-postinstall review
Keep opencollective-postinstall if you deliberately want this funding reminder and accept its suppression settings.
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.
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.
Use it if
Skip it if
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.3Unexecuted 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.jsUnexecuted 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.jsUnexecuted 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.jsUnexecuted 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.jsUnexecuted 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.jsUnexecuted 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.jsUnexecuted 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
| Package | Registry | Pick it when |
|---|---|---|
| thanks | npm | 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. |
| opencollective | npm | The 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.