Paywell / website · paywell.company / open / src / build.py.txt
| 1 | # Builds the static pages of domain-sites/paywell.company (not the app or rate pages, which are hand-written). |
| 2 | # python3 tools/paywell-gen/build.py |
| 3 | import os, html |
| 4 | ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "domain-sites", "paywell.company") |
| 5 | D = "https://paywell.company" |
| 6 | LOGO = '<svg viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="9" fill="#0f3d2e"/><circle cx="16" cy="14.5" r="8.5" fill="#e0a526"/><circle cx="16" cy="14.5" r="6.6" fill="none" stroke="#0f3d2e" stroke-opacity=".35" stroke-width="1"/><path d="M16 9.6l1.5 3.1 3.4.5-2.5 2.4.6 3.4-3-1.6-3 1.6.6-3.4-2.5-2.4 3.4-.5z" fill="#0f3d2e"/><path d="M8.5 25.5c2.2 1.6 4.7 2.4 7.5 2.4s5.3-.8 7.5-2.4" fill="none" stroke="#7fd1a3" stroke-width="2.2" stroke-linecap="round"/></svg>' |
| 7 | FAV = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='9' fill='%230f3d2e'/%3E%3Ccircle cx='16' cy='14.5' r='8.5' fill='%23e0a526'/%3E%3Ccircle cx='16' cy='14.5' r='6.6' fill='none' stroke='%230f3d2e' stroke-opacity='.35' stroke-width='1'/%3E%3Cpath d='M16 9.6l1.5 3.1 3.4.5-2.5 2.4.6 3.4-3-1.6-3 1.6.6-3.4-2.5-2.4 3.4-.5z' fill='%230f3d2e'/%3E%3Cpath d='M8.5 25.5c2.2 1.6 4.7 2.4 7.5 2.4s5.3-.8 7.5-2.4' fill='none' stroke='%237fd1a3' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E" |
| 8 | NAV = [("/how-it-works/", "How it works"), ("/fair-pay/", "Fair pay"), ("/learn/", "Bitcoin basics"), ("/rate/", "Rate a visit"), ("/app/", "Team app"), ("/open/", "Open code")] |
| 9 | |
| 10 | def head(path, title, desc, extra=""): |
| 11 | nav = "".join(f'<a href="{h}"{" aria-current=page" if h == path else ""}>{t}</a>' for h, t in NAV) |
| 12 | return f'''<!doctype html> |
| 13 | <html lang="en"> |
| 14 | <head> |
| 15 | <meta charset="utf-8"> |
| 16 | <meta name="viewport" content="width=device-width,initial-scale=1"> |
| 17 | <title>{html.escape(title)}</title> |
| 18 | <meta name="description" content="{html.escape(desc)}"> |
| 19 | <link rel="canonical" href="{D}{path}"> |
| 20 | <meta property="og:type" content="website"><meta property="og:site_name" content="Paywell"> |
| 21 | <meta property="og:title" content="{html.escape(title)}"><meta property="og:description" content="{html.escape(desc)}"> |
| 22 | <meta property="og:url" content="{D}{path}"><meta property="og:image" content="{D}/img/og.jpg"> |
| 23 | <meta name="twitter:card" content="summary_large_image"> |
| 24 | <meta name="theme-color" content="#0f3d2e"> |
| 25 | <link rel="icon" href="{FAV}"> |
| 26 | <link rel="manifest" href="/app/manifest.webmanifest"> |
| 27 | <link rel="stylesheet" href="/assets/site.css"> |
| 28 | {extra}</head> |
| 29 | <body> |
| 30 | <a class="skip" href="#main">Skip to content</a> |
| 31 | <div class="wrap"> |
| 32 | <header class="top"><a class="brand" href="/">{LOGO}Paywell</a><nav class="main" aria-label="Main">{nav}</nav></header> |
| 33 | </div> |
| 34 | <main id="main"> |
| 35 | ''' |
| 36 | |
| 37 | FOOT = '''</main> |
| 38 | <div class="wrap"><footer class="site">Paywell <span aria-hidden="true">·</span> <a href="/careers/">Careers</a></footer></div> |
| 39 | </body> |
| 40 | </html> |
| 41 | ''' |
| 42 | DIAGRAM = open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'bonus_diagram.html'), encoding='utf-8').read().strip() |
| 43 | RANKS_HTML = '''<div class="ranks"> |
| 44 | <div class="rank"><i>1</i><b>Explorer</b><span>Everyone starts here, learning the work. 1 bonus share.</span></div> |
| 45 | <div class="rank"><i>2</i><b>Builder</b><span>Growing: steady high scores and teammates’ backing. 1½ bonus shares.</span></div> |
| 46 | <div class="rank"><i>3</i><b>Guide</b><span>On the way to mastery, helping others grow. 2 bonus shares.</span></div> |
| 47 | </div>''' |
| 48 | |
| 49 | def ic(d): return f'<div class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">{d}</svg></div>' |
| 50 | I_SHIELD = '<path d="M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z"/><path d="M9 12l2 2 4-4"/>' |
| 51 | I_COIN = '<circle cx="12" cy="12" r="9"/><path d="M12 7v10M9.5 9.5h4a1.5 1.5 0 010 3h-3a1.5 1.5 0 000 3h4"/>' |
| 52 | I_STAR = '<path d="M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z"/>' |
| 53 | I_HEART = '<path d="M20.5 8.5c0 5-8.5 11-8.5 11s-8.5-6-8.5-11A4.5 4.5 0 0112 6a4.5 4.5 0 018.5 2.5z"/>' |
| 54 | I_QR = '<rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><path d="M14 14h3v3M21 14v7h-4M14 18v3"/>' |
| 55 | I_SCALE = '<path d="M12 3v18M5 7h14M5 7l-3 7a3.5 3.5 0 006 0zM19 7l-3 7a3.5 3.5 0 006 0z"/>' |
| 56 | I_LOCK = '<rect x="4" y="10" width="16" height="11" rx="2"/><path d="M8 10V7a4 4 0 018 0v3"/>' |
| 57 | I_BOOK = '<path d="M4 5a2 2 0 012-2h13v16H6a2 2 0 00-2 2z"/><path d="M4 19V5"/>' |
| 58 | I_USD = '<path d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18"/><circle cx="12" cy="12" r="9"/>' |
| 59 | |
| 60 | def write(rel, s): |
| 61 | p = os.path.join(ROOT, rel); os.makedirs(os.path.dirname(p), exist_ok=True) |
| 62 | open(p, "w").write(s) |
| 63 | |
| 64 | ORG = '''<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","name":"Paywell","url":"https://paywell.company","logo":"https://paywell.company/img/og.jpg","description":"Fair pay, daily Bitcoin bonuses shown in dollars, and no-tip customer ratings."}</script> |
| 65 | ''' |
| 66 | |
| 67 | # ---------------- Home ---------------- |
| 68 | write("index.html", head("/", "Paywell | Fair pay you can see", "Paywell pays team members a guaranteed wage plus daily Bitcoin bonuses shown in dollars, and lets customers thank great service with a rating instead of a tip.", ORG) + f'''<div class="wrap"> |
| 69 | <section class="hero"> |
| 70 | <div> |
| 71 | <p class="status">Open now in test mode. Test coins only, no real money moves.</p> |
| 72 | <h1>Fair pay you can see.</h1> |
| 73 | <p class="lede">A guaranteed wage, a daily Bitcoin bonus shown in plain dollars, and a simple way for customers to say thank you without spending a cent. No tip jars. No tip screens.</p> |
| 74 | <div class="btns"><a class="btn" href="/app/">Start a test team</a><a class="btn o" href="/how-it-works/">How it works</a></div> |
| 75 | </div> |
| 76 | <div class="art"><img src="/img/hero.webp" width="1536" height="1024" alt="A dog groomer in a bright salon smiling at her phone during a short break"></div> |
| 77 | </section> |
| 78 | </div> |
| 79 | |
| 80 | <section class="sec"><div class="wrap"> |
| 81 | <p class="eyebrow">How Paywell works</p> |
| 82 | <h2>Do great work, earn more Bitcoin.</h2> |
| 83 | <p class="sub">Your wage is always guaranteed. On top of it, a daily Bitcoin bonus grows with what customers and teammates say about your work, and with your tier. There are only three tiers.</p> |
| 84 | {DIAGRAM} |
| 85 | {RANKS_HTML} |
| 86 | <p style="margin-top:22px"><a class="btn o" href="/how-it-works/">See the full rules</a></p> |
| 87 | </div></section> |
| 88 | |
| 89 | <section class="sec"><div class="wrap split"> |
| 90 | <div class="photo"><img src="/img/rate.webp" width="1536" height="1024" alt="A customer holding a phone above a receipt with a small printed code on a shop counter" loading="lazy"></div> |
| 91 | <div> |
| 92 | <p class="eyebrow">For customers</p> |
| 93 | <h2>Say thanks in ten seconds.</h2> |
| 94 | <p class="sub">Scan the code on your receipt or tap the link in your text or email. Pick a rating. That’s it. No app, no account, no tip.</p> |
| 95 | <ol class="steps"> |
| 96 | <li><b>Open your link</b><span>Each visit gets its own one-time link.</span></li> |
| 97 | <li><b>Tap a rating</b><span>Big, simple buttons. Add a note if you like.</span></li> |
| 98 | <li><b>Done</b><span>Great ratings raise that person’s daily bonus. The company pays it, not you.</span></li> |
| 99 | </ol> |
| 100 | <p style="margin-top:22px"><a class="btn o" href="/rate/">Rate a visit</a></p> |
| 101 | </div> |
| 102 | </div></section> |
| 103 | |
| 104 | <section class="sec"><div class="wrap split"> |
| 105 | <div> |
| 106 | <p class="eyebrow">Daily check-in</p> |
| 107 | <h2>Thirty seconds at the end of each shift.</h2> |
| 108 | <p class="sub">Before you head home, rate each teammate you worked with today: one to five stars and a kind, honest note if you like. It takes less than a minute, and it is how good teamwork gets noticed.</p> |
| 109 | <ol class="steps"> |
| 110 | <li><b>Only people you worked with</b><span>One check-in per teammate per day. You can’t rate yourself.</span></li> |
| 111 | <li><b>Private to your company</b><span>Check-ins stay inside your own team. Nobody outside it ever sees them, and teammates see the stars and notes, not who wrote them.</span></li> |
| 112 | <li><b>Skipping is fine</b><span>A missing check-in is never counted as a yes or a no. It simply doesn’t count.</span></li> |
| 113 | </ol> |
| 114 | </div> |
| 115 | <div class="photo"><img src="/img/checkin.webp" width="1536" height="1024" alt="Two coworkers at a café counter after closing, one tapping stars on a phone while the other smiles" loading="lazy"></div> |
| 116 | </div></section> |
| 117 | |
| 118 | <section class="sec"><div class="wrap"> |
| 119 | <p class="eyebrow">Our promises</p> |
| 120 | <h2>What a rating can never do.</h2> |
| 121 | <p class="sub">Ratings are a way to reward great work. They are not a way to take pay away.</p> |
| 122 | <div class="never"> |
| 123 | <div>Lower your hourly wage</div><div>Move your payday</div><div>Take back pay you’ve earned</div><div>Touch your wallet balance</div><div>Claw back a bonus already paid</div> |
| 124 | </div> |
| 125 | <p class="sub">A low rating only counts after it is checked, and you can always dispute it. If the facts are unclear, the team member gets the benefit of the doubt. <a href="/how-it-works/#safeguards">Read the safeguards</a>.</p> |
| 126 | </div></section> |
| 127 | |
| 128 | <section class="sec"><div class="wrap split"> |
| 129 | <div> |
| 130 | <p class="eyebrow">The team app</p> |
| 131 | <h2>Dollars first. Always.</h2> |
| 132 | <p class="sub">Your bonus is held in Bitcoin, but the app shows what it’s worth in U.S. dollars, right now. Bitcoin amounts and rates are one tap away when you want them. The point is to show what your money can buy, not to get you trading.</p> |
| 133 | <div class="cards" style="grid-template-columns:1fr 1fr"> |
| 134 | <div class="card"><h3>See every paycheck</h3><p>Wage, score, tier and Bitcoin bonus, day by day.</p></div> |
| 135 | <div class="card"><h3>Your wallet, your keys</h3><p>We make a wallet that only you can open, or you use your own. Hold it, send it, or turn it into dollars through a licensed provider.</p></div> |
| 136 | <div class="card"><h3>Your ratings</h3><p>See each rating and dispute any you think is wrong.</p></div> |
| 137 | <div class="card"><h3>Learn as you go</h3><p>Short lessons on fees, price swings, taxes and keeping it safe.</p></div> |
| 138 | <div class="card"><h3>Team chat</h3><p>Channels for your crew, shout-outs, GIFs and shift swaps. Friendly, not corporate.</p></div> |
| 139 | <div class="card"><h3>Take payment</h3><p>Show a code or tap phones. The customer pays, then rates the visit. No kiosks, no tip screens.</p></div> |
| 140 | <div class="card"><h3>Daily check-in</h3><p>Rate the teammates you worked with today, in under a minute.</p></div> |
| 141 | <div class="card"><h3>Passkey sign-in</h3><p>Your face or fingerprint is your login. No usernames, no passwords.</p></div> |
| 142 | </div> |
| 143 | <p style="margin-top:22px"><a class="btn" href="/app/">Open the team app</a></p> |
| 144 | </div> |
| 145 | <div class="photo"><img src="/img/payday.webp" width="1536" height="1024" alt="A plumber sitting on the tailgate of a work truck at sunset, smiling at his phone" loading="lazy"></div> |
| 146 | </div></section> |
| 147 | |
| 148 | <section class="sec"><div class="wrap split"> |
| 149 | <div class="photo"><img src="/img/crew.webp" width="1536" height="1024" alt="A home-repair crew of four having a cheerful morning huddle beside a service van" loading="lazy"></div> |
| 150 | <div> |
| 151 | <p class="eyebrow">Fair pay. No tipping.</p> |
| 152 | <h2>One policy, every company.</h2> |
| 153 | <p class="sub">Every company that pays through Paywell follows the same promise: part-time roles paid by the hour, as much or as little as each person wants up to 39 hours a week, days off whenever they want, a guaranteed wage, daily performance bonuses, paid out automatically funded by the company, and no tips asked for or accepted. Customers never see a tip prompt.</p> |
| 154 | <p><a class="btn o" href="/fair-pay/">Read the fair pay policy</a></p> |
| 155 | </div> |
| 156 | </div></section> |
| 157 | |
| 158 | <section class="sec"><div class="wrap"> |
| 159 | <div class="callout"><b>Where things stand.</b> The team app works today in test mode: start a team, invite teammates, check in, send rating links, take test payments and chat. It uses Bitcoin’s test network, so the coins have no value. Real wages and bonuses will go through a licensed payroll provider, and no real money moves through Paywell until every legal and tax check is done. Everything we build is open for anyone to copy: <a href="/open/">see the code</a>.</div> |
| 160 | </div></section> |
| 161 | ''' + FOOT) |
| 162 | |
| 163 | # ---------------- How it works ---------------- |
| 164 | write("how-it-works/index.html", head("/how-it-works/", "How Paywell works | Wages, bonuses and ratings", "How Paywell pays a guaranteed wage plus a daily Bitcoin bonus based on customer reviews, peer reviews and one of three tiers, and how reviews are checked, disputed and protected from fraud.") + f'''<div class="wrap"> |
| 165 | <section class="hero" style="padding-bottom:40px"> |
| 166 | <div> |
| 167 | <p class="eyebrow">How it works</p> |
| 168 | <h1 class="sm">Simple rules, written down.</h1> |
| 169 | <p class="lede">Here is exactly how pay, bonuses and ratings fit together, and how we keep the system fair for team members and customers.</p> |
| 170 | </div> |
| 171 | <div class="art"><img src="/img/crew.webp" width="1536" height="1024" alt="A home-repair crew having a morning huddle beside a service van"></div> |
| 172 | </section> |
| 173 | </div> |
| 174 | |
| 175 | <section class="sec"><div class="wrap prose"> |
| 176 | <h2 id="pay">1. Your pay</h2> |
| 177 | <p>Your pay has two parts. The wage is fixed. The Bitcoin bonus grows with your reviews and your tier.</p> |
| 178 | ''' + DIAGRAM + ''' |
| 179 | <table class="t"> |
| 180 | <tr><th>Part</th><th>How it’s paid</th><th>Can reviews change it?</th></tr> |
| 181 | <tr><td><b>Guaranteed wage</b></td><td>Hourly, in U.S. dollars, through regular payroll with normal tax withholding. At or above the legal minimum wage where you work, plus overtime as the law requires. Paid on the same payday every time.</td><td>Never. Base pay and payday never depend on ratings.</td></tr> |
| 182 | <tr><td><b>Daily Bitcoin bonus</b></td><td>Your score × your tier’s bonus shares × the value of one share, set by your company and shown to the team. Paid automatically every day in Bitcoin to your wallet, shown in dollars.</td><td>Only today’s bonus, before it’s paid. It never goes below zero.</td></tr> |
| 183 | </table> |
| 184 | <p>Bonuses are wages too. They show on your pay stub at their dollar value on the day they’re paid, and taxes are withheld and reported the same way as the rest of your pay. If you work overtime, these bonuses are counted in your regular rate, so your overtime pay goes up with them, as federal law requires.</p> |
| 185 | |
| 186 | <h2 id="score">2. Your score: customers and teammates</h2> |
| 187 | <p>Your score runs from 0 to 100 and uses recent reviews and updates every day, so one bad day can’t sink it.</p> |
| 188 | <table class="t"> |
| 189 | <tr><th>Part of your score</th><th>Where it comes from</th><th>Weight</th></tr> |
| 190 | <tr><td><b>Customer reviews</b></td><td>After each visit, the customer can give 1 to 5 stars through a one-time link. No app, no account, no tip.</td><td>60%</td></tr> |
| 191 | <tr><td><b>Peer reviews</b></td><td>The daily check-in: at the end of each shift, teammates who worked with you give 1 to 5 stars on teamwork, care and reliability, with an optional note.</td><td>40%</td></tr> |
| 192 | </table> |
| 193 | <p>Five stars counts as 100 and one star counts as 0. Customer reviews of 1 or 2 stars count only after they’re checked. No new reviews? Your score stays where it was. A missing check-in is never counted as a yes or a no.</p> |
| 194 | <ul> |
| 195 | <li><b>Peer reviews are private.</b> You see the stars and notes, not who wrote them. Nobody on the team can see who wrote what, and nobody outside your company ever sees them.</li> |
| 196 | <li><b>One check-in per teammate per day.</b> You can’t review yourself, and trading five-star reviews or ganging up on someone is flagged and removed.</li> |
| 197 | </ul> |
| 198 | <div class="callout"><b>Example.</b> Maya’s customers gave her 4.8 stars on average (that’s 95) and her teammates 4.6 stars (that’s 90). Her score is 95 × 60% + 90 × 40% = 93. She’s a Builder (tier 2), so her bonus today is 93% of 1½ shares.</div> |
| 199 | |
| 200 | <h2 id="tiers">3. Three tiers</h2> |
| 201 | <p>There are only three tiers. Your tier sets how many bonus shares you get each day.</p> |
| 202 | ''' + RANKS_HTML + ''' |
| 203 | <ul> |
| 204 | <li><b>Moving up</b> is reviewed every three months. It looks at your score over that time and at what your teammates say.</li> |
| 205 | <li><b>Moving down</b> only happens after a full three months of low scores, with written notice first and the right to dispute it.</li> |
| 206 | <li>Your tier never lowers your wage.</li> |
| 207 | </ul> |
| 208 | |
| 209 | <h2 id="safeguards">4. Safeguards for team members</h2> |
| 210 | <div class="never"> |
| 211 | <div>No cut to hourly wages</div><div>No cut to earned pay</div><div>No cut to wallet balances</div><div>No clawback of paid bonuses</div> |
| 212 | </div> |
| 213 | <ul> |
| 214 | <li><b>Low ratings are checked first.</b> A 1 or 2 star rating is held for review before it counts. The reviewer looks at the visit record and any note from the customer.</li> |
| 215 | <li><b>You see every rating.</b> Each one shows in your app with the date, the visit and any comment. Customer contact details stay private.</li> |
| 216 | <li><b>Things outside your control don’t count against you.</b> Prices, wait times caused by scheduling, weather and company policies are filtered out.</li> |
| 217 | <li><b>Ratings only follow the law.</b> Where local law limits how bonuses can change, the stricter rule wins, and a low rating simply won’t lower anything.</li> |
| 218 | </ul> |
| 219 | |
| 220 | <h2 id="disputes">5. Disputing a review</h2> |
| 221 | <div class="split top" style="gap:28px"> |
| 222 | <ol class="steps"> |
| 223 | <li><b>Tap “Dispute”</b><span>Any rating in your app, within 14 days. Say what happened in your own words.</span></li> |
| 224 | <li><b>The rating is paused</b><span>A disputed rating has no effect on your bonus while it’s reviewed.</span></li> |
| 225 | <li><b>Someone fair reviews it</b><span>A trained reviewer outside your own team, never someone from your own team.</span></li> |
| 226 | <li><b>Decision in 5 business days</b><span>You get the reason in writing. If it’s unclear, you win.</span></li> |
| 227 | </ol> |
| 228 | <div class="photo"><img src="/img/dispute.webp" width="1536" height="1024" alt="Two coworkers talking calmly at a break room table" loading="lazy"></div> |
| 229 | </div> |
| 230 | <p>Disputes never count against you, and nobody can be punished for raising one. You can also ask for a second review by a different person.</p> |
| 231 | |
| 232 | <h2 id="fraud">6. Keeping reviews honest</h2> |
| 233 | <div class="photo" style="margin:14px 0 18px"><img src="/img/takepay.webp" width="1536" height="1024" alt="A florist showing a code on her phone to a customer who scans it with his own phone" loading="lazy"></div> |
| 234 | <ul> |
| 235 | <li><b>One visit, one link.</b> Each rating link is signed, tied to one real completed visit, works once, and expires after 14 days.</li> |
| 236 | <li><b>Links go to the customer.</b> Links are printed on the receipt, sent to the contact the customer gave, or shown to them once as a code at the end of the visit. A team member can’t rate their own visit, and a link can’t be used twice.</li> |
| 237 | <li><b>Unusual patterns are flagged.</b> Bursts of ratings, many ratings from one device, or ratings from people connected to the team member are set aside for review.</li> |
| 238 | <li><b>Nobody can edit a rating.</b> Not anyone on the team. Every change, review and decision is logged.</li> |
| 239 | <li><b>No personal tracking.</b> We don’t use ad trackers. Rating pages keep only what’s needed to check the rating.</li> |
| 240 | </ul> |
| 241 | |
| 242 | <h2 id="wallet">7. Your wallet, your choice</h2> |
| 243 | <div class="photo" style="margin:14px 0 18px"><img src="/img/keys.webp" width="1536" height="1024" alt="A person unlocking a phone with their face at a bus stop in the morning" loading="lazy"></div> |
| 244 | <p>When you sign up, you choose where your Bitcoin goes: <b>we create a wallet for you</b> with your account (your passkey locks its backup, nothing to write down), or <b>you paste the address of a wallet you already have</b> and bonuses go straight there. You can switch any time.</p> |
| 245 | <p>Bonuses paid to your Paywell wallet land in the app. You can keep them there, send them to another wallet you control, spend them where Bitcoin is accepted, or turn them into dollars through a licensed provider. It works the other way too: if you’d like, you can choose to turn some of your own dollars into Bitcoin after payday, through a licensed provider, always your choice and never required. <a href="/learn/">Learn the basics</a> before you move anything.</p> |
| 246 | <p><b>Your keys, not ours.</b> A wallet we make for you is opened only by your passkey. We keep a locked backup we cannot open, so we can never move your coins, and neither can anyone who breaks into our servers.</p> |
| 247 | </div></section> |
| 248 | ''' + FOOT) |
| 249 | |
| 250 | # ---------------- Fair pay ---------------- |
| 251 | write("fair-pay/index.html", head("/fair-pay/", "Fair pay. No tipping. | Paywell", "The fair pay policy every Paywell company follows: part-time roles, a guaranteed wage, daily company-funded Bitcoin bonuses, paid out automatically, and no tips.") + f'''<div class="wrap"> |
| 252 | <section class="hero" style="padding-bottom:40px"> |
| 253 | <div> |
| 254 | <p class="eyebrow">Our employment policy</p> |
| 255 | <h1 class="sm">Fair pay. No tipping.</h1> |
| 256 | <p class="lede">The same promise at every company that pays through Paywell. Good work is rewarded by the company, never by asking customers for more.</p> |
| 257 | </div> |
| 258 | <div class="art"><img src="/img/payday.webp" width="1536" height="1024" alt="A plumber smiling at his phone on the tailgate of his truck"></div> |
| 259 | </section> |
| 260 | </div> |
| 261 | <section class="sec"><div class="wrap prose"> |
| 262 | <h2>The policy</h2> |
| 263 | <div class="never yes"> |
| 264 | <div>Part-time, paid hourly</div><div>Work as much or as little as you want</div><div>Days off whenever you want</div><div>A guaranteed wage</div><div>Daily Bitcoin bonuses</div><div>Rewards paid by the company</div><div>Thanks through ratings</div> |
| 265 | </div> |
| 266 | <ol class="steps"> |
| 267 | <li><b>Part-time roles.</b><span>Every role is part-time and paid by the hour. Team members work as much or as little as they want, up to 39 hours a week, and take days off whenever they want.</span></li> |
| 268 | <li><b>A guaranteed wage.</b><span>Every team member gets a steady hourly wage that meets or beats every wage law where they work, paid through normal payroll.</span></li> |
| 269 | <li><b>Daily Bitcoin bonuses.</b><span>On top of that wage, team members get a bonus every day, paid out automatically, shown in dollars and paid in Bitcoin. It grows with customer reviews, peer reviews and tier (there are three).</span></li> |
| 270 | <li><b>No tips.</b><span>Team members don’t ask for or accept tips. Customers never see a tip jar, tip line or tip screen.</span></li> |
| 271 | <li><b>Thanks without spending.</b><span>Customers who loved the service can leave a rating. Great ratings raise that person’s bonus.</span></li> |
| 272 | <li><b>The company pays the reward.</b><span>Every bonus comes from the company. Customers never pay extra for good service.</span></li> |
| 273 | <li><b>Holistic health care.</b><span>Team members get their health care through the holistic clinics we work with. Care outside those clinics is not covered.</span></li> |
| 274 | </ol> |
| 275 | <h2>What it means for customers</h2> |
| 276 | <p>The price you see is the whole price. Nobody will hand you a screen asking for 20%. If someone did a great job, a quick rating is the best way to thank them, and it costs you nothing.</p> |
| 277 | <h2>What it means for team members</h2> |
| 278 | <p>You know what you’ll earn before the week starts. Great days earn more. Hard days never take away what you’re owed. You can always dispute a rating, and you can always see how your bonus was worked out. <a href="/how-it-works/">See the full rules</a>.</p> |
| 279 | <h2>Bonuses and taxes</h2> |
| 280 | <p>Bonuses are part of your pay. They are reported at their dollar value when paid, and taxes are withheld the same way as your wage, so there are no surprises at tax time.</p> |
| 281 | <h2>New to Bitcoin?</h2> |
| 282 | <p>Read <a href="/learn/">Bitcoin basics</a>: what it is, how to keep it safe, how to turn it into dollars, and what fees, price swings and taxes mean for you.</p> |
| 283 | </div></section> |
| 284 | ''' + FOOT) |
| 285 | |
| 286 | # ---------------- Learn ---------------- |
| 287 | lessons = [ |
| 288 | ("hold", "Hold Bitcoin without a bank", "Bitcoin lives in a wallet, not a bank account. Your Paywell wallet works on your phone. You don’t need a bank account to receive your bonus or to keep it.", |
| 289 | "<p>A wallet holds the keys that prove the Bitcoin is yours. Think of it like the key to a safe: whoever has the key can open it. That’s why your Paywell wallet keeps a locked backup, opened only by your passkey.</p>"), |
| 290 | ("send", "Send it to another wallet", "You can move your Bitcoin to any other wallet you control, like a hardware wallet or another app.", |
| 291 | "<p>Every wallet has an address, a long string of letters and numbers or a QR code. Always copy and paste or scan it, never type it by hand, and send a small test amount first. Bitcoin sent to the wrong address can’t be pulled back.</p><p>Sending uses a network fee. The app shows the fee in dollars before you confirm.</p>"), |
| 292 | ("spend", "Spend it where it’s accepted", "Some shops, websites and services take Bitcoin directly. You scan their code and confirm the amount in dollars.", |
| 293 | "<p>Most places still want dollars, so spending usually means converting first. Spending Bitcoin can count as selling it for tax purposes, so the app keeps a record for you.</p>"), |
| 294 | ("convert", "Turn it into dollars", "Supported providers can convert your Bitcoin into U.S. dollars and send them to a bank account or debit card.", |
| 295 | "<p>The app will show the provider’s rate and fee in dollars before you agree, so you know exactly how many dollars you’ll get. Providers are licensed and may ask you to verify your identity the first time.</p>"), |
| 296 | ] |
| 297 | L = "".join(f'<div class="card" id="{i}"><h3>{t}</h3><p>{p}</p></div>' for i, t, p, _ in lessons) |
| 298 | LD = "".join(f'<h3>{t}</h3>{d}' for i, t, p, d in lessons) |
| 299 | write("learn/index.html", head("/learn/", "Bitcoin basics | Paywell", "Plain-English Bitcoin basics for team members: holding, sending, spending and converting Bitcoin, plus fees, price swings, taxes, wallet security and passkey-locked backups.") + f'''<div class="wrap"> |
| 300 | <section class="hero" style="padding-bottom:40px"> |
| 301 | <div> |
| 302 | <p class="eyebrow">Bitcoin basics</p> |
| 303 | <h1 class="sm">What your bonus is, and what you can do with it.</h1> |
| 304 | <p class="lede">Plain English, no hype. Your bonus is paid in Bitcoin and always shown in dollars. Here’s what that means for you.</p> |
| 305 | </div> |
| 306 | <div class="art"><img src="/img/learn.webp" width="1536" height="1024" alt="A young woman at a kitchen table carefully writing on a small paper card"></div> |
| 307 | </section> |
| 308 | </div> |
| 309 | <section class="sec"><div class="wrap"> |
| 310 | <h2>Four things you can do</h2> |
| 311 | <p class="sub">It’s your money. You choose what happens to it.</p> |
| 312 | <div class="cards">{L}</div> |
| 313 | </div></section> |
| 314 | <section class="sec"><div class="wrap prose"> |
| 315 | {LD} |
| 316 | <h2 id="fees">Fees</h2> |
| 317 | <p>Moving Bitcoin isn’t free. Sending it pays a network fee that changes with how busy the network is. Converting it to dollars usually has a provider fee or a spread. Paywell always shows the full cost in dollars before you confirm. Paying your bonus into your wallet costs you nothing.</p> |
| 318 | <h2 id="volatility">Price swings</h2> |
| 319 | <p>Bitcoin’s price in dollars moves up and down, sometimes a lot in a single day. A bonus worth $100 today could be worth more or less next week. That’s why the app shows today’s dollar value first. If you need that money for rent or bills, you can turn it into dollars soon after it arrives. Holding Bitcoin is your choice, not a requirement, and we’ll never push you to trade.</p> |
| 320 | <div class="callout warn"><b>Good rule of thumb:</b> don’t hold more in Bitcoin than you could handle seeing drop by half. Keep money for bills in dollars.</div> |
| 321 | <h2 id="taxes">Taxes</h2> |
| 322 | <ul> |
| 323 | <li><b>When you get it:</b> your bonus is taxable pay at its dollar value on the day it’s paid. It shows on your pay stub and your year-end tax form, and taxes are withheld for you.</li> |
| 324 | <li><b>When you sell, spend or convert it:</b> if the price went up since you got it, the gain may be taxable. If it went down, you may have a loss.</li> |
| 325 | <li><b>Records:</b> the app keeps the date and dollar value of everything that comes in and goes out, so you or your tax preparer have what you need.</li> |
| 326 | </ul> |
| 327 | <p class="small">This is general information, not tax advice. Rules differ by state and change over time.</p> |
| 328 | <h2 id="security">Keeping your wallet safe</h2> |
| 329 | <div class="split top" style="gap:28px"> |
| 330 | <ul> |
| 331 | <li>Lock the app with your phone’s face, fingerprint or passcode.</li> |
| 332 | <li>Sign in with your passkey (your face or fingerprint). There’s no password to steal.</li> |
| 333 | <li>Never share a passkey setup link or any recovery words with anyone, including anyone who says they work for us. We will never ask.</li> |
| 334 | <li>Watch out for messages that rush you or promise to double your money. Those are scams.</li> |
| 335 | <li>Check addresses carefully, and send a small test first.</li> |
| 336 | </ul> |
| 337 | <div class="photo"><img src="/img/secure.webp" width="1536" height="1024" alt="A small fireproof box on a shelf holding a folded paper card and a steel plate" loading="lazy"></div> |
| 338 | </div> |
| 339 | <h2 id="recovery">Your backup, locked by your passkey</h2> |
| 340 | <p>Every wallet has secret keys. Most apps make you write down 12 or 24 recovery words and keep them safe forever. With Paywell you don’t have to.</p> |
| 341 | <ul> |
| 342 | <li>When you create your wallet, your phone locks a backup of its keys with your passkey (your face or fingerprint) and stores the locked backup with us.</li> |
| 343 | <li>Only your passkey can open it. We keep a locked box we can’t open, so nobody here can see or move your Bitcoin.</li> |
| 344 | <li>Your passkey syncs through your phone’s password manager. On a new phone, sign in with it and your wallet comes back.</li> |
| 345 | <li>Keep your phone’s password manager account safe, and add a second device you trust, so you never lose your passkey.</li> |
| 346 | </ul> |
| 347 | <p>Moving from another wallet app? Enter its recovery words once, and from then on your passkey keeps the backup.</p> |
| 348 | <h2>Questions?</h2> |
| 349 | <p>The team app has short lessons on each of these, and you can ask your own AI assistant to explain anything here in more detail.</p> |
| 350 | </div></section> |
| 351 | ''' + FOOT) |
| 352 | |
| 353 | # ---------------- Privacy ---------------- |
| 354 | write("privacy/index.html", head("/privacy/", "Privacy | Paywell", "How Paywell handles information on this site, the rating pages and the team app.") + '''<div class="wrap"><section class="prose" style="padding:24px 0 60px"> |
| 355 | <h1 class="sm">Privacy</h1> |
| 356 | <p>We keep this short because we keep very little.</p> |
| 357 | <h2>This website</h2> |
| 358 | <p>No ad trackers, no analytics scripts and no cookies for tracking. We count page views as a single number per page, with no cookies and no personal details. The site is hosted on Cloudflare, which keeps standard server logs for security.</p> |
| 359 | <h2>Rating pages</h2> |
| 360 | <p>When you rate a visit we keep the rating, any note you write, the visit it belongs to, and the time. We use basic signals such as how many ratings come from one network to stop fraud, and we don’t sell or share them. Team members see your rating and note, never your contact details.</p> |
| 361 | <h2>Team app</h2> |
| 362 | <p>Team chat messages are visible to your company’s team and kept until they’re deleted. Sign-in uses passkeys, so we never hold a password; your face or fingerprint never leaves your device.</p> |
| 363 | <p>For team members we keep what’s needed to pay you correctly and follow the law: pay records, bonus records, ratings, disputes, wallet activity and tax records. Payroll and money conversion are handled by licensed partners who follow their own privacy rules. Your wallet backup is locked on your phone with your passkey before it reaches us. We store it but can’t open it, and only you can get it back.</p> |
| 364 | <h2>Careers requests</h2> |
| 365 | <p>If you send a request on our Careers page, we keep your message so we can reply.</p> |
| 366 | <h2>Your choices</h2> |
| 367 | <p>You can ask us to show you, correct or delete what we hold about you, except records the law requires us to keep, such as pay and tax records.</p> |
| 368 | </section></div> |
| 369 | ''' + FOOT) |
| 370 | |
| 371 | # ---------------- Careers ---------------- |
| 372 | write("careers/index.html", head("/careers/", "Careers | Paywell", "Careers at Paywell. Send us a short request to work with us.", '<link rel="stylesheet" href="/careers/careers.css">\n') + '''<div class="cr"> |
| 373 | <h1>Careers</h1> |
| 374 | <p>We’re always glad to hear from people who want to build with us. Tell us what kind of work you’d like to do and how we can reach you.</p> |
| 375 | <p class="cr-bonus">All our roles are part-time and paid by the hour. Work as much or as little as you want, up to 39 hours a week, and take days off whenever you want. Team members get a Bitcoin bonus every day, paid out automatically, that grows with performance, and get their health care through the holistic clinics we work with. Care outside those clinics is not covered.</p> |
| 376 | <form id="cr-form" novalidate> |
| 377 | <label for="cr-request">Your request</label> |
| 378 | <textarea id="cr-request" name="request" required maxlength="4000" placeholder="What work would you like to do with us? Add an email or phone number so we can reply."></textarea> |
| 379 | <div class="cr-hp" aria-hidden="true"><label>Leave this empty <input name="website" tabindex="-1" autocomplete="off"></label></div> |
| 380 | <button type="submit">Send request</button> |
| 381 | <p id="cr-msg" class="cr-msg" role="status" aria-live="polite"></p> |
| 382 | </form> |
| 383 | </div> |
| 384 | <script src="/careers/careers.js" defer></script> |
| 385 | ''' + FOOT) |
| 386 | |
| 387 | # ---------------- 404 ---------------- |
| 388 | write("404.html", head("/404", "Page not found | Paywell", "This page doesn’t exist.") + '''<div class="wrap"><section style="padding:60px 0 90px"><h1 class="sm">We couldn’t find that page.</h1><p class="lede">If you were trying to rate a visit, check the link on your receipt, text or email, or enter your code.</p><div class="btns"><a class="btn" href="/rate/">Rate a visit</a><a class="btn o" href="/">Home</a></div></section></div> |
| 389 | ''' + FOOT) |
| 390 | |
| 391 | # ---------------- Rate ---------------- |
| 392 | write("rate/index.html", head("/rate/", "Rate your visit | Paywell", "Rate a visit in seconds. No app, no account, no tip. Great ratings raise the team member’s bonus, paid by the company.", '<meta name="robots" content="noindex">\n<link rel="stylesheet" href="/assets/rate.css">\n') + """<div class="wrap rate"> |
| 393 | <section id="r-start"> |
| 394 | <p class="eyebrow">Rate your visit</p> |
| 395 | <h1 class="sm">Say thanks in ten seconds.</h1> |
| 396 | <p class="lede">No app, no account and no tip. Your rating is the thank-you.</p> |
| 397 | <div id="r-loading" class="callout" hidden>Checking your link…</div> |
| 398 | <div id="r-err" class="callout warn" role="alert" hidden></div> |
| 399 | <form id="r-code" class="r-codeform"> |
| 400 | <label for="r-code-in">Enter the code from your receipt</label> |
| 401 | <div class="r-row"><input id="r-code-in" name="code" autocomplete="off" autocapitalize="characters" inputmode="text" placeholder="K7Q2-M9XA" maxlength="40"><button class="btn" type="submit">Continue</button></div> |
| 402 | <p class="small">Or scan the QR code on your receipt, or tap the link in your text or email.</p> |
| 403 | </form> |
| 404 | <p id="r-sample-wrap"><button id="r-sample" class="btn o" type="button">Try a sample visit</button></p> |
| 405 | </section> |
| 406 | |
| 407 | <section id="r-form-wrap" hidden> |
| 408 | <p class="r-sample-badge" id="r-test" hidden>Sample visit. Nothing is recorded.</p> |
| 409 | <p class="eyebrow" id="r-where"></p> |
| 410 | <h1 class="sm" id="r-q">How was your visit?</h1> |
| 411 | <form id="r-form"> |
| 412 | <fieldset class="stars"><legend class="small">Tap a rating</legend> |
| 413 | <div class="r-stars" role="radiogroup"> |
| 414 | <label><input type="radio" name="stars" value="5"><span><b>★★★★★</b>Great</span></label> |
| 415 | <label><input type="radio" name="stars" value="4"><span><b>★★★★</b>Good</span></label> |
| 416 | <label><input type="radio" name="stars" value="3"><span><b>★★★</b>Okay</span></label> |
| 417 | <label><input type="radio" name="stars" value="2"><span><b>★★</b>Not good</span></label> |
| 418 | <label><input type="radio" name="stars" value="1"><span><b>★</b>Poor</span></label> |
| 419 | </div></fieldset> |
| 420 | <label for="r-note" class="r-notelabel">Anything you’d like to add? <span class="small">(optional)</span></label> |
| 421 | <textarea id="r-note" name="note" maxlength="1000" rows="3" placeholder="What stood out?"></textarea> |
| 422 | <div class="r-hp" aria-hidden="true"><label>Leave empty <input name="website" tabindex="-1" autocomplete="off"></label></div> |
| 423 | <button class="btn r-send" type="submit">Send rating</button> |
| 424 | <p id="r-ferr" class="r-ferr" role="alert"></p> |
| 425 | </form> |
| 426 | <p class="small">Your rating and note go to the team. Your contact details never do. <a href="/privacy/">Privacy</a></p> |
| 427 | </section> |
| 428 | |
| 429 | <section id="r-done" hidden> |
| 430 | <h1 class="sm" id="r-done-h">Thank you!</h1> |
| 431 | <p class="lede" id="r-done-p"></p> |
| 432 | <div class="callout" id="r-done-test" hidden>This was a sample, so nothing was recorded. When Paywell opens, the link on your receipt, text or email works the same way.</div> |
| 433 | <p class="small" style="margin-top:20px">Ratings never lower anyone’s wage, earned pay or savings. <a href="/how-it-works/#safeguards">How ratings work</a></p> |
| 434 | </section> |
| 435 | |
| 436 | <section class="sec r-how"> |
| 437 | <div class="cards"> |
| 438 | <div class="card"><h3>No tip, ever</h3><p>The price you paid is the whole price. Great service is rewarded by the company.</p></div> |
| 439 | <div class="card"><h3>Great ratings help</h3><p>A 4 or 5 star rating raises that person’s daily bonus right away.</p></div> |
| 440 | <div class="card"><h3>Low ratings are checked</h3><p>A 1 or 2 star rating is reviewed first, and the team member can respond.</p></div> |
| 441 | </div> |
| 442 | </section> |
| 443 | </div> |
| 444 | <script src="/assets/rate.js" defer></script> |
| 445 | """ + FOOT) |
| 446 | |
| 447 | # ---------------- Team app ---------------- |
| 448 | write("app/index.html", head("/app/", "Team app | Paywell", "The Paywell team app: start a team, sign in with a passkey, check in on teammates, send rating links, take payment, hold a Bitcoin wallet and chat. Test mode: test coins only.", '<link rel="stylesheet" href="/app/app.css">\n<meta name="apple-mobile-web-app-capable" content="yes">\n') + """<div class="wrap"> |
| 449 | <div class="app-intro"> |
| 450 | <div><p class="eyebrow">Team app · test mode</p><h1 class="sm">Your pay, in plain dollars.</h1> |
| 451 | <p class="lede">Start a test team, add your teammates, and use every part of Paywell: daily check-ins, customer rating links, taking payment, your own Bitcoin wallet and team chat. It all runs here on the web, on any phone or computer. Test mode uses test coins, and no real money moves.</p></div> |
| 452 | </div> |
| 453 | <div class="app out" id="app"> |
| 454 | <nav class="tabs" aria-label="Team app"> |
| 455 | <button data-tab="home" aria-current="page">Home</button><button data-tab="checkin">Check-in</button><button data-tab="ratings">Ratings</button><button data-tab="take">Take payment</button><button data-tab="wallet">Wallet</button><button data-tab="chat">Team chat</button><button data-tab="team">Team</button><button data-tab="security">Security</button> |
| 456 | </nav> |
| 457 | <div class="panel" id="panel" tabindex="-1" aria-live="polite"><p class="small center">Loading…</p></div> |
| 458 | </div> |
| 459 | <p class="small" style="margin:18px 0 40px">Sign-in is a passkey only: your face, fingerprint or screen lock. No passwords. The wallet runs on Bitcoin’s test network (signet), and its backup is locked by your passkey so we can never open it. All of this code is open: see <a href="/open/">Open code</a>.</p> |
| 460 | </div> |
| 461 | <script src="/app/wallet.js" defer></script> |
| 462 | <script src="/app/app.js" defer></script> |
| 463 | """ + FOOT) |
| 464 | |
| 465 | # ---------------- Open code ---------------- |
| 466 | import shutil |
| 467 | GH = "https://github.com/projectatomai/hosting-research/blob/main/" |
| 468 | SRC = [ |
| 469 | ("domain-sites/functions/paywell-app.js", "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."), |
| 470 | ("domain-sites/functions/paywell-api.js", "paywell-api.js", "Customer rating links (signed, one use, 14 days) and the wallet vault that stores a passkey-locked backup we cannot open."), |
| 471 | ("tools/paywell-gen/schema.sql", "schema.sql", "The whole database: teams, people, passkeys, sessions, check-ins, ratings, chat, vault."), |
| 472 | ("domain-sites/paywell.company/app/app.js", "app.js", "The team app in the browser: screens, passkeys, wallet lock (PRF + HKDF + AES-GCM), check-ins, payments, chat."), |
| 473 | ("tools/paywell-gen/app-src/wallet-src.js", "wallet-src.js", "The wallet: BIP39 words, BIP84 addresses, building and signing payments, QR codes. Built with audited open libraries (@scure)."), |
| 474 | ("domain-sites/paywell.company/assets/rate.js", "rate.js", "The customer rating page."), |
| 475 | ("tools/paywell-gen/bonus_diagram.html", "bonus_diagram.html", "The daily bonus diagram used on this site and on every brand’s fair pay page."), |
| 476 | ("tools/paywell-gen/logo.svg", "logo.svg", "Our logo: a gold coin with a rating star, over a smile."), |
| 477 | ("tools/paywell-gen/build.py", "build.py", "Builds every page of this website."), |
| 478 | ] |
| 479 | REPO = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..") |
| 480 | os.makedirs(os.path.join(ROOT, "open", "src"), exist_ok=True) |
| 481 | for rel, name, _ in SRC: |
| 482 | shutil.copyfile(os.path.join(REPO, rel), os.path.join(ROOT, "open", "src", name + ".txt")) |
| 483 | rows = "".join(f'<tr><td><b>{html.escape(n)}</b></td><td>{html.escape(d)}</td><td><a href="/open/src/{n}.txt">Read it here</a> · <a href="{GH}{r}">Source</a></td></tr>' for r, n, d in SRC) |
| 484 | write("open/index.html", head("/open/", "Open code | Paywell", "All of Paywell is open: the team app, the server, the database, the wallet, the rating links, the logo and the pay model. Copy any of it, free, no permission needed.") + f'''<div class="wrap"> |
| 485 | <section class="hero"> |
| 486 | <div> |
| 487 | <p class="eyebrow">Open code</p> |
| 488 | <h1>Take it. It’s yours too.</h1> |
| 489 | <p class="lede">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.</p> |
| 490 | <div class="btns"><a class="btn" href="https://github.com/projectatomai/hosting-research">See it all on GitHub</a><a class="btn o" href="/research/">Read the research</a></div> |
| 491 | </div> |
| 492 | <div class="art"><img src="/img/open.webp" width="1536" height="1024" alt="A laptop on a workbench showing code beside a notebook with a hand-drawn diagram of the bonus formula" loading="lazy"></div> |
| 493 | </section> |
| 494 | </div> |
| 495 | |
| 496 | <section class="sec"><div class="wrap prose"> |
| 497 | <h2>What’s open</h2> |
| 498 | <div class="scroll"><table class="t"> |
| 499 | <tr><th>File</th><th>What it does</th><th>Get it</th></tr> |
| 500 | {rows} |
| 501 | </table></div> |
| 502 | <p>Everything is dedicated to the public domain (CC0 for words and pictures, the Unlicense for code). You don’t need to credit us.</p> |
| 503 | |
| 504 | <h2>How it fits together</h2> |
| 505 | <ol class="steps"> |
| 506 | <li><b>A website, nothing to install</b><span>The 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.</span></li> |
| 507 | <li><b>Passkeys only</b><span>Sign-in uses WebAuthn passkeys: your face, fingerprint or screen lock. There are no passwords to steal. Our server checks every passkey signature itself.</span></li> |
| 508 | <li><b>A small database</b><span>One SQLite database (Cloudflare D1) holds teams, people, check-ins, ratings and chat. Sessions are stored only as a fingerprint (hash) of the token.</span></li> |
| 509 | <li><b>A wallet we can’t open</b><span>The 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.</span></li> |
| 510 | <li><b>Signed rating links</b><span>Each visit gets a link signed by the server (HMAC-SHA256). It works once, for 14 days, and can’t be faked or reused.</span></li> |
| 511 | <li><b>The math is public</b><span>Score = 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.</span></li> |
| 512 | </ol> |
| 513 | |
| 514 | <h2>Run your own copy</h2> |
| 515 | <ol> |
| 516 | <li>Copy the <code>domain-sites</code> folder and the <code>tools/paywell-gen</code> folder from the repository.</li> |
| 517 | <li>Create a D1 database and load <code>schema.sql</code> into it.</li> |
| 518 | <li>Deploy to Cloudflare Pages with that database bound as <code>PAYWELL_DB</code>.</li> |
| 519 | <li>Change the domain name in <code>paywell-app.js</code> (it’s the passkey website ID), and you have your own Paywell.</li> |
| 520 | </ol> |
| 521 | <div class="callout"><b>Before real money moves.</b> 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 <a href="/research/">research page</a> lists the sources.</div> |
| 522 | </div></section> |
| 523 | ''' + FOOT) |
| 524 | |
| 525 | # ---------------- Pay (opened by an NFC tap or QR from a Paywell phone) ---------------- |
| 526 | write("pay/index.html", head("/pay/", "Pay | Paywell", "Pay with Bitcoin by tapping phones. Shown in dollars.", '<meta name="robots" content="noindex">\n<link rel="stylesheet" href="/assets/rate.css">\n') + """<div class="wrap rate"> |
| 527 | <p class="status">Test mode: test coins only, no real value.</p> |
| 528 | <section id="p-none"><h1 class="sm">Pay by tapping phones</h1><p class="lede">Hold your phone to a Paywell phone, or scan its code. This page opens with the payment ready.</p></section> |
| 529 | <section id="p-req" hidden> |
| 530 | <p class="eyebrow">Payment request</p> |
| 531 | <h1 class="sm" id="p-usd"></h1> |
| 532 | <p class="lede" id="p-for"></p> |
| 533 | <p class="small" id="p-btc"></p> |
| 534 | <div class="btns"><a class="btn" id="p-open" href="#">Pay in my Bitcoin wallet</a><button class="btn o" id="p-copy" type="button">Copy address</button></div> |
| 535 | <p class="small" style="margin-top:14px">The Paywell app pays with one tap and your face or fingerprint. Any Bitcoin wallet works too.</p> |
| 536 | <div id="p-rate" hidden class="callout" style="margin-top:28px"><b>After you pay:</b> how was your visit? No tip. A great rating raises their bonus, and the company pays it.<p style="margin:14px 0 0"><a class="btn" id="p-rate-a" href="#">Rate your visit</a></p></div> |
| 537 | </section> |
| 538 | </div> |
| 539 | <script src="/assets/pay.js" defer></script> |
| 540 | """ + FOOT) |
| 541 | |
| 542 | pages = ["/", "/how-it-works/", "/fair-pay/", "/learn/", "/rate/", "/app/", "/open/", "/research/", "/careers/", "/privacy/"] |
| 543 | write("sitemap.xml", '<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n' + "".join(f"<url><loc>{D}{p}</loc></url>\n" for p in pages) + "</urlset>\n") |
| 544 | write("robots.txt", "User-agent: *\nAllow: /\nDisallow: /r/\nSitemap: https://paywell.company/sitemap.xml\n") |
| 545 | write("llms.txt", """# Paywell |
| 546 | > Paywell is an open pay and customer-ratings platform, working today in test mode. Team members get a guaranteed wage through normal payroll, a daily company-funded Bitcoin bonus, paid out automatically always shown in U.S. dollars, that grows with customer reviews (60%), peer reviews (40%) and tier (three tiers). Customers rate visits through a one-time link (receipt QR code, text or email) with no app, no account and no tip. |
| 547 | |
| 548 | - [How it works](https://paywell.company/how-it-works/): pay parts, score, three tiers, safeguards, disputes, fraud checks |
| 549 | - [Fair pay. No tipping.](https://paywell.company/fair-pay/): the employment policy every Paywell company follows |
| 550 | - [Bitcoin basics](https://paywell.company/learn/): holding, sending, spending, converting, fees, price swings, taxes, security, passkey-locked wallet backup |
| 551 | - [Rate a visit](https://paywell.company/rate/): customer rating page |
| 552 | - [Team app](https://paywell.company/app/): working test-mode app: passkeys, teams, daily check-ins, rating links, take payment, test-network wallet, chat |
| 553 | - [Open code](https://paywell.company/open/): all source code, database, logo and pay model, public domain |
| 554 | - [Research](https://paywell.company/research/): sources and the full operating model |
| 555 | |
| 556 | Ratings never lower wages, earned pay, wallet balances or paid bonuses. Status: test mode; no real money moves yet. |
| 557 | """) |
| 558 | print("built", ROOT) |