{
 "kind": "tool",
 "slug": "iron-session",
 "path": "tools/iron-session/",
 "name": "Iron Session",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "Secure, stateless cookie-based session library with encryption.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install iron-session"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/vvo/iron-session"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/vvo/iron-session"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 23, 2026. ",
   "src": "https://github.com/vvo/iron-session"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "6 projects",
   "status": "info",
   "sub": "#71 of 141 in its category",
   "note": "Dependency in 6 public GitHub projects set up for AI coding agents that we scanned (0.1%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Iron Session does",
   "parts": [
    {
     "t": "prose",
     "text": "Secure, stateless cookie-based session library with encryption."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Iron Session popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "53",
       "of": "/ 100",
       "l": "Gid Score, #1618 overall"
      },
      {
       "n": "3.9M",
       "l": "downloads a week, npm"
      },
      {
       "n": "4,156",
       "l": "GitHub stars"
      },
      {
       "n": "6",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Iron Session is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Iron Session joined the catalog on its public numbers (3,899,201 downloads a week on npm and 4,156 GitHub stars), not on our project count: it is a dependency in 18 public GitHub projects of our scan, 6 of them set up for AI coding agents.",
      "The most used alternative in our scan is NextAuth.js (150 projects).",
      "Projects that use it most often also use clsx (83.3%), Class Variance Authority (77.8%), Tailwind Merge (77.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 83.3% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 77.8% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 77.8% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 77.8% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 94.4% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "next-themes",
       "path": "tools/next-themes/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "TanStack Query",
       "path": "tools/tanstack-react-query/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about Iron Session",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/vvo",
        "GitHub Sponsors: https://github.com/brc-dd"
       ]
      },
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        },
        {
         "text": "Helmet",
         "path": "tools/helmet/"
        },
        {
         "text": "bcrypt (JavaScript)",
         "path": "tools/bcrypt-npm/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Iron Session",
       "me": true,
       "facts": [
        "MIT",
        "Gid 53",
        "3.9M/wk"
       ]
      },
      {
       "name": "NextAuth.js",
       "why": "Complete open-source authentication solution designed for Next.js applications.",
       "path": "tools/next-auth/",
       "facts": [
        "ISC",
        "Gid 75",
        "9.4M/wk"
       ]
      },
      {
       "name": "Better Auth",
       "why": "Comprehensive authentication framework for TypeScript with multiple strategies.",
       "path": "tools/better-auth/",
       "facts": [
        "MIT",
        "Gid 79",
        "21.1M/wk"
       ]
      },
      {
       "name": "Clerk",
       "why": "Modern authentication and user management SDK for Next.js and React.",
       "path": "tools/clerk/",
       "facts": [
        "MIT",
        "Gid 62",
        "4.1M/wk"
       ]
      },
      {
       "name": "Passport.js",
       "why": "Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.",
       "path": "tools/passport/",
       "facts": [
        "MIT",
        "Gid 69",
        "10.5M/wk"
       ]
      }
     ],
     "more": "Compare Iron Session with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install iron-session"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for Iron Session yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm iron-session"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "53.3"
  ],
  [
   "Rank in category",
   "#71 of 141"
  ],
  [
   "GitHub",
   "vvo/iron-session"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/vvo.png"
}