Skip to content

OpenStock is an open-source alternative to expensive market platforms. Track real-time prices, set personalized alerts, and explore detailed company insights — built openly, for everyone, forever free.

feat(sponsor): show who receives sponsorships and where the money goes

ravixalgorithm781a0eeb3a09
diff --git a/app/(marketing)/sponsor/page.tsx b/app/(marketing)/sponsor/page.tsx
index 3126753..54e518b 100644
--- a/app/(marketing)/sponsor/page.tsx
+++ b/app/(marketing)/sponsor/page.tsx
@@ -1,7 +1,7 @@
import { Check, HandCoins, MessageCircle, Minus } from "lucide-react";
import { getRepoStats, formatCount } from "@/lib/github";
import { DISCORD_URL, sponsorCheckoutUrl } from "@/lib/constants";
-import { ACTIVE_SPONSORS, SPONSOR_CONTACT_EMAIL, SPONSOR_GOAL, SPONSOR_TIERS, type SponsorTierId } from "@/lib/sponsors";
+import { ACTIVE_SPONSORS, FUNDING_USES, SPONSOR_CONTACT_EMAIL, SPONSOR_GOAL, SPONSOR_RECIPIENT, SPONSOR_TIERS, type SponsorTierId } from "@/lib/sponsors";
import { cn } from "@/lib/utils";
export const metadata = {
@@ -31,6 +31,7 @@ const FAQ = [
export default async function SponsorPage() {
const repo = await getRepoStats();
const goalPercent = Math.min(100, (SPONSOR_GOAL.current / SPONSOR_GOAL.target) * 100);
+ const fundingTotal = FUNDING_USES.reduce((sum, use) => sum + (use.monthly ?? 0), 0);
return (
<div className="mx-auto max-w-[1200px] px-5">
@@ -139,6 +140,37 @@ export default async function SponsorPage() {
</div>
</section>
+ <section className="mt-24">
+ <p className="kicker text-brand-ink">Transparency</p>
+ <h2 className="mt-2 text-[28px] font-bold tracking-[-0.04em] md:text-[34px]">Where your money goes.</h2>
+ <p className="mt-3 max-w-2xl text-[16px] text-muted-foreground">
+ Sponsorships are paid through GitHub Sponsors to {SPONSOR_RECIPIENT.name}{' '}
+ (<a href={`https://github.com/${SPONSOR_RECIPIENT.handle}`} target="_blank" rel="noreferrer" className="font-semibold text-brand-ink hover:underline">@{SPONSOR_RECIPIENT.handle}</a>),{' '}
+ {SPONSOR_RECIPIENT.role}, and pay for keeping OpenStock free:
+ </p>
+ <div className="hatch mt-8">
+ <div className="card row-list">
+ {FUNDING_USES.map((use, i) => (
+ <div key={use.label} className="grid gap-1 px-5 py-4 sm:grid-cols-[180px_minmax(0,1fr)_auto] sm:items-center sm:gap-6">
+ <span className="flex items-center gap-3 font-bold">
+ <span className="mono text-[12px] text-faint">{String(i + 1).padStart(2, '0')}</span>
+ {use.label}
+ </span>
+ <span className="text-muted-foreground">{use.detail}</span>
+ {fundingTotal > 0 && (
+ <span className="num text-right font-semibold">
+ {use.monthly ? `$${use.monthly}/mo · ${Math.round((use.monthly / fundingTotal) * 100)}%` : '—'}
+ </span>
+ )}
+ </div>
+ ))}
+ </div>
+ </div>
+ {fundingTotal > 0 && (
+ <p className="num mt-4 text-muted-foreground">Running OpenStock costs about <b className="text-foreground">${fundingTotal} a month</b>.</p>
+ )}
+ </section>
+
<section className="mt-24">
<p className="kicker text-brand-ink">Placements</p>
<h2 className="mt-2 text-[28px] font-bold tracking-[-0.04em] md:text-[34px]">Where your name shows up.</h2>
diff --git a/lib/sponsors.ts b/lib/sponsors.ts
index acd711b..cbe8831 100644
--- a/lib/sponsors.ts
+++ b/lib/sponsors.ts
@@ -57,4 +57,17 @@ export const SPONSOR_GOAL = { label: 'monthly sponsors', target: 1000, current:
export const SPONSOR_CONTACT_EMAIL = '[email protected]';
+// Who receives sponsorships today (GitHub Sponsors is on the founder's personal account).
+export const SPONSOR_RECIPIENT = { name: 'Ravi Pratap Singh', handle: 'ravixalgorithm', role: 'founder of Open Dev Society' };
+
+// Where sponsorship money goes. Add `monthly` (USD) to a line once the real bill is known;
+// the page then shows amounts and each line's share. Lines without it never show a figure.
+export const FUNDING_USES: { label: string; detail: string; monthly?: number }[] = [
+ { label: 'Hosting', detail: 'Vercel serves the app and site. Our traffic is past the free tier.' },
+ { label: 'Market data', detail: 'Finnhub keys, so quotes stay fast for everyone and OpenStock Cloud can go live.' },
+ { label: 'Database', detail: 'MongoDB Atlas for accounts, watchlists and alerts.' },
+ { label: 'AI and email', detail: 'Gemini for welcome emails and the weekly digest, plus email delivery.' },
+ { label: 'Maintenance', detail: 'Time to review community pull requests, fix bugs and ship features.' },
+];
+
export const sidebarSponsors = () => ACTIVE_SPONSORS.filter((s) => s.tier === 'partner').slice(0, SIDEBAR_SPONSOR_SLOTS);