10 Best JavaScript Cookies Libraries

List hand-picked by Openbase Experts
Learn More

js-cookie

A simple, lightweight JavaScript API for handling browser cookies

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.8/ 5
39
Top Feedback
8Easy to Use
7Great Documentation
7Performant
GitHub Stars
19K
Weekly Downloads
4M
Last Commit
3mos ago

tough-cookie

RFC6265 Cookies and CookieJar for Node.js

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
719
Weekly Downloads
38M
Last Commit
3mos ago
noo

nookies

🍪 A set of cookie helpers for Next.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
1Easy to Use
GitHub Stars
2K
Weekly Downloads
128K
Last Commit
2mos ago
rp

redux-persist

persist and rehydrate a redux store

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.6/ 5
9
Top Feedback
3Poor Documentation
3Hard to Use
2Slow
GitHub Stars
12K
Weekly Downloads
640K
Last Commit
2mos ago

universal-cookie

Load and save cookies within your React application

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
4Great Documentation
1Easy to Use
GitHub Stars
2K
Weekly Downloads
984K
Last Commit
5mos ago
acs

axios-cookiejar-support

Add tough-cookie support to axios.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
GitHub Stars
208
Weekly Downloads
143K
Last Commit
1mo ago
nc

next-cookies

Tiny little function for getting cookies on both client & server with next.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
2
Top Feedback
N/A
GitHub Stars
345
Weekly Downloads
76K
Last Commit
5mos ago
rcc

react-cookie-consent

A small, simple and customizable cookie consent bar for use in React applications.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.7/ 5
3
Top Feedback
3Great Documentation
3Easy to Use
3Performant
GitHub Stars
371
Weekly Downloads
59K
Last Commit
1mo ago
nc

ngx-cookieconsent

Cookie 🍪 Consent module for Angular.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
136
Weekly Downloads
8K
Last Commit
3mos ago

react-cookie

Load and save cookies within your React application

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.0/ 5
1
Top Feedback
1Hard to Use
1Buggy
1Abandoned
GitHub Stars
2K
Weekly Downloads
305K
Last Commit
5mos ago
vcl

vue-cookie-law

🍪 👮 Hackable EU Cookie Law Plugin for Vue.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
2
Top Feedback
N/A
GitHub Stars
358
Weekly Downloads
7K
Last Commit
1yr ago
ncs

ngx-cookie-service

Angular (4.2+ ...12) service for cookies. Originally based on the `ng2-cookies` library.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
1.0/ 5
1
Top Feedback
1Easy to Use
GitHub Stars
411
Weekly Downloads
238K
Last Commit
1mo ago

@shopify/react-cookie

A loosely related set of packages for JavaScript/TypeScript projects at Shopify

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
36K
Last Commit
2mos ago

cookie

HTTP server cookie parsing and serialization

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
1Easy to Use
GitHub Stars
942
Weekly Downloads
30M
Last Commit
9mos ago
es

express-sessions

ExpressJS MongoDB/Redis Session Storage

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
31
Weekly Downloads
630
Last Commit
5yrs ago

cookie-session

Simple cookie-based session middleware

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
978
Weekly Downloads
160K
Last Commit
1mo ago
scp

set-cookie-parser

Node.js library for parsing HTTP set-cookie headers

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
108
Weekly Downloads
1M
Last Commit
4mos ago

angular-cookies

AngularJS - HTML enhanced for web apps!

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
60K
Weekly Downloads
130K
Last Commit
5mos ago
cun

cookie-universal-nuxt

Universal cookie plugin, perfect for SSR

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
450
Weekly Downloads
101K
Last Commit
5mos ago
cs

cookie-signature

cookie signing

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
127
Weekly Downloads
20M
Last Commit
3yrs ago

@workday/canvas-kit-react-cookie-banner

Development kits to implement UI following the Workday Canvas Design System (https://design.workday.com). See our Component Storybook -

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
191
Weekly Downloads
422
Last Commit
2mos ago

vue-js-cookie

A Vue plugin for managing cookies.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.0/ 5
2
Top Feedback
1Easy to Use
GitHub Stars
4
Weekly Downloads
194
Last Commit
4yrs ago
nc

next-cookie

Cookie serializer and deserializer library for next.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
162
Weekly Downloads
4K
Last Commit
3mos ago
nc

ngx-cookie

Implementation of Angular 1.x $cookies service to Angular 2

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
282
Weekly Downloads
53K
Last Commit
10mos ago

universal-cookie-express

Load and save cookies within your React application

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
37K
Last Commit
5mos ago
rc

react-cookies

🍪 Load and save cookies with React

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
121
Weekly Downloads
42K
Last Commit
8mos ago

cookies

Signed and unsigned cookies based on Keygrip

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
2M
Last Commit
2yrs ago
nrc

next-redux-cookie-wrapper

Sync a subset of your Redux state with cookies in Next.js 🍪 ✨

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
57
Weekly Downloads
2K
Last Commit
1mo ago
coo

@dunks1980/cookiemunch

A simple, customizable, minimal setup cookie plugin that allows your users to select which cookies to accept or decline.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
219
Last Commit
2mos ago

@edx/cookie-policy-banner

The edX cookie policy banner component implemented in React.

License Icon
License: AGPL-3.0
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
157
Last Commit
1mo ago

@forrestjs/service-express-cookies

ForrestJS - React Universal PWA generator

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
34
Weekly Downloads
116
Last Commit
3mos ago
ruc

react-use-cookie

A React hook for managing cookies with no dependencies.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
31
Weekly Downloads
4K
Last Commit
7mos ago
nnp

next-nookies-persist

🍪 ⚓ Next.js persist cookie data with hooks

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
12
Weekly Downloads
34
Last Commit
6mos ago

@palmabit/react-cookie-law

React Cookie Law is a cookie-info banner compliance with the GDPR and the EU cookie law. It allows the user to give consent in a granular way.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Not Found
User RatingN/A
Top Feedback
N/A
GitHub Stars
82
Weekly Downloads
1K
Last Commit
1yr ago

@nuxtjs/google-analytics

Google Analytics Module

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
586
Weekly Downloads
38K
Last Commit
10mos ago
cn

cookies-next

Getting, setting and removing cookies on both client and server with next.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
44
Weekly Downloads
6K
Last Commit
3mos ago
nuc

next-universal-cookie

🍪 Provides a way to read, set and destroy a cookie for Next.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
428
Last Commit
4mos ago
vc

vue-cookies

A simple Vue.js plugin for handling browser cookies

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
330
Weekly Downloads
86K
Last Commit
1yr ago
rc

react-cookienotice

A lightweight & customizable cookie banner for your React App

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
139
Last Commit
3mos ago
vcn

vue-cookie-next

A vue 3 plugin for handling browser cookies with typescript support. Load and save cookies within your Vue 3 application

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
33
Weekly Downloads
2K
Last Commit
6mos ago
rcc

react-cookie-consent-notification

🍪 The package will help you display a notification of consent to the use of cookies on the site

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
73
Last Commit
8mos ago
bc

browser-cookies

Tiny cookies library for the browser

License Icon
License: Unlicense
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
86
Weekly Downloads
58K
Last Commit
4yrs ago
cj

cookies-js

JavaScript Client-Side Cookie Manipulation Library

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
2K
Weekly Downloads
51K
Last Commit
5yrs ago
cj

cookie_js

A tiny JavaScript library that simplifies cookies.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
4K
Last Commit
1yr ago

express-cookie

Fast, unopinionated, minimalist web framework for node.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
55K
Weekly Downloads
33
Last Commit
1mo ago

vue-warehouse

A Cross-browser storage for Vue.js and Nuxt.js, with plugins support and easy extensibility based on Store.js.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
167
Weekly Downloads
400
Last Commit
2mos ago
vc

vue-cookie

A Vue.js plugin for manipulating cookies

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
817
Weekly Downloads
26K
Last Commit
5yrs ago

ng2-cookies

Simple library to deal with cookies in Angular2

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
62
Weekly Downloads
21K
Last Commit
3yrs ago

client-sessions

secure sessions stored in cookies

License Icon
License: MPL-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
745
Weekly Downloads
19K
Last Commit
2yrs ago
sc

secure-cookie

Cookie library/middleware with signing and encryption support for Node.js

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
20
Last Commit
4mos ago