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

@tinybirdpro/plugin-opaque

v0.1.3

Published

ElizaOS plugin for Opaque - Zero-knowledge proof generation in AWS Nitro Enclave for privacy-preserving blockchain transactions

Readme

@tinybirdpro/plugin-opaque

ElizaOS plugin for Opaque - Zero-knowledge proof generation in AWS Nitro Enclave for privacy-preserving blockchain transactions.

Features

  • Privacy-Preserving: Generate ZK proofs inside from Enclave Endpoints
  • Policy Enforcement: Enforce spending limits, time windows, and whitelists
  • Blockchain Integration: Execute transactions on Mantle with verified proofs
  • Secure: Proofs generated in hardware-isolated environment
  • Easy Integration: Simple ElizaOS plugin interface

Installation

npm install @tinybirdpro/plugin-opaque
# or
bun add @tinybirdpro/plugin-opaque

Configuration

Add these environment variables to your .env file:


# Agent Wallet Configuration
AGENT_PRIVATE_KEY=0x...

# User Configuration
OPAQUE_USER_ADDRESS=0x...
OPAQUE_INSTALLATION_ID=1

# Contract Addresses (Mantle Sepolia)
OPAQUE_VERIFIER_ADDRESS=0x...
OPAQUE_TOKEN_ADDRESS=0x...

# Enclave URL
OPAQUE_ENCLAVE_URL=http://{INSTANCE-IP}:8001

Usage

In your ElizaOS character file:

{
  "name": "YourAgent",
  "plugins": ["@tinybirdpro/plugin-opaque"],
  "settings": {
    "secrets": {}
  }
}

Example Interaction:

User: Send 50 USDC to 0x1234...5678

Agent: I'll execute this transaction with privacy protection using Opaque.
       [Generates ZK proof in enclave]
       [Verifies on-chain]
       ✅ Transaction executed: 0xabcd...

How It Works

  1. Policy Storage: User policies are stored in a remote Enclave
  2. Proof Generation: When executing a transaction, the agent:
    • Sends transaction data to the enclave via proxy url
    • Enclave validates against stored policies
    • Generates a ZK proof if policies are satisfied
  3. On-Chain Verification: Proof is verified on-chain before execution
  4. Transaction Execution: If proof is valid, transaction executes

Architecture

ElizaOS Agent
    ↓
Plugin Opaque
    ↓
AWS Nitro Enclave (Port 8001)
    ├── Policy Storage
    ├── Noir Circuit
    ├── Barretenberg (ZK Proof)
    └── Offline CRS Cache
    ↓
Mantle Blockchain
    ├── Verifier Contract
    └── Vault Contract

API

Actions

EXECUTE_OPAQUE_TRANSACTION

Execute a transaction with ZK proof generation.

Parameters:

  • recipient: Address to send tokens to
  • amount: Amount to send (in token units)

Example:

{
  "action": "EXECUTE_OPAQUE_TRANSACTION",
  "recipient": "0x1234567890123456789012345678901234567890",
  "amount": "50000000000000000000"
}

Policy Configuration

Policies are configured per user and installation:

{
  "maxAmount": {
    "enabled": true,
    "limit": "100000000000000000000" // 100 tokens
  },
  "timeWindow": {
    "enabled": true,
    "startHour": 9,
    "endHour": 17
  },
  "whitelist": {
    "enabled": true,
    "root": "0x...",
    "path": ["0x...", "0x..."],
    "index": 0
  }
}

Enclave Attestation

The enclave provides cryptographic proof that proofs are generated in a genuine AWS Nitro Enclave:

PCR0: c498ee76151fbd1cf0a5824cb958a2b6dfd4757eeebc0997abefa62ad095693bf5714aa6b8122836f67bc43b27c792ba

Anyone can verify by rebuilding the enclave and comparing PCR measurements.

Development

# Install dependencies
bun install

# Build plugin
bun run build

# Run tests
bun test

Links

License

MIT

Support

For issues and questions:

  • GitHub Issues: https://github.com/acgodson/opaque/issues
  • Enclave Endpoint: http://{instance-pubic-ip}:8001