10 Best JavaScript Cookies Libraries

List hand-picked by Openbase Experts
Learn More

tough-cookie

RFC6265 Cookies and CookieJar for Node.js

39M
769
No support
BSD-3-Clause
js-cookie

A simple, lightweight JavaScript API for handling browser cookies

5.3M
20.1K
DefinitelyTyped
MIT
noo

🍪 A set of cookie helpers for Next.js

165K
1.8K
Built-in
MIT
acs

Add tough-cookie support to axios.

214K
261
Built-in
MIT
universal-cookie

Load and save cookies within your React application

1.3M
2.3K
DefinitelyTyped
MIT
rcc

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

70.9K
443
Built-in
MIT
rp

persist and rehydrate a redux store

789K
12.2K
Built-in
MIT
nc

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

55.5K
361
Built-in
MIT
nc

[![npm version](https://badge.fury.io/js/ngx-cookieconsent.svg)](https://badge.fury.io/js/ngx-cookieconsent) [![Build Status](https://travis-ci.org/tinesoft/ngx-cookieconsent.svg?branch=master)](https://travis-ci.org/tinesoft/ngx-cookieconsent) [![Coverag

10.5K
Built-in
@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.

1.5K
103
No support
MIT
vcl

🍪 👮 Hackable EU Cookie Law Plugin for Vue.js

7.7K
368
No support
MIT
react-cookie

Load and save cookies within your React application

468K
2.3K
No support
MIT
cb

cookieBAR is a free & easy solution to the EU cookie law.

63
166
No support
GNU GPL v2.0
cookie

HTTP server cookie parsing and serialization

39.9M
1K
DefinitelyTyped
MIT
ncs

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

286K
451
Built-in
MIT
sim

A small javascript utility to make handling cookies simple

23
66
No support
ISC
es

ExpressJS MongoDB/Redis Session Storage

575
33
No support
@shopify/react-cookie

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

40K
1.5K
Built-in
MIT
cookies

Signed and unsigned cookies based on Keygrip

1.8M
1.2K
DefinitelyTyped
MIT
bcc

Settings dialog in Bootstrap 5 and framework to handle the EU law (may 2020) about cookies in a website

26
0
No support
MIT
cs

Sign and unsign cookies

24M
DefinitelyTyped
MIT
scp

Parse HTTP set-cookie headers in JavaScript

2.9M
122
DefinitelyTyped
MIT
vc

A simple Vue.js plugin for handling browser cookies

95K
362
Built-in
MIT
@workday/canvas-kit-react-cookie-banner

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

786
257
Built-in
Apache-2.0
@forrestjs/service-express-cookies

ForrestJS - Composable JavaScript

98
41
No support
MIT
cookie-session

Simple cookie-based session middleware

240K
1K
DefinitelyTyped
MIT
cn

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

175K
140
Built-in
MIT
angular-cookies

AngularJS - HTML enhanced for web apps!

163K
59.3K
DefinitelyTyped
MIT
cun

Universal cookie plugin, perfect for SSR

103K
490
Built-in
MIT
bc

Tiny cookies library for the browser

68.5K
88
Built-in
Unlicence
nc

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

53.3K
295
Built-in
MIT
cj

JavaScript Client-Side Cookie Manipulation Library

48.1K
1.8K
No support
Public Domain
express-cookie

Fast, unopinionated, minimalist web framework for node.

53
59.7K
No support
MIT
rc

🍪 Load and save cookies with React

35.4K
122
DefinitelyTyped
MIT
@nuxtjs/google-analytics

Google Analytics Module

30.7K
605
Built-in
MIT
universal-cookie-express

Load and save cookies within your React application

29.2K
2.3K
No support
MIT
vc

A Vue.js plugin for manipulating cookies

28.2K
816
No support
MIT
ng2-cookies

Simple library to deal with cookies in Angular2

20.3K
64
Built-in
{"type":"MIT","url":"https://opensource.org/licenses/MIT"}
vca

👋 Show a banner with text, a decline button, and an accept button on your page. Remembers selection using cookies. Emits an event with current selection and on creation. Good for GDPR requirements.

2.7K
120
No support
MIT
client-sessions

secure sessions stored in cookies

12.8K
742
DefinitelyTyped
MPL-2.0
cj

A tiny JavaScript library that simplifies cookies.

8.7K
1.1K
DefinitelyTyped
MIT
vcn

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

6.5K
44
Built-in
MIT
ic

Load and save cookies on the client and server

5.1K
11
No support
MIT
nrc

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

4.4K
78
Built-in
MIT
nc

Cookie serializer and deserializer library for next.js

4K
182
Built-in
MIT
ac

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

3.1K
111
No support
MIT
@ngx-utils/cookies

Manage your cookies on client and server side (Angular Universal)

1.6K
40
No support
MIT
acl

Angular2+ component that provides a banner to inform users about cookie law

1.4K
38
Built-in
MIT
redux-cookies-middleware

redux-cookies-middleware is a Redux middleware which syncs a subset of your Redux store state with cookies.

1.4K
81
No support
MIT
ie

A simple i18n middleware for Express.js

1.3K
52
No support
MIT
Description
Author
License
Type Definitions
ESM Support
Tree Shakeable
Popularity
Downloads/wk
GitHub Stars
Reviews
User Rating
Voted Good Docs
Voted Easy of Use
Voted Performant
Top Positive Review
Top Negative Review
Issues
Total Issues
Open Issues
Avg Time to Close
Pull Requests
Total Pull Requests
Open Pull Requests
Avg Time to Merge
Community
Maintainers
Contributors
Contributors with 3+ commits
Top Committers
GitHub Forks
Versions
# of Versions
Latest
Next
Beta
Newest
Oldest
Major Every
Minor Every
Patch Every
Dependencies
Dependencies
Dev Dependencies
Links
More Info
README
Tutorials
Install Command
There's Nothing Here
No packages are selected.
Select a few packages to compare.