npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

paseto-wasm

v1.0.2

Published

A PASETO implementation in Rust with WebAssembly (WASM) bindings

Readme

Enable PASETO in JavaScript browsers using WebAssembly (WASM)

Built with 🦀🕸 by Achmad Kurnianto

🌄 Background

PASETO (Platform-Agnostic Security Tokens) offers the benefits of JOSE standards (JWT, JWE, JWS) without their numerous design flaws.

This project began in 2022 when no PASETO libraries supported JavaScript browsers. The existing JavaScript/TypeScript implementations were:

  1. paseto by Filip Skokan - Node.js only
  2. paseto.js by Samuel Judson - Uses deprecated PASETO v1 and v2 implementations

Today, you can use the paseto-ts library for browser-based PASETO implementation. For better performance, consider paseto-wasm, which leverages WebAssembly.

Initially, I planned to use the pasetors crate by Johannes, which includes WASM support but lacks comprehensive testing. After evaluating options, I chose the rusty-paseto crate for its reliable WASM support.

🚀 Usage

Installation

This crate produces the paseto-wasm library, compatible with both JavaScript browsers and Node.js.

npm install paseto-wasm      # npm
yarn add paseto-wasm         # yarn
pnpm add paseto-wasm         # pnpm
bun add paseto-wasm          # bun

API Methods

PASETO v4 (Default)

The following methods are available by default:

  • encrypt_v4_local, decrypt_v4_local
  • sign_v4_public, verify_v4_public
  • generate_v4_local_key, generate_v4_public_key_pair
  • key_to_paserk_local, paserk_local_to_key
  • key_to_paserk_secret, paserk_secret_to_key
  • key_to_paserk_public, paserk_public_to_key
  • get_local_key_id, get_public_key_id, get_secret_key_id

PASETO v3

Access v3 implementations via paseto-wasm/v3:

  • encrypt_v3_local, decrypt_v3_local
  • sign_v3_public, verify_v3_public
  • generate_v3_local_key, generate_v3_public_key_pair
  • key_to_paserk_v3_local, paserk_v3_local_to_key
  • key_to_paserk_v3_secret, paserk_v3_secret_to_key
  • key_to_paserk_v3_public, paserk_v3_public_to_key
  • get_v3_local_key_id, get_v3_public_key_id, get_v3_secret_key_id

Documentation

Example usage is available in the test file. Comprehensive documentation is currently a work in progress.

📝 Contributing

🛠️ Building

pnpm run build:wasm

🧪 Testing

# Node.js environment
pnpm run test:wasm:node

# Browser environment
pnpm run test:wasm:web
pnpm run test:wasm:web:v3

For detailed contribution guidelines, please see CONTRIBUTING.md.

🛠️ Built With

📋 Roadmap

  • [ ] Complete documentation
  • [ ] Support PASERK in sign/verify operations
  • [ ] Implement custom allocator (e.g., lol_alloc or talc) for improved performance and reduced file size