CookieGuard
Live demo

CookieGuard, running on this page.

The banner you saw is the real script — not a screenshot. Open DevTools and check the network tab: only one async request, under 12 KB gzipped.

// Anywhere in your app:
window.cookieguard.getConsent('analytics');     // boolean
window.cookieguard.onConsentChange(rec => {
  console.log('user changed consent', rec.choices);
});