CookieConsent

Lightweight, GDPR-compliant cookie consent banner.

Last reviewed 5 December 2026 · MIT · Websites & E-commerce

Licence
Type
Developer tool
GitHub stars
★ 5.8k
Last commit
December 2026
First release
2020
Hosted version
No

What is CookieConsent?

CookieConsent is a dependency-free JavaScript library for showing a customisable consent banner and preferences modal, and blocking scripts until visitors opt in.

Key features

  • No dependencies
  • Script blocking until consent
  • Translations
  • Consent Mode v2 compatible

CookieConsent as an open source alternative

CookieConsent is listed on our comparison page as an open source replacement for Cookiebot. Compare it with the other options:

Licence

CookieConsent is released under the MIT licence, a permissive licence. More MIT software →

CookieConsent: FAQ

Is CookieConsent open source?

Yes. CookieConsent is released under the MIT licence (permissive), and its source code is public.

Is CookieConsent free?

The software is free to use.

What does CookieConsent replace?

CookieConsent is an open source alternative to Cookiebot.

Can I self-host CookieConsent?

CookieConsent runs on your own machine or in your own development environment.

Similar open source projects

WordPress

GPL-2.021.6k

The CMS that powers over 40% of the web.

Replaces Wix, Squarespace, Medium

Self-hostedCloud option
Self-hostedWebsites & E-commerce

Ghost

MIT56k

Publishing platform for newsletters and memberships.

Replaces Substack, Medium, Squarespace, Wix

Self-hostedCloud option
Self-hostedWebsites & E-commerce

Medusa

MIT37.6k

Headless commerce platform for developers.

Replaces Shopify

Self-hostedCloud option
Self-hostedWebsites & E-commerce

Bagisto

MIT28.5k

Laravel e-commerce and multi-vendor marketplace.

Replaces Shopify

Self-hosted
Self-hostedWebsites & E-commerce

GrapesJS

BSD-3-Clause26.5k

Web builder framework for drag-and-drop editors.

Replaces Webflow

Developer toolWebsites & E-commerce

Dub

AGPL-3.025.3k

Link management and attribution platform.

Replaces Bitly

Self-hostedCloud option
Self-hostedWebsites & E-commerce

More MIT projects

Browse 350+ open source alternativesSearch by product, category or licence