js-cookie/js-cookie
A simple, lightweight JavaScript API for handling cookies, client-side. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 97
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 13
- age_days: 4185
- days_rel: 96
- days_push: 23
- n_releases_24m: 2
Adoption not part of the score
22591 stars · 2044 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
js-cookie is a simple, lightweight JavaScript library for reading, writing, and deleting browser cookies on the client side. It is RFC 6265 compliant, dependency-free, under 800 bytes gzipped, and ships both ES module and UMD variants.
Use cases
- set and get browser cookies in javascript
- create cookies with expiration dates
- read all cookies visible to the current page
- custom cookie encoding and decoding
- manage cookies across a website in the browser
When to choose
- you need a tiny, dependency-free cookie utility for the browser
- you want broad browser support with ES and CommonJS/AMD module compatibility
- you need RFC 6265 compliant cookie handling with custom converters
When to avoid
- you need server-side cookie handling in Node.js rather than the browser
- you want a full state-management or storage solution like localStorage wrappers
- you need cookies with HttpOnly or Secure flags set from the client, which browsers do not allow
Facets
library · maturity stable
http-client developer-tools web-development frontend browser-extensions browser cookies client-side rfc6265 zero-dependency umd es-modules javascript nodejs
2 sources
- readme: https://github.com/js-cookie/js-cookie · fetched 2026-08-28 · 8c7c04924ddb
- registry_npm: https://registry.npmjs.org/js-cookie · fetched 2026-08-29 · 8ad52238ca80
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| js-cookie/js-cookie | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="js-cookie/js-cookie")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem