Skip to content

Commit abaf696

Browse files
committed
docs: revamp sponsor page, add UsedBy component, rename donate to sponsor
- Rewrite sponsor page with updated stats, "Used by" section, and clearer CTAs - Add UsedBy component showing notable companies (single source for homepage + sponsor page) - Add sponsor heart icon to navbar - Rename Donate references to Sponsor throughout - Add SPONSOR.md for GitHub profile
1 parent 21d5de6 commit abaf696

9 files changed

Lines changed: 197 additions & 51 deletions

File tree

SPONSOR.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Sponsor Fuse.js
2+
3+
Fuse.js is built and maintained by a solo developer. Your sponsorship directly funds continued development, bug fixes, and new features.
4+
5+
### By the numbers
6+
7+
- **~8M npm downloads/week**
8+
- **20k+ GitHub stars**
9+
- **3,700+ npm dependents**
10+
11+
Trusted by teams at Google, Microsoft, Atlassian, Spotify, MongoDB, Vercel, Adobe, Signal, HashiCorp, SAP, IBM, Nvidia, Grafana, Elastic, Datadog, PostHog, Mapbox, and [many more](https://www.npmjs.com/browse/depended/fuse.js).
12+
13+
---
14+
15+
## How to Sponsor
16+
17+
Sponsorships can be done right here via GitHub Sponsors, or via [PayPal](https://www.paypal.me/kirorisk). Both monthly and one-time contributions are accepted. Invoices are available through GitHub's payment system.
18+
19+
### For businesses
20+
21+
If your product depends on Fuse.js, sponsoring is a practical way to ensure the library stays healthy and actively maintained. Your logo on the repo and site reaches tens of thousands of developers every month.
22+
23+
### For individuals
24+
25+
If Fuse.js has saved you time or made a project easier, consider a one-time or recurring contribution. It's like buying me a coffee ☕️ — and it keeps the project going.

docs/.vuepress/components/Donate/Donate.vue renamed to docs/.vuepress/components/Sponsor/Sponsor.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<template>
2-
<div class="donate-link-wrapper">
3-
<strong>❤️️ Fuse.js? Support its development with a small donation.</strong>
2+
<div class="sponsor-link-wrapper">
3+
<strong>❤️️ Fuse.js? Support its development by becoming a sponsor.</strong>
44
<br />
5-
<a href="https://github.com/sponsors/krisk" class="donate-btn">Donate</a>
5+
<a href="/sponsor/" class="sponsor-btn">Sponsor</a>
66
</div>
77
</template>
88

99
<style>
10-
.donate-link-wrapper {
10+
.sponsor-link-wrapper {
1111
padding-top: 20px;
1212
}
1313
14-
.donate-btn {
14+
.sponsor-btn {
1515
display: inline-block;
1616
text-align: center;
1717
text-decoration: none;
@@ -29,11 +29,11 @@
2929
margin: 20px 0 0 0;
3030
padding: 10px 30px;
3131
}
32-
.donate-btn:focus {
32+
.sponsor-btn:focus {
3333
outline: 0;
3434
text-decoration: none;
3535
}
36-
.donate-btn:hover {
36+
.sponsor-btn:hover {
3737
background-color: #a684c6;
3838
transition: background-color 250ms;
3939
text-decoration: none !important;

docs/.vuepress/components/Sponsors/Sponsors.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
>
1313
<img :src="sponsor.imgUrl" :alt="sponsor.name" />
1414
</a>
15-
<a href="/donate" class="sponsor-item action">Your logo</a>
15+
<a href="/sponsor" class="sponsor-item action">Your logo</a>
1616
</div>
1717
</div>
1818
</template>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<template>
2+
<div class="used-by">
3+
<p>
4+
<span class="label">Trusted by teams at</span>
5+
{{ companies.join(', ') }}, and <a href="/sponsor">more</a>.
6+
</p>
7+
</div>
8+
</template>
9+
10+
<script setup lang="ts">
11+
const companies = [
12+
'Google',
13+
'Microsoft',
14+
'Atlassian',
15+
'Spotify',
16+
'MongoDB',
17+
'Vercel',
18+
'Adobe',
19+
'Signal',
20+
'HashiCorp',
21+
'SAP',
22+
'IBM',
23+
'Nvidia',
24+
'Grafana',
25+
'Elastic',
26+
'Datadog',
27+
'PostHog',
28+
'Mapbox',
29+
]
30+
</script>
31+
32+
<style scoped lang="css">
33+
.used-by {
34+
padding: 16px 0;
35+
}
36+
37+
.used-by p {
38+
font-size: 14px;
39+
color: var(--c-text-lighter);
40+
line-height: 1.6;
41+
}
42+
43+
.used-by .label {
44+
font-weight: 600;
45+
}
46+
47+
.used-by a {
48+
color: var(--c-text-lighter);
49+
}
50+
</style>

docs/.vuepress/config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export default defineUserConfig({
4848
link: '/demo'
4949
},
5050
{
51-
text: 'Donate',
52-
link: '/donate/'
51+
text: 'Sponsor',
52+
link: '/sponsor/'
5353
},
5454
{
5555
text: 'Team Plans',
@@ -105,8 +105,9 @@ function getPlugins(): PluginConfig {
105105
...getComponent('Playground'),
106106
...getComponent('WorkerDemo'),
107107
...getComponent('PerfDemo'),
108-
...getComponent('Donate'),
108+
...getComponent('Sponsor'),
109109
...getComponent('CommercialCTA'),
110+
...getComponent('UsedBy'),
110111
...getComponent('ArchitectureDiagram'),
111112
...getComponent('PublishDate'),
112113

docs/.vuepress/styles/index.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@ h2 {
5050
border-bottom: none;
5151
}
5252

53+
// Sponsor nav icon
54+
nav a[href="/sponsor/"]::before,
55+
nav a[href$="/sponsor"]::before {
56+
content: '';
57+
display: inline-block;
58+
width: 16px;
59+
height: 16px;
60+
margin-right: 4px;
61+
vertical-align: middle;
62+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23bf3989'%3E%3Cpath d='m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002Z'/%3E%3C/svg%3E");
63+
background-size: contain;
64+
background-repeat: no-repeat;
65+
position: relative;
66+
top: -1px;
67+
}
68+
5369
// Cloud nav icon
5470
nav a[href="/cloud.html"]::before,
5571
nav a[href$="/cloud"]::before {

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: Powerful, lightweight fuzzy-search library for JavaScript with zero
99

1010
<Sponsors />
1111

12+
<UsedBy />
13+
1214
## Quick Example
1315

1416
```js
@@ -59,4 +61,4 @@ See [Getting Started](getting-started.md) for installation options, builds, and
5961

6062
<CommercialCTA />
6163

62-
<Donate />
64+
<Sponsor />

docs/donate.md

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,13 @@
1-
# Become a Fuse.js Sponsor
2-
3-
Fuse.js is an Apache licensed open source project and completely free to use. If you use Fuse.js in your daily work and feel that it has made your life easier, please consider sponsorship.
4-
5-
The amount of effort needed to maintain this and develop new features for the project is only made sustainable thanks to your generous financial backing.
6-
71
---
8-
9-
## How to Sponsor
10-
11-
Sponsorships can be done via [GitHub Sponsors](https://github.com/sponsors/krisk) or [PayPal](https://www.paypal.me/kirorisk). Invoices can be obtained via GitHub's payment system. Both monthly-recurring sponsorships and one-time donations are accepted. Recurring sponsorships are entitled to logo placements as specified in [Sponsorship Tiers](#tier-benefits).
12-
13-
### Sponsoring Fuse.js as a Business
14-
15-
If you run a business that is using Fuse.js, it makes sense to sponsor its development: **it ensures the project stays healthy and actively maintained.**
16-
17-
Also, you will be recognized as a beacon of support to open-source developers everywhere.
18-
19-
### Sponsoring Fuse.js as an Individual
20-
21-
If you are an individual user and have enjoyed the productivity of using Fuse.js, consider donating as a sign of appreciation.
22-
23-
You can also try to convince your employer to sponsor Fuse.js as a business 😊.
24-
2+
title: Sponsor
253
---
264

27-
## Tier Benefits
28-
29-
- **☕ Coffee Sponsor (USD $5/month):**
30-
31-
- Your name will be added to the [BACKERS.md](https://github.com/krisk/Fuse/blob/main/backers.md) file of the GitHub repo. Also, thank you! It’s like buying me a cup of coffee every month ☕️.
32-
33-
- **🥉 Bronze Sponsor (USD $20/month):**
34-
35-
- Your name or logo in the [README.md](https://github.com/krisk/Fuse) file of the GitHub repo.
36-
37-
- **🥈 Silver Sponsor (USD $100/month):**
38-
39-
- Your company's logo placed on both the front page of [fusejs.io](https://fusejs.io/) and in the [README.md](https://github.com/krisk/Fuse) file of the GitHub repo.
40-
41-
- **🥇 Gold Sponsor (USD $400/month):**
5+
<script>
6+
export default {
7+
mounted() {
8+
window.location.replace('/sponsor/')
9+
}
10+
}
11+
</script>
4212

43-
- All of the above but with a bigger logo, and most prominent placement.
13+
Redirecting to [Sponsor](/sponsor/)...

docs/sponsor.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# Sponsor Fuse.js
2+
3+
Fuse.js is built and maintained by a solo developer. Your sponsorship directly funds continued development, bug fixes, and new features.
4+
5+
### By the numbers
6+
7+
- **~8M npm downloads/week**
8+
- **20k+ GitHub stars**
9+
- **3,700+ npm dependents**
10+
11+
<UsedBy />
12+
13+
---
14+
15+
## How to Sponsor
16+
17+
<a href="https://github.com/sponsors/krisk" class="gh-sponsor-btn">
18+
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" width="16" fill="#bf3989"><path d="m8 14.25.345.666a.75.75 0 0 1-.69 0l-.008-.004-.018-.01a7.152 7.152 0 0 1-.31-.17 22.055 22.055 0 0 1-3.434-2.414C2.045 10.731 0 8.35 0 5.5 0 2.836 2.086 1 4.25 1 5.797 1 7.153 1.802 8 3.02 8.847 1.802 10.203 1 11.75 1 13.914 1 16 2.836 16 5.5c0 2.85-2.045 5.231-3.885 6.818a22.066 22.066 0 0 1-3.744 2.584l-.018.01-.006.003h-.002ZM4.25 2.5c-1.336 0-2.75 1.164-2.75 3 0 2.15 1.58 4.144 3.365 5.682A20.58 20.58 0 0 0 8 13.393a20.58 20.58 0 0 0 3.135-2.211C12.92 9.644 14.5 7.65 14.5 5.5c0-1.836-1.414-3-2.75-3-1.373 0-2.609.986-3.029 2.456a.749.749 0 0 1-1.442 0C6.859 3.486 5.623 2.5 4.25 2.5Z"></path></svg>
19+
Sponsor on GitHub
20+
</a>
21+
<a href="https://www.paypal.me/kirorisk" class="gh-sponsor-btn">
22+
<svg aria-hidden="true" height="16" viewBox="0 0 24 24" width="16" fill="#003087"><path d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944 2.23A.77.77 0 0 1 5.703 1.6h6.317c2.1 0 3.61.55 4.49 1.63.375.46.614.975.715 1.528.107.585.108 1.282.003 2.072l-.01.06v.54l.42.24c.354.18.637.39.854.63.363.4.593.9.683 1.49.093.61.05 1.33-.123 2.15-.199.94-.522 1.76-.96 2.43a4.86 4.86 0 0 1-1.524 1.53c-.6.39-1.31.67-2.1.83-.77.16-1.64.24-2.59.24h-.615a1.23 1.23 0 0 0-1.215 1.04l-.032.17-.517 3.27-.024.12a.77.77 0 0 1-.76.65H7.076Z"/></svg>
23+
Sponsor on PayPal
24+
</a>
25+
26+
<style>
27+
.gh-sponsor-btn {
28+
display: inline-flex;
29+
align-items: center;
30+
gap: 8px;
31+
padding: 5px 16px;
32+
font-size: 14px;
33+
font-weight: 500;
34+
color: #24292f;
35+
background-color: #f6f8fa;
36+
border: 1px solid rgba(31, 35, 40, 0.15);
37+
border-radius: 6px;
38+
text-decoration: none;
39+
margin: 8px 12px 16px 0;
40+
}
41+
.gh-sponsor-btn:hover {
42+
background-color: #eef1f4;
43+
text-decoration: none !important;
44+
}
45+
</style>
46+
47+
Both monthly and one-time sponsorships are accepted via [GitHub Sponsors](https://github.com/sponsors/krisk) or [PayPal](https://www.paypal.me/kirorisk). Invoices are available through GitHub’s payment system. Recurring sponsors get logo placements as described in the [tier benefits](#tier-benefits) below.
48+
49+
### For businesses
50+
51+
If your product depends on Fuse.js, sponsoring is a practical way to ensure the library stays healthy and actively maintained. You’ll also get visibility — your logo on the repo and site reaches tens of thousands of developers every month.
52+
53+
### For individuals
54+
55+
If Fuse.js has saved you time or made a project easier, consider a one-time or recurring contribution. It’s like buying me a coffee ☕️ — and it keeps the project going.
56+
57+
---
58+
59+
## What Your Sponsorship Funds
60+
61+
Fuse.js is maintained by a single developer. Your sponsorship goes directly toward:
62+
63+
- **Ongoing maintenance** — bug fixes, dependency updates, and keeping the library reliable across environments
64+
- **Performance work** — profiling, benchmarking, and optimizing search speed and memory usage
65+
- **New features** — extending the query API, improving scoring, and building new search capabilities
66+
- **Documentation** — guides, examples, and API reference at [fusejs.io](https://fusejs.io/)
67+
68+
---
69+
70+
## Tier Benefits
71+
72+
- **☕ Coffee Sponsor ($5/month):**
73+
Your name added to [BACKERS.md](https://github.com/krisk/Fuse/blob/main/backers.md) in the repo.
74+
75+
- **🥉 Bronze Sponsor ($20/month):**
76+
Your name or logo in the [README.md](https://github.com/krisk/Fuse) on GitHub.
77+
78+
- **🥈 Silver Sponsor ($100/month):**
79+
Your logo on the front page of [fusejs.io](https://fusejs.io/) and in the [README.md](https://github.com/krisk/Fuse).
80+
81+
- **🥇 Gold Sponsor ($400/month):**
82+
All of the above with larger logo and most prominent placement.

0 commit comments

Comments
 (0)