tweetnacl
npmv1.0.3TypeScriptPort of TweetNaCl cryptographic library to JavaScript
Not recommended for new projects
No — tweetnacl should not be adopted for new projects. Last published 2403 days ago.
- AAdoption: grade A, Excellent.
36M downloads per week and 2 known dependents.
- FMaintenance: grade F, Failing.
Last published 2403 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 171 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
Unlicense — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding tweetnacl to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
tweetnacl vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| tweetnaclthis page | 36M | 2 | Unlicense | 6 years ago |
| @noble/hashes | 0 | 1 | MIT | 14 days ago |
| node-forge | 0 | 5 | (BSD-3-Clause OR GPL-2.0) | 14 days ago |
| jose | 0 | 2 | MIT | 15 days ago |
| fast-json-stable-stringify | 158.4M | 2 | MIT | 14 days ago |
| json-stable-stringify-without-jsonify | 138.4M | 1 | MIT | 14 days ago |
Dependencies
Declared by tweetnacl v1.0.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (7)
Used by
Popular packages that depend on tweetnacl.
Relationship graph
Dependencies (left) and dependents (right) of tweetnacl.
Frequently installed together
Modern Buffer API polyfill without footguns
Contains parsers and serializers for ASN.1 (currently BER only)
The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.
A light, featureful and explicit option parsing library.
ECC JS code based on JSBN
getpass for node.js
Port of the OpenBSD bcrypt_pbkdf function to pure JS
Extra assertions on top of node's assert module
Release history
No releases in the last two years, typically about 45 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.3latest | 6 years ago | 171 KB | Unlicense |
| 1.0.2 | 6 years ago | 170 KB | Unlicense |
| 1.0.1 | 7 years ago | 170 KB | Unlicense |
| 1.0.0 | 9 years ago | — | Unlicense |
| 1.0.0-rc.1 | 9 years ago | — | Unlicense |
| 0.14.5 | 9 years ago | — | Unlicense |
| 0.14.4 | 9 years ago | — | SEE LICENSE IN COPYING.txt |
| 0.14.3 | 10 years ago | — | SEE LICENSE IN COPYING.txt |
| 0.14.2 | 10 years ago | — | SEE LICENSE IN COPYING.txt |
| 0.14.1 | 10 years ago | — | SEE LICENSE IN COPYING.txt |
| 0.14.0 | 10 years ago | — | Public domain |
| 0.13.3 | 10 years ago | — | Public domain |
| 0.13.2 | 11 years ago | — | CC0-1.0 |
| 0.13.1 | 11 years ago | — | Public domain |
| 0.13.0 | 11 years ago | — | Public domain |
Overview
tweetnacl is an npm package that port of TweetNaCl cryptographic library to JavaScript. It is extremely widely used, with about 36M downloads per week and 2 known dependents in the graph. The latest version is 1.0.3, released under the Unlicense license.
Who should use it
Teams working in the npm ecosystem who need port of TweetNaCl cryptographic library to JavaScript and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (36M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (Unlicense).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use tweetnacl?
No — tweetnacl should not be adopted for new projects. Last published 2403 days ago.
How do I install tweetnacl?
Run `npm install tweetnacl` to add tweetnacl to your npm project.
What license is tweetnacl released under?
tweetnacl is distributed under the Unlicense license.
How popular is tweetnacl?
tweetnacl has approximately 36,032,209 downloads per week and 2 known dependent packages.
Is tweetnacl still maintained?
The most recent release of tweetnacl (v1.0.3) was published 6 years ago.
Does tweetnacl run install scripts?
No. tweetnacl does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.