# orestbida/cookieconsent

:cookie: Simple cross-browser cookie-consent plugin written in vanilla js

Repository: https://github.com/orestbida/cookieconsent
Canonical: https://ross.abutalabs.com/products/cookieconsent
Homepage: https://playground.cookieconsent.orestbida.com/
Language: JavaScript
License: MIT
License Family: permissive
Topics: cookie-consent, gdpr, cookie-policy, cookieconsent, javascript-plugin, cookie-settings
Last push: 2026-07-23T21:39:48+00:00

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

## Adoption (not part of the score)
Stars 5642, forks 508 (observed 2026-08-28T04:09:26.784082+00:00)

## What it is
CookieConsent is a lightweight, GDPR and CCPA compliant cookie consent management plugin written in vanilla JavaScript with no dependencies. It provides a customizable consent modal and preferences modal that block scripts until explicit user consent is given.

## Use cases
- add a GDPR-compliant cookie consent banner to my website
- block analytics and marketing scripts until users opt in
- let visitors manage cookie preferences by category
- make my site CCPA compliant without heavy libraries
- add a cookie consent modal to a React or Vue app
- support multi-language cookie consent notices
- implement Google Consent Mode requirements on my site

## When to choose
- you need a dependency-free, lightweight consent solution for any website or framework
- you want GDPR/CCPA compliance with script blocking and granular category controls
- you need multi-language support and accessibility (a11y) out of the box
- you want extensive theming and layout customization options

## When to avoid
- you need a full consent management platform with server-side consent logging and cross-domain sync
- you require built-in integration with specific ad networks or tag managers
- you need a React/Vue-native component rather than a vanilla JS plugin

## Facets
- artifact type: plugin
- maturity: active
- function: ui-components, middleware, security, privacy
- domain: web-development, frontend, privacy, legal
- platform: browser, cross-platform
- tags: cookie-consent, gdpr, ccpa, vanilla-js, consent-management, lightweight, accessible, web-server

## Member repositories
- orestbida/cookieconsent (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:26.784082+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-29T17:55:18.235076+00:00, confidence not recorded.
  - readme: https://github.com/orestbida/cookieconsent (fetched 2026-08-28T04:09:26.784082+00:00, sha c05ffa3a5de3)
  - homepage: https://playground.cookieconsent.orestbida.com/ (fetched 2026-08-29T08:50:08.370402+00:00, sha 7704c420c962)
  - site_page: https://cookieconsent.orestbida.com/essential/getting-started.html (fetched 2026-08-29T08:50:08.382454+00:00, sha d52159cd67d6)
  - site_page: https://cookieconsent.orestbida.com (fetched 2026-08-29T08:50:08.380256+00:00, sha 726a753b81cb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
