Build a consent manager that is technically correct, and be explicit that the legal text is not its job. The README must say, in the first paragraph: this handles consent mechanics; the policy wording must come from a qualified source; nothing here is legal advice. Stack: a small script plus a server with Postgres. A domain with TLS. The rule everything else follows from: **nothing non-essential loads before consent**. Scripts are declared in configuration by category (strictly necessary, preferences, statistics, marketing) and are injected only after consent for that category. Never inject and then try to disable — by then the third party has already seen the visitor's IP address, which is the entire thing consent was supposed to prevent. Banner requirements, each of which is a real obligation in the EU and easy to get wrong: - Reject must be as easy as accept — same level, same prominence, same number of clicks. Write a test asserting the two buttons are siblings with equal weight. - Granular per-category toggles, all off by default except strictly necessary. - No pre-ticked boxes, no dark patterns, no cookie wall. - Withdrawing consent must be as easy as giving it: a persistent, reachable control on every page. Proof of consent: store a record with a random identifier (not an account, not an email), the categories accepted, the timestamp, the banner version and the policy version in force at that moment. Versioning is the part people skip and the part that makes the record meaningful — proof of consent to a policy you can no longer reproduce proves nothing. Keep every version. Re-consent: when the policy version or the script list changes materially, ask again rather than assuming the old consent carries. A visitor-facing page showing their current choices and letting them change or withdraw, reachable without an account. Self-audit: crawl your own pages with a headless browser, once with consent refused, and list every outbound request that happened anyway. That report is the honest test of whether the implementation works, and it usually fails the first time. Write tests for no non-essential request occurring before consent, for equal-prominence buttons, for versioned consent records, and for withdrawal taking effect immediately. Do not generate policy text.