|
| 1 | +# Contributing to pages-seo |
| 2 | + |
| 3 | +PRs and issues welcome. The codebase is small and entirely framework-free JavaScript — no React, no build step, no transpiler — so the barrier to a useful patch is low. |
| 4 | + |
| 5 | +## Quick rules |
| 6 | + |
| 7 | +1. **No build step.** Everything in `functions/` and `public/` is read by Cloudflare Pages as-is. No bundlers, no preprocessors, no transpilers. |
| 8 | +2. **No frameworks in the admin SPA.** Vanilla JS only. The dashboard is ~2k lines and that's deliberate — it stays readable for ops people. |
| 9 | +3. **D1 changes go in `schema/init.sql`.** If you add a table or index, append it to that file and mention it in the PR description so existing operators know to run the migration. |
| 10 | +4. **Don't add new dependencies casually.** `package.json` has zero runtime deps — let's keep it that way unless there's a really good reason. |
| 11 | + |
| 12 | +## Local dev |
| 13 | + |
| 14 | +```bash |
| 15 | +git clone https://github.com/Benjamin-Bloch/pages-seo |
| 16 | +cd pages-seo |
| 17 | +npm install -g wrangler && wrangler login |
| 18 | +bash setup.sh # one-time provisioning |
| 19 | +npm run dev # local Pages Functions runtime |
| 20 | +``` |
| 21 | + |
| 22 | +`wrangler dev` proxies your real D1/R2/AI bindings into the local runtime, so you can iterate without redeploying. |
| 23 | + |
| 24 | +## Filing a good issue |
| 25 | + |
| 26 | +- **Bug?** Use the bug template. Include the commit SHA (footer of `/admin`) and any relevant log output. |
| 27 | +- **Feature?** Use the feature template. Lead with the problem, not the solution. |
| 28 | + |
| 29 | +## Style |
| 30 | + |
| 31 | +- Comments are for the **why**, not the what. The code already tells you what. |
| 32 | +- One change per PR. Easier to review, easier to revert. |
| 33 | +- Tabs vs spaces: spaces, two of them. |
| 34 | + |
| 35 | +## Things I'd love help with |
| 36 | + |
| 37 | +- Wider AI-provider coverage (Vertex, Bedrock, Inflection, Perplexity). |
| 38 | +- Better i18n hooks (the prompts are English-only right now). |
| 39 | +- A Webflow / Wix install guide for non-technical operators. |
| 40 | + |
| 41 | +Thanks for being here. |
0 commit comments