---
url: /en/sponsor.md
description: >-
  Explains how to use the CNB sponsorship feature to financially support
  projects or users, including how to upload a WeChat sponsorship QR code and
  how sponsorship funds are transferred.
---
You can use the sponsorship feature to financially support projects or users you admire or who have helped you.

The CNB sponsorship feature links a user's WeChat sponsorship code with their CNB account,
displaying the code in appropriate locations.

Sponsorship funds go directly to the creator's WeChat sponsorship code, and CNB does not charge any processing fees.

Before sponsoring, please verify the information published by the creator to ensure credibility.

## Upload Sponsorship Code

1. Generate a WeChat Sponsorship Code

   Open WeChat, tap the `+` in the top-right corner → Payment → Sponsorship Code, complete the setup,
   and save the code.

   ![wechat-sponsor](/images/wechat-sponsor.png)

2. Upload the WeChat Sponsorship Code

   Go to the CNB platform - Personal Settings, and upload the WeChat sponsorship code.

## Display Sponsorship Code

### Personal Homepage

When visiting a user's homepage, if the user has uploaded a sponsorship code,
click the sponsorship button to view the code and scan to sponsor.

### Repositories Homepage

When visiting a repository homepage,
the sponsorship information of the Top 5 most active users in the past 30 days will be displayed by default.

If a user has not uploaded a sponsorship code, they will not be displayed,
and **no lower-ranked users will be substituted**.

Repository activity is calculated based on activities such as commits, pull requests, and issues.

## Customize Repository Sponsorship Information

If you need to customize the list of sponsored users for a repository or add custom donation links,
you can add a `.cnb/FUNDING.yml` file to the default branch.

File content:

```yaml
# Specify sponsored users by entering usernames, up to 5 users. Once configured, only the specified users will be displayed, replacing the top 5 contributors.
cnb:
  - user1
  - user2
# Custom donation links can be displayed in the sponsorship section, up to 5 URLs.
custom:
  - custom-url1
  - custom-url2
```

## Stop Accepting Sponsorships

Personal sponsorship information: Go to Personal Settings and delete the uploaded sponsorship code.

If donation links are configured, go to the repository and delete the relevant configuration in `.cnb/FUNDING.yml`.
