# jshttp/cookie

HTTP server cookie parsing and serialization

Repository: https://github.com/jshttp/cookie
Canonical: https://ross.abutalabs.com/products/cookie
Language: TypeScript
License: MIT
License Family: permissive
Topics: javascript, nodejs, http, cookie
Last push: 2026-07-08T18:36:49+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 90, longevity 100
- inputs: {"age_days": 5210, "days_push": 56, "days_rel": 64, "gap_med": 3, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1532, forks 202 (observed 2026-08-28T04:04:59.444503+00:00)

## What it is
A small Node.js library for parsing and serializing HTTP Cookie and Set-Cookie headers. It provides functions to convert cookie header strings into objects and back, following RFC 6265.

## Use cases
- parse cookie header from incoming http requests
- serialize set-cookie headers for session cookies
- read and write cookies in an express or node http server
- decode url-encoded cookie values
- build session management in a nodejs backend

## When to choose
- you need a minimal, dependency-free cookie parser/serializer for a Node.js HTTP server
- you want RFC 6265 compliant handling of Cookie and Set-Cookie headers
- you are building middleware or a framework that needs cookie support

## When to avoid
- you need browser-side cookie manipulation (use document.cookie helpers instead)
- you want a full session management solution with stores and signing
- you are not working in a JavaScript/Node.js environment

## Facets
- artifact type: library
- maturity: stable
- function: serialization, http-server, middleware
- domain: web-development, backend, apis
- platform: -
- tags: cookies, http-headers, rfc6265, parser, nodejs, javascript

## Member repositories
- jshttp/cookie (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:59.444503+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:31:19.843141+00:00, confidence not recorded.
  - readme: https://github.com/jshttp/cookie (fetched 2026-08-28T04:04:59.444503+00:00, sha 833a5be04382)
  - registry_npm: https://registry.npmjs.org/cookie (fetched 2026-08-29T11:33:40.769878+00:00, sha 40f470fffa74)
- Data as of 2026-08-30T08:39:29.467469+00:00.
