Security and privacy · Edition No. 11 · 5 Sep 2026

orestbida/cookieconsent

Vanilla-JS GDPR consent with real script blocking — the banner that becomes necessary the day analytics goes live.

← Security and privacyRead the whole edition →

5.7k stars · MIT · v3.1.0 (2025-02-04)

Vanilla-JS GDPR consent with real script blocking — the banner that becomes necessary the day analytics goes live.

Repo detailsthe review · specs · pros & cons · install

What it is

A small, dependency-free consent plugin written in plain JavaScript, with categories, per-service toggles, translations and a documented API for blocking scripts until the visitor agrees. Around 30 kB, no framework and no build step required.

Why it matters

PostHog (#8), Umami and any pixel you ever add all write to storage, and the moment one of them goes live on a site with European or UK visitors you need consent captured before the script runs — not a decorative banner that appears after the tracker has already fired, which is what most implementations actually do. The ordering genuinely matters here, which is why it is one of today's three things: install it in the same sitting as your analytics or you carry the exposure for however many weeks it takes you to come back. The bilingual detail is real too — it handles translations natively, so a Russian visitor sees a Russian banner rather than an English one, which is the same argument Edition 4 made about everything else on the site.

Stars5.7k
LicenceMIT
Latestv3.1.0 (2025-02-04)checked 7 Sep 2026
Written inJavaScript
Setup effort
1 / 5
Payoff
3 / 5
Good
  • Vanilla JavaScript — it drops into the Astro site and the React app equally, with nothing to compile.
  • Real script-blocking rather than a cosmetic banner, which is the half most implementations get wrong.
  • Multi-language support built in, so EN and RU are configuration rather than a fork.
Watch for
  • Seven months since v3.1.0. It reads as finished rather than abandoned, but it is not fast-moving.
  • It gives you the mechanism, not the legal advice — which categories you need is still your call, and this report is not a lawyer.
  • The default styling is generic; making it look like your site is a CSS afternoon.
How to get it

A script tag on the Astro site and inside the React shell.

Screenshots
orestbida/cookieconsent: GitHub preview cardorestbida/cookieconsent: Screenshot 1

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.