Skip to content

feat: sponsees mode#113

Open
hyoban wants to merge 11 commits intoantfu-collective:mainfrom
hyoban:2-7-sponsoring
Open

feat: sponsees mode#113
hyoban wants to merge 11 commits intoantfu-collective:mainfrom
hyoban:2-7-sponsoring

Conversation

@hyoban
Copy link

@hyoban hyoban commented Feb 7, 2026

  • <- Keep this line and put an x between the brackts.

Description

This is a preliminary idea, and I'm unsure if it's the right fit. This PR adds a sponsoring mode to display a person's total sponsorship history. Here's an example.

https://github.com/hyoban/sponsors

const mode = process.env.SPONSORKIT_MODE as "sponsor" | "sponsoring";

export default defineConfig({
  mode,
  tiers:
    mode === "sponsor"
      ? [
          xxx
        ]
      : [
          xxx
        ],
  outputDir: `./sponsorkit/${mode}`,
});

Linked Issues

fixes #

Additional context

@antfu
Copy link
Member

antfu commented Feb 10, 2026

Do you mean that instead of using monthlyDollars, you want to count for the total sponsorship for tiers?

I found the words "mode" and "sponsoring" a bit confusing. Maybe instead, we could introduce a totalDollars field in the Tier definition so the tier can be used based on monthlyDollars or totalDollars based on users' config?

@hyoban
Copy link
Author

hyoban commented Feb 10, 2026

No, I want to show who a person sponsored. Like https://github.com/antfu?tab=sponsoring

@antfu
Copy link
Member

antfu commented Feb 11, 2026

I see. I would love to have it. For the naming, maybe mode: "sponsors" | "sponsees"?

@hyoban hyoban changed the title feat: sponsoring mode feat: sponsees mode Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants