salesforce/tough-cookie
RFC6265 Cookies and CookieJar for Node.js observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 97
- Release rhythm 68
- 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: 118.5
- age_days: 5432
- days_rel: 57
- days_push: 19
- n_releases_24m: 7
Adoption not part of the score
1064 stars · 299 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Tough Cookie is a Node.js library implementing RFC6265 (and RFC6265bis features like SameSite and cookie prefixes) for parsing, storing, and retrieving HTTP cookies. It provides Cookie and CookieJar classes with pluggable storage, used widely by HTTP clients and scrapers.
Use cases
- parse and generate Set-Cookie headers in node
- manage a cookie jar across http requests
- handle SameSite cookie rules for scraping
- persist cookies between requests in an http client
- implement RFC6265 cookie handling in typescript
When to choose
- you need standards-compliant cookie parsing and storage in Node.js
- you're building an HTTP client, scraper, or test tool that must track cookies
- you need SameSite or cookie-prefix support
When to avoid
- you only need browser cookie handling (browsers do this natively)
- you need cookie management outside Node.js
- you want a full HTTP client rather than just cookie logic
Facets
library · maturity active
http-client serialization security web-development developer-tools security cookies rfc6265 cookiejar http-headers set-cookie samesite nodejs javascript
2 sources
- readme: https://github.com/salesforce/tough-cookie · fetched 2026-08-28 · 73bec9d20ce1
- registry_npm: https://registry.npmjs.org/tough-cookie · fetched 2026-08-29 · d3261465d5c0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| salesforce/tough-cookie | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="salesforce/tough-cookie")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem