---
url: /en/sponsor.md
description: >
  Explains the CNB sponsorship feature for financially supporting projects or
  users, including uploading a WeChat sponsorship code and how funds are
  transferred directly to creators.
---
Use the sponsorship feature to provide financial support to projects or users you admire.

CNB links a user's WeChat sponsorship code with their account
and displays it in appropriate locations.
Funds go directly to the creator's WeChat account —
CNB does not charge any fees.

> Please verify the creator's credibility before sponsoring.

## 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

A repository homepage displays the sponsorship information of the top 5
commit contributors in the past 60 days by default.
Users without a sponsorship code are excluded,
and **no lower-ranked users are substituted**.

Contributors are ranked by commit count in descending order.

## Customize Repository Sponsorship Information

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

File content:

```yaml
cnb:
  - user1
  - user2
custom:
  - custom-url1
  - custom-url2
```

Field descriptions:

* `cnb`: Specify sponsored users by username, up to 5. Once configured,
  only these users will be displayed, replacing the top 5 commit contributors.
* `custom`: Custom donation links shown in the sponsorship section,
  up to 5 URLs.

## Stop Accepting Sponsorships

* **Personal sponsorship**: Go to Personal Settings and delete the uploaded sponsorship code.
* **Donation links**: Delete the relevant configuration in `.cnb/FUNDING.yml`.
