π€ Pretty opencollective stats on postinstall!
JavaScript
29
158 commits
updated Oct 11, 2026

Displaying opencollective statistics and a donation URL after users install a package is important for many creators. After problems with current packages that offer similar features, we decided to spin off our one own. Our key goals are:
@nuxtjs/opencollective dependency using yarn or npm to your projectpostinstall in your package.json{
// ...
"scripts": {
"postinstall": "opencollective || exit 0"
},
"collective": {
"url": "https://opencollective.com/nuxtjs"
}
// ...
}
Configuration is applied through your project's package.json.
A full configuration looks like:
{
"collective": {
"url": "https://opencollective.com/nuxtjs",
"logoUrl": "https://opencollective.com/nuxtjs/logo.txt?reverse=true&variant=variant2",
"donation": {
"slug": "/order/591",
"amount": "50",
"text": "Please donate:"
}
}
}
| Attribute | Optional | Default | Comment |
|---|---|---|---|
| url | β | - | The URL to your opencollective page |
| logo | β | - | LEGACY: The URL to the logo that should be displayed. Please use logoUrl instead. |
| logoUrl | β | - | The URL to the ASCII-logo that should be displayed. |
| donation.slug | β | '/donate' | The slug that should be appended to url. Can be used to setup a specific order. |
| donation.amount | β | - | The default amount that should be selected on the opencollective page. |
| donation.text | β | 'Donate:' | The text that will be displayed before your donation url. |
We know the postinstall messages can be annoying when deploying in production or running a CI pipeline. That's why the message is disabled in those environments by default.
Enabled when one the following environment variables is set:
NODE_ENV=devNODE_ENV=developmentOPENCOLLECTIVE_FORCEStrictly Disabled when one the following environment variables is set:
OC_POSTINSTALL_TESTOPENCOLLECTIVE_HIDECICONTINUOUS_INTEGRATIONNODE_ENV (set and not dev or development)DISABLE_OPENCOLLECTIVE (set to any string value that is not 'false' or '0',
for compatibility with
opencollective-postinstall)pnpm installpath/to/project/root/src/index.js path/to/package/you/want/to/trynpm t or pnpm testThis project is heavily inspired by opencollective-cli.
MIT License MIT. Made with π
Overall
Maintained
Code review
Latest release
Releases this year
π€ Pretty opencollective stats on postinstall!
JavaScript
29
158 commits
updated Oct 11, 2026

Displaying opencollective statistics and a donation URL after users install a package is important for many creators. After problems with current packages that offer similar features, we decided to spin off our one own. Our key goals are:
@nuxtjs/opencollective dependency using yarn or npm to your projectpostinstall in your package.json{
// ...
"scripts": {
"postinstall": "opencollective || exit 0"
},
"collective": {
"url": "https://opencollective.com/nuxtjs"
}
// ...
}
Configuration is applied through your project's package.json.
A full configuration looks like:
{
"collective": {
"url": "https://opencollective.com/nuxtjs",
"logoUrl": "https://opencollective.com/nuxtjs/logo.txt?reverse=true&variant=variant2",
"donation": {
"slug": "/order/591",
"amount": "50",
"text": "Please donate:"
}
}
}
| Attribute | Optional | Default | Comment |
|---|---|---|---|
| url | β | - | The URL to your opencollective page |
| logo | β | - | LEGACY: The URL to the logo that should be displayed. Please use logoUrl instead. |
| logoUrl | β | - | The URL to the ASCII-logo that should be displayed. |
| donation.slug | β | '/donate' | The slug that should be appended to url. Can be used to setup a specific order. |
| donation.amount | β | - | The default amount that should be selected on the opencollective page. |
| donation.text | β | 'Donate:' | The text that will be displayed before your donation url. |
We know the postinstall messages can be annoying when deploying in production or running a CI pipeline. That's why the message is disabled in those environments by default.
Enabled when one the following environment variables is set:
NODE_ENV=devNODE_ENV=developmentOPENCOLLECTIVE_FORCEStrictly Disabled when one the following environment variables is set:
OC_POSTINSTALL_TESTOPENCOLLECTIVE_HIDECICONTINUOUS_INTEGRATIONNODE_ENV (set and not dev or development)DISABLE_OPENCOLLECTIVE (set to any string value that is not 'false' or '0',
for compatibility with
opencollective-postinstall)pnpm installpath/to/project/root/src/index.js path/to/package/you/want/to/trynpm t or pnpm testThis project is heavily inspired by opencollective-cli.
MIT License MIT. Made with π
Overall
Maintained
Code review
Latest release
Releases this year