FindSoftware

Cookies EU banner

Vanilla JavaScript library that shows a GDPR cookie consent banner and stores the visitor's accept or reject choice in a cookie.

Cookies EU banner is a vanilla JavaScript library, written in TypeScript, that shows a cookie consent banner for tracking services such as Google Analytics. The site adds a template element with the banner markup, then loads the script from a package manager or a CDN as the install guide describes. The choice to accept or reject is stored in a cookie, and when the visitor declines the library removes Google Analytics cookies. A headless build leaves the banner’s interface to the site.

Alexandre Demode writes and maintains the library, and its presentation site links his Bluesky account.

Worth knowing

The banner stays hidden from bots and from visitors whose browsers send Do Not Track.

Identity

Status
Active
Maintainer
Alexandre Demode4
First release
20159

Rendering and deploy

Install with
npm8

Releases

Current major version
39
Last release
2026-09-219

Adoption

GitHub stars
4482
npm downloads a week
1,28711
Contributors
1410
Dependent repositories
4612
Dependent packages
212

Why these figures do not compare

Sources

  1. 2026-11-03: links, Categories
    alex-d.github.io/Cookies-EU-banner/
  2. 2026-11-03: links, GitHub stars
    api.github.com/repos/Alex-D/Cookies-EU-banner
  3. 2026-11-03: links
    alex-d.github.io/Cookies-EU-banner/documentation/
  4. 2026-11-03: Maintainer
    raw.githubusercontent.com/Alex-D/Cookies-EU-banner/main/LICENSE
  5. 2026-11-03: Written in
    api.github.com/repos/Alex-D/Cookies-EU-banner/languages
  6. 2026-11-03: License
    registry.npmjs.org/cookies-eu-banner/latest
  7. 2026-11-03: License model
    raw.githubusercontent.com/Alex-D/Cookies-EU-banner/main/README.md
  8. 2026-11-03: Install with
    alex-d.github.io/Cookies-EU-banner/documentation/get-started/
  9. 2026-11-03: First release, Current major version, Last release
    api.github.com/repos/Alex-D/Cookies-EU-banner/releases
  10. 2026-11-03: Contributors
    api.github.com/repos/Alex-D/Cookies-EU-banner/contributors
  11. 2026-11-03: npm downloads a week
    api.npmjs.org/downloads/range/2026-10-26:2026-11-01/cookies-eu-banner
  12. 2026-11-03: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cookies-eu-banner

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON