Open code
Take it. It’s yours too.
Every line of Paywell is public and free to copy, change and use, for any reason, with no permission needed. The code, the database, the designs, the logo and the full pay model are all here. We give it away on purpose: fair pay should be easy for every company to start.

What’s open
| File | What it does | Get it |
|---|---|---|
| paywell-app.js | Team app server: passkey sign-up and sign-in (WebAuthn checked on our server), teams, setup links, daily check-ins, scores, daily bonus math, chat, rating links, and the test-network Bitcoin proxy. | Read it here · Source |
| paywell-api.js | Customer rating links (signed, one use, 14 days) and the wallet vault that stores a passkey-locked backup we cannot open. | Read it here · Source |
| schema.sql | The whole database: teams, people, passkeys, sessions, check-ins, ratings, chat, vault. | Read it here · Source |
| app.js | The team app in the browser: screens, passkeys, wallet lock (PRF + HKDF + AES-GCM), check-ins, payments, chat. | Read it here · Source |
| wallet-src.js | The wallet: BIP39 words, BIP84 addresses, building and signing payments, QR codes. Built with audited open libraries (@scure). | Read it here · Source |
| rate.js | The customer rating page. | Read it here · Source |
| bonus_diagram.html | The daily bonus diagram used on this site and on every brand’s fair pay page. | Read it here · Source |
| logo.svg | Our logo: a gold coin with a rating star, over a smile. | Read it here · Source |
| build.py | Builds every page of this website. | Read it here · Source |
Everything is dedicated to the public domain (CC0 for words and pictures, the Unlicense for code). You don’t need to credit us.
How it fits together
- A website, nothing to installThe site, the team app and the rating pages are plain web pages served from the edge. They work on any phone or computer, and you can add the app to your home screen.
- Passkeys onlySign-in uses WebAuthn passkeys: your face, fingerprint or screen lock. There are no passwords to steal. Our server checks every passkey signature itself.
- A small databaseOne SQLite database (Cloudflare D1) holds teams, people, check-ins, ratings and chat. Sessions are stored only as a fingerprint (hash) of the token.
- A wallet we can’t openThe wallet is made in your browser. Its backup words are locked with a key that only your passkey can produce (the WebAuthn PRF extension), then stored with us as a sealed box.
- Signed rating linksEach visit gets a link signed by the server (HMAC-SHA256). It works once, for 14 days, and can’t be faked or reused.
- The math is publicScore = customer reviews 60% + peer check-ins 40%, from 0 to 100. Daily bonus = score × tier shares × the value of one share. Tiers: Explorer 1, Builder 1½, Guide 2.
Run your own copy
- Copy the
domain-sitesfolder and thetools/paywell-genfolder from the repository. - Create a D1 database and load
schema.sqlinto it. - Deploy to Cloudflare Pages with that database bound as
PAYWELL_DB. - Change the domain name in
paywell-app.js(it’s the passkey website ID), and you have your own Paywell.
Before real money moves. Test mode uses Bitcoin’s test network. Paying real wages needs a licensed payroll provider, normal tax withholding and reporting, and the money transmitter rules in each state. Our research page lists the sources.