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.
alex-d.github.io/Cookies-EU-banner/repositorydocs
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
Rendering and deploy
- Install with
- npm8
Releases
Adoption
Sources
- 2026-11-03: links, Categories
alex-d.github.io/Cookies-EU-banner/ - 2026-11-03: links, GitHub stars
api.github.com/repos/Alex-D/Cookies-EU-banner - 2026-11-03: links
alex-d.github.io/Cookies-EU-banner/documentation/ - 2026-11-03: Maintainer
raw.githubusercontent.com/Alex-D/Cookies-EU-banner/main/LICENSE - 2026-11-03: Written in
api.github.com/repos/Alex-D/Cookies-EU-banner/languages - 2026-11-03: License
registry.npmjs.org/cookies-eu-banner/latest - 2026-11-03: License model
raw.githubusercontent.com/Alex-D/Cookies-EU-banner/main/README.md - 2026-11-03: Install with
alex-d.github.io/Cookies-EU-banner/documentation/get-started/ - 2026-11-03: First release, Current major version, Last release
api.github.com/repos/Alex-D/Cookies-EU-banner/releases - 2026-11-03: Contributors
api.github.com/repos/Alex-D/Cookies-EU-banner/contributors - 2026-11-03: npm downloads a week
api.npmjs.org/downloads/range/2026-10-26:2026-11-01/cookies-eu-banner - 2026-11-03: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cookies-eu-banner