{"library":"libsodium-wrappers","type":"library","category":null,"description":"libsodium-wrappers provides a JavaScript/TypeScript binding for the highly regarded Sodium cryptographic library, compiled to WebAssembly with a pure JavaScript fallback. It is currently stable at version 0.8.3, wrapping libsodium 1.0.22. The package offers comprehensive, high-performance cryptographic operations for both web browsers (Chrome, Firefox, Edge, Safari, Mobile Safari) and server-side environments like Node.js and Bun. It comes in two variants: a standard version with commonly used functions and a 'sumo' version that includes the full, exhaustive libsodium API. Since version 0.8.1, the library automatically includes TypeScript definitions, simplifying development in typed environments. Users must `await sodium.ready` to ensure the underlying cryptographic engine is fully initialized before using any functions or constants. The library maintains a regular release cadence to incorporate upstream libsodium updates and address issues.","language":"javascript","status":"active","version":"0.8.3","tags":["javascript","crypto","sodium","libsodium","nacl","chacha20","poly1305","curve25519","ed25519","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install libsodium-wrappers","imports":["import sodium from 'libsodium-wrappers';","import { ready, from_string, to_string } from 'libsodium-wrappers';","const sodium = require('libsodium-wrappers');\n(async () => { await sodium.ready; /* use sodium */ })();"]},{"cmd":"yarn add libsodium-wrappers","imports":[]},{"cmd":"pnpm add libsodium-wrappers","imports":[]}],"homepage":null,"github":"https://github.com/jedisct1/libsodium.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/libsodium-wrappers","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/libsodium-wrappers/compatibility"}}