Skip to content

Packages for managing first party client side cookies following GDPR regulations

License

Notifications You must be signed in to change notification settings

coinbase/cb-cookie-manager

Repository files navigation

Coinbase Cookie Manager

Coinbase Cookie Manager is a lightweight package for first-party client side cookies that helps adhere to CCPA and GDPR cookie regulations

Demo

Contents

Introduction

It can manage four different types of first-party client side cookies:

  • Necessary Cookies: Cookies that are necessary for the site to function
  • Performance Cookies: Cookies that impact site performance and help mesaure performance
  • Functional Cookies: Cookies to improve the functionality of the site
  • Targeting Cookies: Cookies used for advertising and ad targeting

Getting Started

This repo uses a yarn workspace. To get started with the example app:

cd /path/to/coinbase/cb-cookie-manager

# Install Dependencies and Build Packages
yarn install
yarn build

# Run Example App
cd /path/to/coinbase/cb-cookie-manager/example/app
yarn dev

Testing

yarn test

Packages

  • @coinbase/cookie-manager: Package that helps with managing first party client side cookies to adhere to CCPA and GDPR Cookie regulations. More information here

  • @coinbase/cookie-banner: Banner and modal to allow users to choose their cookie preferences. More information here

  • example: Example app built using NextJS which uses both @coinbase/cookie-manager and @coinbase/cookie-banner. Code here

Contributing

Commit signing is required for contributing to this repo. For details, see the docs on contributing and commit-signing.

License

Licensed under the Apache License. See LICENSE for more information.