Renanuya/buymeatokens-oss
About
Open-source Buy Me a Coffee and Ko-fi alternative for developers. Support pages, live README badges and direct payments with 0% platform commission; provider fees apply.
Business & FinanceWhat you can do
- Write with AI - Optional: drafts the project description from the repository's README, or from the project name and link without one (Gemini or Groq free tiers, capped per creator and per day).
- Stripe - Checkout runs on the creator's own restricted key (Checkout Sessions: write only), stored encrypted with AES-256-GCM. No webhooks needed; pending sessions are reconciled.
- PayPal - Classic "Buy Now" links straight to the creator, confirmed through verified IPN messages.
- USDC on Base - Wallet-to-wallet payments verified from on-chain Transfer logs. Experimental: see known limitations.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalbuymeatokens
Support the AI tools behind the projects you use.
Buy Me a Tokens (buymeatokens) is an open-source support platform for developers and makers.
Supporters contribute toward the AI tools behind their projects. Payments go straight to the creator's own Stripe,
PayPal or USDC wallet, with 0% platform commission. Payment provider and network fees still apply.
Website · Discord · Roadmap · Contributing · Local setup · Security
How it works
- A creator signs in with GitHub and claims
buymeatokens.com/<username>. - They connect a payment method they already own: a Stripe restricted key, a PayPal email or a USDC address on Base.
- Supporters buy "token bundles" from the creator's page or README badge. The money lands in the creator's account directly; buymeatokens never holds funds.
Features
| Creator pages | GitHub login and a three-step guided setup: page name, project link with live GitHub stats, and a payment method. Every page uses 1M AI tokens = $1, and supporters pick 5M, 10M or 25M or any amount. The description, "where the tokens go" with an optional thank-you note, a funding goal (one-time, or monthly and counted per UTC month) and socials are set in Settings, one row each. Creators can reply to and like supporters' messages. |
| Write with AI | Optional: drafts the project description from the repository's README, or from the project name and link without one (Gemini or Groq free tiers, capped per creator and per day). |
| Stripe | Checkout runs on the creator's own restricted key (Checkout Sessions: write only), stored encrypted with AES-256-GCM. No webhooks needed; pending sessions are reconciled. |
| PayPal | Classic "Buy Now" links straight to the creator, confirmed through verified IPN messages. |
| USDC on Base | Wallet-to-wallet payments verified from on-chain Transfer logs. Experimental: see known limitations. |
| README badges | /api/badge/<username> renders an SVG with the tokens raised, in five styles and seven themes, drawn from glyph outlines so it needs no web fonts. |
| Creator emails | One welcome and at most one setup reminder, sent by a minute worker with atomic delivery claims. |
| Fair pricing | Free today, with no subscriptions. Pages created during early access keep lifetime free access. |
| Creators' data | Terms and privacy consent with versioning, a payment history CSV, one-click account deletion, and logs that redact anything shaped like a key. |
Quick start
You need Node.js 26 (see .nvmrc) and Docker for a local Postgres.
git clone https://github.com/Renanuya/buymeatokens-oss.git buymeatokens
cd buymeatokens
npm ci
docker compose up -d db
cp .env.example .env.local # then fill it in as described in docs/development.md
npm run dev # http://localhost:3000
[!WARNING] Only ever point
POSTGRES_URLat a local or throwaway database. The app applies its schema on the first connection, so a dev server running against production migrates production. You never need production credentials to contribute.
Log in with "Continue without GitHub" (enabled by DEV_LOGIN=true in development), pick a username, add a
Stripe test-mode restricted key and pay with 4242 4242 4242 4242. The full walkthrough is in
docs/development.md.
npm run typecheck # TypeScript
npm test # Vitest against an in-memory PGlite database; touches nothing outside the process
npm run build # production build
Tech stack
Next.js 16 (App Router) · React 19 · Tailwind CSS 4 · PostgreSQL (Supabase in production) via
postgres · PGlite for tests · Vitest · Vercel
See docs/architecture.md for how the pieces fit together.
Contributing
Contributions are welcome. Bug fixes and docs can go straight to a pull request. For features, open or pick an
issue labelled status: accepted first,
so nobody spends a weekend on something we can't merge. Early ideas go to
Discussions → Ideas, where people vote on them.
Start with CONTRIBUTING.md and the good first issues. Using an AI coding agent? Point it at AGENTS.md.
Community
Join the buymeatokens Discord to give feedback, show what you're building, and meet other open source developers and the people who support them. Questions about the code are welcome there too.
Bugs and feature requests still belong in issues and Discussions, so they're tracked and searchable. Security problems never go in public channels; see Security.
Roadmap
The priorities, in order, live in ROADMAP.md and on the project board. Up next: contributor foundations (versioned migrations, demo data, smoke tests for the money paths) and a sturdier USDC flow.
Security
Please don't open public issues for vulnerabilities. Report them privately as described in SECURITY.md.
License
buymeatokens is free software under the GNU Affero General Public License v3.0. You can use, study, change and self-host it. If you run a modified version as a network service, you have to publish your changes under the same license.
The buymeatokens name and logo are not covered by the license; see TRADEMARKS.md.
Explore related projects
Loading…