# osano/cookieconsent

A free solution to the EU, GDPR, and California Cookie Laws

Repository: https://github.com/osano/cookieconsent
Canonical: https://ross.abutalabs.com/products/osano-cookieconsent
Homepage: https://www.osano.com/cookieconsent
Language: JavaScript
License: MIT
License Family: permissive
Topics: cookie-consent, eu-cookie, javascript, cookies, gdpr, legal, ccpa
Last push: 2026-08-11T18:23:43+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 4230, "days_push": 22, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3568, forks 572 (observed 2026-08-28T04:08:10.003734+00:00)

## What it is
A lightweight, free JavaScript plugin that displays cookie consent banners to help websites comply with the EU Cookie Law, GDPR, and CCPA. It is actively maintained by Osano and is one of the most widely deployed consent tools on the web.

## Use cases
- add a cookie consent banner to my website
- make my site GDPR compliant for cookies
- comply with EU cookie law
- show a CCPA do-not-sell notice
- block tracking scripts until user consents
- free open source cookie consent manager

## When to choose
- you need a lightweight, self-hosted, zero-cost consent banner
- you want a battle-tested solution used on millions of sites
- you're comfortable wiring up callbacks for script blocking and consent storage yourself

## When to avoid
- you need multi-language dialogs, dashboard-managed script blocking, or stored consent records out of the box - the hosted Osano platform covers those
- you need a full consent management platform with DSAR automation and vendor risk management
- you require GeoIP-based consent logic without building it yourself

## Facets
- artifact type: plugin
- maturity: stable
- function: ui-components, privacy, developer-tools
- domain: privacy, web-development, legal, frontend
- platform: browser
- tags: cookie-consent, gdpr, ccpa, eu-cookie-law, consent-management, banner, compliance, javascript, nodejs

## Member repositories
- osano/cookieconsent (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.003734+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:34:09.578637+00:00, confidence not recorded.
  - readme: https://github.com/osano/cookieconsent (fetched 2026-08-28T04:08:10.003734+00:00, sha 7e44d2771f8d)
  - homepage: https://www.osano.com/cookieconsent (fetched 2026-08-29T09:28:14.398211+00:00, sha 479e068786e4)
  - site_page: https://www.osano.com/features/ai-powered-osano (fetched 2026-08-29T09:28:14.408184+00:00, sha 49d4e6673664)
  - site_page: https://www.osano.com/features/compliance-check (fetched 2026-08-29T09:28:14.410541+00:00, sha c09395f9ebdc)
  - site_page: https://www.osano.com/features/trusthub (fetched 2026-08-29T09:28:14.412981+00:00, sha 3304e7e7811b)
  - site_page: https://www.osano.com/features/privacy-templates (fetched 2026-08-29T09:28:14.415307+00:00, sha a2f1a733cfc0)
  - site_page: https://www.osano.com/features/gdpr-representative (fetched 2026-08-29T09:28:14.417182+00:00, sha 0b162d5ba8ae)
  - site_page: https://www.osano.com/features/privacy-experts (fetched 2026-08-29T09:28:14.419039+00:00, sha 4a9b2920ac1b)
  - site_page: https://www.osano.com/features/regulatory-guidance (fetched 2026-08-29T09:28:14.421127+00:00, sha 25f66bc91970)
  - registry_npm: https://registry.npmjs.org/cookieconsent (fetched 2026-08-29T09:28:14.424669+00:00, sha ddacdd9631b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
