{
 "kind": "tool",
 "slug": "libsodium-wrappers",
 "path": "tools/libsodium-wrappers/",
 "name": "libsodium.js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Auth and security libraries",
   "tools/auth-security/"
  ]
 ],
 "lead": "The Sodium crypto library compiled to JavaScript and WebAssembly.",
 "chips": [
  {
   "label": "Auth and security libraries",
   "path": "tools/auth-security/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install libsodium-wrappers"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/jedisct1/libsodium.js"
  },
  {
   "label": "Website",
   "href": "https://github.com/jedisct1/libsodium.js"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "ISC",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/jedisct1/libsodium.js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Oct 28, 2026",
   "note": "Latest GitHub release Apr 19, 2026. ",
   "src": "https://github.com/jedisct1/libsodium.js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "4 projects",
   "status": "info",
   "sub": "#86 of 141 in its category",
   "note": "Dependency in 4 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 libsodium.js does",
   "parts": [
    {
     "t": "prose",
     "text": "The Sodium crypto library compiled to JavaScript and WebAssembly."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "libsodium.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "49",
       "of": "/ 100",
       "l": "Gid Score, #2069 overall"
      },
      {
       "n": "7.7M",
       "l": "downloads a week, npm"
      },
      {
       "n": "1,167",
       "l": "GitHub stars"
      },
      {
       "n": "4",
       "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 libsodium.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "libsodium.js joined the catalog on its public numbers (7,701,951 downloads a week on npm and 1,167 GitHub stars), not on our project count: it is a dependency in 14 public GitHub projects of our scan, 4 of them set up for AI coding agents.",
      "The most used alternative in our scan is crypto-js (32 projects).",
      "Projects that use it most often also use ws (57.1%), Zod (64.3%), Anthropic SDK (35.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 57.1% of its projects",
       "v": "ws",
       "path": "tools/ws/"
      },
      {
       "l": "In 64.3% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 35.7% of its projects",
       "v": "Anthropic SDK",
       "path": "tools/anthropic-ai/"
      },
      {
       "l": "In 28.6% of its projects",
       "v": "OpenAI",
       "path": "tools/openai-npm/"
      },
      {
       "l": "In 28.6% of its projects",
       "v": "uuid",
       "path": "tools/uuid/"
      },
      {
       "l": "In 28.6% of its projects",
       "v": "open",
       "path": "tools/open/"
      },
      {
       "l": "In 78.6% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 42.9% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about libsodium.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Auth and security libraries",
       "path": "tools/auth-security/",
       "items": [
        {
         "text": "bcryptjs",
         "path": "tools/bcryptjs/"
        },
        {
         "text": "NextAuth.js",
         "path": "tools/next-auth/"
        },
        {
         "text": "jsonwebtoken",
         "path": "tools/jsonwebtoken/"
        },
        {
         "text": "cryptography",
         "path": "tools/cryptography/"
        },
        {
         "text": "PyJWT",
         "path": "tools/pyjwt/"
        },
        {
         "text": "jose",
         "path": "tools/jose/"
        },
        {
         "text": "Better Auth",
         "path": "tools/better-auth/"
        },
        {
         "text": "DOMPurify",
         "path": "tools/dompurify/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "libsodium.js",
       "me": true,
       "facts": [
        "ISC",
        "Gid 49",
        "7.7M/wk"
       ]
      },
      {
       "name": "crypto-js",
       "why": "JavaScript library implementing cryptographic standards for encryption and hashing.",
       "path": "tools/crypto-js/",
       "facts": [
        "MIT",
        "Gid 73",
        "28.1M/wk"
       ]
      }
     ],
     "more": "Compare libsodium.js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install libsodium-wrappers"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for libsodium.js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm libsodium-wrappers"
  ],
  [
   "Category",
   "Auth and security libraries"
  ],
  [
   "License",
   "ISC"
  ],
  [
   "Gid Score",
   "49.2"
  ],
  [
   "Rank in category",
   "#86 of 141"
  ],
  [
   "GitHub",
   "jedisct1/libsodium.js"
  ],
  [
   "Last change",
   "Oct 28, 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/jedisct1.png"
}