florian/cookie.js
A tiny JavaScript library that simplifies cookies. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: n/a
- age_days: 5277
- days_rel: n/a
- days_push: 821
- n_releases_24m: 0
Adoption not part of the score
1128 stars · 179 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
cookie.js is a tiny, dependency-free JavaScript library that simplifies working with browser cookies, wrapping the awkward document.cookie API. It supports setting, getting, and removing cookies with options like expiry, domain, path, secure, and SameSite, plus chaining and batch operations.
Use cases
- set and get cookies in the browser without dealing with document.cookie
- set multiple cookies at once with expiry options
- manage cookie attributes like domain, path, secure, and SameSite
- remove cookies from JavaScript
- use a lightweight cookie helper in AMD or CommonJS projects
When to choose
- you need a minimal (<1 KB gzipped) cookie utility with no dependencies
- you want a simple, chainable API over document.cookie
- you need UMD support for AMD/CommonJS/browser global usage
When to avoid
- you need server-side cookie handling in Node.js
- you already use a framework or library with built-in cookie utilities
- you need localStorage/sessionStorage instead of cookies
Facets
library · maturity maintenance
serialization developer-tools web-development frontend browser cookies browser-storage zero-dependency umd nodejs
1 source
- readme: https://github.com/florian/cookie.js · fetched 2026-08-28 · 069ba0cc9181
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| florian/cookie.js | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="florian/cookie.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem