# maticzav/nookies

🍪 A set of cookie helpers for Next.js

Repository: https://github.com/maticzav/nookies
Canonical: https://ross.abutalabs.com/products/nookies
Language: TypeScript
License Family: other
Topics: cookie, nextjs, react, zeit, hacktoberfest
Last push: 2026-08-26T19:59:43+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3152, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2352, forks 76 (observed 2026-08-28T04:06:40.440285+00:00)

## What it is
Nookies is a lightweight set of cookie helpers for Next.js that supports parsing, setting, and destroying cookies on both the client and server side, including SSR contexts and custom Express servers. It is commonly used for authentication flows in Next.js applications.

## Use cases
- parse cookies in getServerSideProps
- set cookies during server-side rendering in Next.js
- destroy cookies on logout in a Next.js app
- manage auth cookies with a custom Express server
- read and write cookies from the browser in React
- handle httpOnly session cookies in Next.js

## When to choose
- you are building a Next.js app and need SSR-aware cookie handling
- you need the same cookie API on both client and server
- you use a custom Express server with Next.js and need cookie helpers
- you want a tiny dependency for auth cookie management

## When to avoid
- you are not using Next.js or Express
- you need advanced cookie features like signing or encryption
- you prefer a framework-agnostic cookie library with broader ecosystem support

## Facets
- artifact type: library
- maturity: stable
- function: auth, middleware
- domain: web-development, frontend, backend
- platform: -
- tags: cookies, nextjs, ssr, react, express, nodejs, web-server

## Member repositories
- maticzav/nookies (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:40.440285+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-30T02:36:52.703067+00:00, confidence not recorded.
  - readme: https://github.com/maticzav/nookies (fetched 2026-08-28T04:06:40.440285+00:00, sha 83bdcce4821b)
  - registry_npm: https://registry.npmjs.org/nookies (fetched 2026-08-29T10:17:32.050905+00:00, sha 90aec170bddf)
- Data as of 2026-08-30T08:39:29.467469+00:00.
