Ross ROSS = Recommend OSS · open-source software intelligence for agents

dchest/tweetnacl-js

Port of TweetNaCl cryptographic library to JavaScript observed · 2026-08-28

github.com/dchest/tweetnacl-js · homepage · JavaScript · Unlicense (permissive) observed · 2026-08-28

Health v2 · maintenance only

39/100

  • Activity 37
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4623
  • days_rel: n/a
  • days_push: 383
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1921 stars · 296 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

TweetNaCl.js is a JavaScript port of the TweetNaCl/NaCl cryptographic library, providing high-level APIs for secret-key and public-key authenticated encryption, Ed25519 signatures, SHA-512 hashing, and random byte generation in a compact 7 KB package. It works in modern browsers and Node.js, is public domain, and has been security-audited by Cure53.

Use cases

  • encrypt and decrypt messages with a shared secret key in JavaScript
  • implement public-key authenticated encryption with Curve25519 in the browser
  • sign and verify messages with Ed25519 signatures in Node.js
  • hash data with SHA-512 in a web app
  • generate cryptographically secure random bytes in JavaScript
  • perform constant-time comparison of secrets to avoid timing attacks
  • add compact crypto to a browser extension or client-side app

When to choose

  • you need a small, audited, dependency-free crypto library for browser or Node.js
  • you need NaCl-compatible primitives like secretbox, box, or Ed25519 in JavaScript
  • you want a public-domain license with no licensing restrictions
  • you need a faithful port of TweetNaCl with a thin idiomatic API

When to avoid

  • you can use the WebCrypto API, which covers X25519, Ed25519, and SHA-512 natively
  • you need a full security protocol or key-committing encryption, since this is a low-level primitive library
  • you need XSalsa20-Poly1305 with post-quantum or key-commitment guarantees
  • you need high-performance crypto where native implementations are available

Facets

library · maturity stable

cryptography auth serialization security developer-tools web-development browser cross-platform tweetnacl nacl libsodium ed25519 curve25519 salsa20 poly1305 sha-512 secretbox public-key-cryptography authenticated-encryption signatures audited javascript nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
dchest/tweetnacl-jsmain39

For agents

markdown · JSON · MCP: product_card(name="dchest/tweetnacl-js")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem