# 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.


Source: https://findsoftware.frbit.cloud/cookies-eu-banner/
Last reviewed: 2026-11-03
Listed since: 2026-11-03

## Record

### Links

- home: https://alex-d.github.io/Cookies-EU-banner/
- repository: https://github.com/Alex-D/Cookies-EU-banner
- docs: https://alex-d.github.io/Cookies-EU-banner/documentation/
- bluesky: https://bsky.app/profile/alex-d.fr

### Identity

- status: active
- maintainer: Alexandre Demode
- maintainerType: unknown
- parent: unknown
- firstRelease: 2015
- hqCountry: unknown

### Kind

- category: forms, library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 3
- latestReleaseDate: 2026-09-21

### Adoption

- githubStargazers: 448
- packagistDownloads: not applicable
- npmWeeklyDownloads: 1287
- contributors: 14
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 46
- dependentPackages: 2

### Sources

- urls: https://alex-d.github.io/Cookies-EU-banner/ (read 2026-11-03)
- urls: https://api.github.com/repos/Alex-D/Cookies-EU-banner (read 2026-11-03)
- urls: https://alex-d.github.io/Cookies-EU-banner/documentation/ (read 2026-11-03)
- maintainer: https://raw.githubusercontent.com/Alex-D/Cookies-EU-banner/main/LICENSE (read 2026-11-03)
- category: https://alex-d.github.io/Cookies-EU-banner/ (read 2026-11-03)
- language: https://api.github.com/repos/Alex-D/Cookies-EU-banner/languages (read 2026-11-03)
- license: https://registry.npmjs.org/cookies-eu-banner/latest (read 2026-11-03)
- licenseModel: https://raw.githubusercontent.com/Alex-D/Cookies-EU-banner/main/README.md (read 2026-11-03)
- installMethod: https://alex-d.github.io/Cookies-EU-banner/documentation/get-started/ (read 2026-11-03)
- installMethod: https://alex-d.github.io/Cookies-EU-banner/documentation/get-started/ (read 2026-11-03)
- installMethod: https://alex-d.github.io/Cookies-EU-banner/documentation/get-started/ (read 2026-11-03)
- installMethod: https://alex-d.github.io/Cookies-EU-banner/documentation/get-started/ (read 2026-11-03)
- installMethod: https://alex-d.github.io/Cookies-EU-banner/documentation/get-started/ (read 2026-11-03)
- firstRelease: https://api.github.com/repos/Alex-D/Cookies-EU-banner/releases (read 2026-11-03)
- currentMajor: https://api.github.com/repos/Alex-D/Cookies-EU-banner/releases (read 2026-11-03)
- latestReleaseDate: https://api.github.com/repos/Alex-D/Cookies-EU-banner/releases (read 2026-11-03)
- githubStargazers: https://api.github.com/repos/Alex-D/Cookies-EU-banner (read 2026-11-03)
- contributors: https://api.github.com/repos/Alex-D/Cookies-EU-banner/contributors (read 2026-11-03)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-10-26:2026-11-01/cookies-eu-banner (read 2026-11-03)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cookies-eu-banner (read 2026-11-03)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/cookies-eu-banner (read 2026-11-03)

## Notes

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](https://alex-d.github.io/Cookies-EU-banner/documentation/get-started/) 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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
