Nine screens. Each one tells you exactly where to click, what to copy and where to paste it. No terminal, no code, no guessing.
Supabase is the free service that holds the accounts, the plans and the page wording. One project is all you need.
Free. Pick the region closest to you.
explication••••••••••••1Europe (London)This creates every table the site needs, fills in the seven plans, and locks all editing to your developer email.
Paste the whole file, then press Run.
create extension if not exists pgcrypto;
create table public.explication_plans ( … );Success. No rows returned.
Students sign in with an email and password. While you are testing, switch confirmation off so you can sign in instantly.
The simplest way in.
emails/auth-emails.html — one paste-ready block per email — with subject lines in emails/auth-emails.txt. Those templates only reach real students once a real sender is connected: that is Make email actually arrive, after step 9.The site needs the project's address and its public key. Nothing secret goes in the browser.
Copy these two. Ignore service_role for ever.
https://abcdefgh.supabase.coeyJhbGciOiJIUzI1NiIs…js/config.js in the Explication Web folder and paste the same two values there.One address gets the console: lucas.owen13@icloud.com. Nobody else, ever.
lucas.owen13@icloud.com••••••••Offline models and students' own keys work without this. This is only if you want to host the big models yourself.
https://openrouter.ai/api/v1qwen/qwen-2.5-7b-instructsk-or-v1-…5Two routes: the PayPal API unlocks purchases automatically; payment links need no keys but one click per sale.
Copy the Client ID and Secret into Supabase secrets.
AeA1…your-client-id••••••••••••6PAYPAL_CLIENT_ID and PAYPAL_CLIENT_SECRET in Supabase → Edge Functions → Secrets 7.
Add a webhook at https://YOUR-PROJECT.supabase.co/functions/v1/paypal-webhook with the six payment events listed in supabase/SETUP.md, then put its Webhook ID into PAYPAL_WEBHOOK_ID.
On the site open Developer → PayPal, paste the Client ID, set Live and PayPal API, and save.
| Product name | Price | Type |
|---|---|---|
| Paragraph Lite | £4.00 | One-off |
| Model Library | £14.00 | One-off |
| Exam Season | £24.00 | One-off |
| AI Booster | £6.00 | One-off |
| Student | £4.00 | Monthly, recurring |
| Scholar | £9.00 | Monthly, recurring |
| Examiner | £19.00 | Monthly, recurring |
With payment links, PayPal takes the money but the site does not hear about it automatically. You approve the buyer by hand — one click.
lucas.owen13@icloud.comStudent · £4.004242 4242 4242 4242, any future date, any CVC. Then on the site open Developer → People, type the buyer's email, pick the plan and press Grant access 8. The plan shows on their Account page immediately.supabase/SETUP.md, step 3. It needs five terminal commands. Everything works without it — you just approve each sale.Any static host works. Supabase stays the backend, so there is nothing to run.
js/config.js in a text editor and paste your Project URL and anon key into the two empty quotes (the same two values from step 4). That is what makes the plans, wording and prices identical for every visitor — without it, each visitor is asked to connect their own project.
Then: upload the dist folder — it is the upload copy of the site, with the Supabase function files left out so hosts do not think a build is needed. On Cloudflare go to Workers & Pages → Create → Upload and deploy; on Netlify drag it onto app.netlify.com/drop. You get an address like explication.netlify.app or explication.you.workers.dev.
Go back to Supabase → Authentication → URL Configuration and add that address to Redirect URLs.
Finally set the same address in the iPhone and Mac apps (see supabase/SETUP.md) so their plan buttons open the right site.
file://) cannot sign in. Always open the site through Start Explication.command or the published address.Supabase's built-in sender only delivers to your own team and allows a couple of messages an hour. Real students need a real sender. Three jobs, three services: Resend sends, Cloudflare receives, Apple Mail reads it.
re_… value. It is shown once.
Six values. Only the sender is yours.
no-reply@yourdomain.comExplicationsmtp.resend.com465resendre_… (your API key)resend, and the password is the API key, not your Resend login.no-reply@yourdomain.com within seconds, and Resend → Emails shows whether it was delivered. Supabase starts you at 30 messages an hour — raise it in Authentication → Rate Limits once it works. The branded templates from step 3 are what gets sent; nothing else to change.
_dmarc and it keeps your mail out of spam folders.hello (or support) → action Send to → your iCloud address → Save.hello@yourdomain.com is forwarded into that iCloud inbox, so it arrives like any other message. Replies go out from your iCloud address unless you do D.
hello@yourdomain.com, and Cloudflare is only DNS. It takes over the MX records, so switch Cloudflare Email Routing off for that domain first — and then part B is not needed at all.hello@yourdomain.com. Then Server Settings → Outgoing Mail Server → Edit SMTP Server List → add smtp.resend.com, port 465, user resend, your API key, TLS on. It sends, but Resend is not a mailbox: there is no Sent folder on a server and the message is logged as app mail. Good enough to answer a student; not a replacement for a real inbox.
| Job | Who does it | Cost |
|---|---|---|
| Send sign-in and password emails | Resend → Supabase custom SMTP | Free to 3,000 a month |
| Receive mail at your domain | Cloudflare Email Routing → forwards to iCloud | Free |
| Read it and reply | Apple Mail, on the iCloud account | Free |
| Reply as your domain, natively | iCloud+ custom domain (replaces Email Routing) | iCloud+ subscription |
re_… key in the website — it belongs only in Supabase's SMTP settings.One table to come back to when you forget.
| What you want to change | Where to click |
|---|---|
| Prices, plan names, wording of a plan | Site → Developer → Plans → Edit |
| Any sentence on any page | Site → Developer → Wording → edit mode, then click the words |
| Model keys and endpoints | Site → Developer → Models & keys |
| Payment links | Site → Developer → Plans → PayPal payment link field |
| Who has a plan | Site → Developer → People |
| PayPal keys (advanced) | Supabase → Edge Functions → Secrets |
| The project address and key | Supabase → Project Settings → API; site → Developer → Supabase |
| Emails students receive | Supabase → Authentication → Emails |
| Which address students see as the sender | Supabase → Authentication → Emails → SMTP Settings |
| Mail sent to hello@yourdomain | Cloudflare → Email → Email Routing |
The four things that actually go wrong.
| Symptom | Fix |
|---|---|
| No developer console in the sidebar | You are signed in as a different email. Sign out, sign in as lucas.owen13@icloud.com. |
| "Supabase could not be reached" | Project URL or anon key pasted wrong. Developer → Supabase → paste again from Project Settings → API. |
| Plans page is empty | Step 2 did not run. Supabase → SQL Editor → paste the file → Run. |
| "This plan has no PayPal payment link yet" | Add the link to that plan in Developer → Plans, or you are in live mode with a test link. |
| Sign-up says "check your email" but nothing arrives | Confirmation is on and Supabase's built-in sender only reaches your own team. Connect Resend (last section), or turn Confirm email off in Authentication → Providers → Email. |