Opencollective
๐ค Pretty opencollective stats on postinstall!
Install / Use
/learn @nuxt-contrib/OpencollectiveREADME
@nuxtjs/opencollective ๐ค Pretty opencollective stats on postinstall!

Features
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:
- No interference/problems when installing packages. Never break installation because of the package
- Pretty output for all information
- Decent configurability
- Seamless drop-in for common solutions
Setup
- Add
@nuxtjs/opencollectivedependency using yarn or npm to your project - Add the script to
postinstallin your package.json
{
// ...
"scripts": {
"postinstall": "opencollective || exit 0"
},
"collective": {
"url": "https://opencollective.com/nuxtjs"
}
// ...
}
- Configure it
Configuration
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.
Disable message
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_FORCE
Strictly Disabled when one the following environment variables is set:
OC_POSTINSTALL_TESTOPENCOLLECTIVE_HIDECICONTINUOUS_INTEGRATIONNODE_ENV(set and notdevordevelopment)DISABLE_OPENCOLLECTIVE(set to any string value that is not'false'or'0', for compatibility with opencollective-postinstall)
Development
- Clone this repository
- Install dependencies using
pnpm install - Run it manually
path/to/project/root/src/index.js path/to/package/you/want/to/try - Run tests with
npm torpnpm test
Inspiration
This project is heavily inspired by opencollective-cli.
License
MIT License MIT. Made with ๐
<!-- Refs -->Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot ๅฏๅชไฝๆถๅ่ฝๅใไฝฟ็จ <qqmedia> ๆ ็ญพ๏ผ็ณป็ปๆ นๆฎๆไปถๆฉๅฑๅ่ชๅจ่ฏๅซ็ฑปๅ๏ผๅพ็/่ฏญ้ณ/่ง้ข/ๆไปถ๏ผใ
