{"id":13517251,"url":"https://github.com/osano/cookieconsent","last_synced_at":"2025-12-12T01:05:51.632Z","repository":{"id":26742346,"uuid":"30200039","full_name":"osano/cookieconsent","owner":"osano","description":"A free solution to the EU, GDPR, and California Cookie Laws","archived":false,"fork":false,"pushed_at":"2024-06-23T17:22:42.000Z","size":3664,"stargazers_count":3464,"open_issues_count":93,"forks_count":574,"subscribers_count":91,"default_branch":"dev","last_synced_at":"2025-05-09T15:05:14.938Z","etag":null,"topics":["ccpa","cookie-consent","cookies","eu-cookie","gdpr","javascript","legal"],"latest_commit_sha":null,"homepage":"https://www.osano.com/cookieconsent","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osano.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-02T17:55:24.000Z","updated_at":"2025-05-07T04:04:01.000Z","dependencies_parsed_at":"2024-01-13T22:53:23.628Z","dependency_job_id":"4c79d274-75fb-4381-a471-af6c2303ce3d","html_url":"https://github.com/osano/cookieconsent","commit_stats":{"total_commits":584,"total_committers":52,"mean_commits":11.23076923076923,"dds":0.6181506849315068,"last_synced_commit":"af675e99ea839c224d95a4122dd208e2cee48116"},"previous_names":["silktide/cookieconsent2","insites/cookieconsent"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osano%2Fcookieconsent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osano%2Fcookieconsent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osano%2Fcookieconsent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osano%2Fcookieconsent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osano","download_url":"https://codeload.github.com/osano/cookieconsent/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253678892,"owners_count":21946319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ccpa","cookie-consent","cookies","eu-cookie","gdpr","javascript","legal"],"created_at":"2024-08-01T05:01:31.757Z","updated_at":"2025-12-12T01:05:51.581Z","avatar_url":"https://github.com/osano.png","language":"JavaScript","readme":"[![Build Status][bi]][bl]\n[![MIT License][li]][ll]\n[![Twitter][ti]][tl]\n\n\u003cp align=\"center\"\u003e\u003ca href=\"https://www.osano.com/features/consent-management?utm_campaign=Open%20Source%20Cookie%20Consent\u0026utm_source=github\"\u003e\u003cimg width=\"460\" src=\"images/cookie-consent.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## What is Cookie Consent?\n\n[Cookie Consent][cl] is a lightweight JavaScript plugin for alerting users about the use of cookies on your website.\n\nIt is designed to help you quickly comply with the EU Cookie Law, CCPA, GDPR and other privacy laws. We made it fast, free, and relatively painless.\n\nCookie Consent is seen over 2 BILLION times every month and is used on millions of sites, making this by far the most popular consent project on the internet.\n\nWe welcome community contributions and actively review pull requests.\n\n\n## Hosted Zero Config Consent\n\nOur parent company Osano actively maintains this open source project. Osano is a B-corp and is backed by millions of dollars in venture capital to create data privacy tools for the world. Our mission is to create transparency in data, please consider [joining our team](https://www.osano.com/company/careers).\n\nEnsuring that your website is compliant with various laws can be complicated. To effectively use **any** open source consent manager, you will need to do GeoIP lookups, adjust the consent types based on visitor location, callback and save consents in a database, and create callbacks to load scripts after consent is granted.\n\nOsano offers a completely [free hosted consent management platform][cl], with additional features. If you have a high traffic website or need additional privacy tools, Osano offers paid plans as well. **Unless you specifically need the open source tool, most website owners will be better served by the hosted version.** If you use Osano for your business, please support continued development by purchasing a [paid plan](https://www.osano.com/plans?utm_campaign=Open%20Source%20Cookie%20Consent\u0026utm_source=github).\n\nThe hosted version of the cookie consent manager provides additional capabilities such as:\n\n* Multi-lingual, translated into 38 languages and growing. Visitors automatically see the dialog in their browser or OS preferred language.\n* Consents are stored automatically on the blockchain. REST API calls are available to developers to search and browse the consent records.\n* 3rd party script blocking and loading does not require callbacks but is instead configurable from a dashboard providing developers with control over what the marketing team can enable or disable.\n* Hosted on AWS Cloudfront with edges around the globe for \n\n## Basic Use\n\nWith version 4.0 you only need to attach the script as we've bundled everything together now. The initialization style has changed as have the callbacks (they're gone). Please see the text below to get started.  Then, take a look at updated API via the [docs][dl].\n\n#### Module\n```\nimport CC from \"CookieConsent\"\n// or\nconst CC = require( \"CookieConsent\" )\n```\n\n#### Classic\n```\nconst CC = window.CookieConsent\n```\n\n##### Initialization:\n```\nconst cc = new CC({\n  //...options,\n  type   : \"categories\"\n})\n```\n\n##### Lifecycle hooks, are now events: \n```\ncc.on( \"initialized\", ( ...args ) =\u003e console.log( args ) )\ncc.on( \"error\", console.error )\ncc.on( \"popupOpened\", () =\u003e console.log( \"Popup Open\" ) )\ncc.on( \"popupClosed\", () =\u003e console.log( \"Popup Closed\" ) )\ncc.on( \"revokeChoice\", () =\u003e console.log( \"Popup Reset\" ) )\ncc.on( \"statusChanged\", ( ...args ) =\u003e console.log( args ) )\n```\n\n\n## Version 4.0\nLots of updates \u0026 some breaking changes... but they're all for the better, we promise!\n\n## Version 3.1\n\nReflects the ownership change of the Cookie Consent project. Now actively maintained by:\n\n- @arlogilbert\n- @L0key\n- @pgoforth\n\n## Version 3.0\n\nVersion 3.0 is a complete rewrite from version 2. The most substantial new features are:\n\n- Ability to GeoLocate and only show the add-on to people in the relevant countries\n- Callback hooks for showing/accepting/revoking the banner\n- Support for different types of compliance, giving you the flexibility to obey even the strictest cookie laws\n- Easy no-fuss themes and customisable styles\n\n## Installation\n\nThe easiest way to get up and running is to use our [wizard][dll].\n\nYou can also install this project through [npm](https://www.npmjs.com/package/cookieconsent):\n\n```sh\nnpm install cookieconsent\n```\n\nOr through [Yarn](https://yarnpkg.com/en/package/cookieconsent):\n\n```sh\nyarn add cookieconsent@3\n```\n\nOr through [Bower](https://bower.io/):\n\n```sh\nbower install cookieconsent\n```\n\nOr via a jsDelivr:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js\"\u003e\u003c/script\u003e\n```\n\n## Documentation\n\nSee our [full documentation][dl].\n\n## Contributing\n\nFeel free to improve the plugin and send us a pull request.\n\nThe easiest way to develop is to host the files with a local webserver. e.g.\n\n```sh\npython -m SimpleHTTPServer\n```\n\nWe use Babel, Terser, and PostCSS to compile the SCSS and minify the JavaScript. You can run a build with:\n\n```sh\nnpm run build\n```\n\nor\n\n```sh\nyarn run build\n```\n\n## Legal Mumbo Jumbo\n\nOsano is a registered trademark of Osano, Inc.\n\nNothing on the Osano website, platform, services, or software, nor any portion thereof constitutes actual legal or regulatory advice, opinion, or recommendation by Osano, Inc. or Osano International Compliance Services LTD. \n\n**If legal assistance is required, users should seek the services of an attorney.**\n\n## Export Control\n\nThis distribution includes cryptographic software. The country in which you\ncurrently reside may have restrictions on the import, possession, use, and/or\nre-export to another country, of encryption software. BEFORE using any\nencryption software, please check your country's laws, regulations and\npolicies concerning the import, possession, or use, and re-export of encryption\nsoftware, to see if this is permitted. See \u003chttp://www.wassenaar.org/\u003e for more\ninformation.\n\nThe U.S. Government Department of Commerce, Bureau of Industry and Security\n(BIS), has classified this software as Export Commodity Control Number (ECCN)\n5D002.C.1, which includes information security software using or performing\ncryptographic functions with asymmetric algorithms. The form and manner of this\nApache Software Foundation distribution makes it eligible for export under the\nLicense Exception ENC Technology Software Unrestricted (TSU) exception (see the\nBIS Export Administration Regulations, Section 740.13) for both object code and\nsource code.\n\n[li]: https://img.shields.io/badge/license-MIT-brightgreen.svg\n[ll]: LICENSE\n[bl]: https://travis-ci.org/osano/cookieconsent\n[bi]: https://travis-ci.org/osano/cookieconsent.svg?branch=master\n[dl]: https://www.osano.com/cookieconsent/documentation/\n[dll]: https://www.osano.com/features/consent-management?utm_campaign=Open%20Source%20Cookie%20Consent\u0026utm_source=github\n[cl]: https://www.osano.com/features/consent-management?utm_campaign=Open%20Source%20Cookie%20Consent\u0026utm_source=github\n[ti]: https://img.shields.io/twitter/url/https/osanoatx.svg?style=social\n[tl]: https://twitter.com/osano\n","funding_links":[],"categories":["JavaScript","Awesome Privacy Engineering [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)"],"sub_categories":["Data Deletion, Data Mapping, and Data Subject Access Requests"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosano%2Fcookieconsent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosano%2Fcookieconsent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosano%2Fcookieconsent/lists"}