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

bridgebase-sdk

v1.0.2

Published

The Trust Layer for the Agentic Economy — Quantum-Safe AI Agent Gateway SDK

Downloads

21

Readme

BridgeBase SDK

The Trust Layer for the Agentic Economy

Quantum-safe identity and transaction gating for AI agents. Uses ML-KEM-768 (NIST FIPS 203) post-quantum cryptography.

Install

npm install bridgebase-sdk

Quick Start

const { BridgeBaseClient } = require('bridgebase-sdk')

const client = new BridgeBaseClient()

// Register agent (run once, save private key)
const result = await client.register('my-agent-001')
const privateKey = result.privateKey  // SAVE THIS

// Authenticate (run every session)
const token = await client.authenticate('my-agent-001', privateKey)

// Gate a transaction
const cleared = await client.validateToken('my-agent-001', token)
// true = cleared, throws BridgeBaseError if blocked

Why BridgeBase

  • $2.87B in crypto hacks in 2025 — 76% from key compromises
  • Quantum computers will break current encryption within years
  • ML-KEM-768 is the NIST FIPS 203 standard — quantum-proof today
  • No other solution combines AI agent identity + blockchain + PQC

API

new BridgeBaseClient(options?)

| Option | Default | Description | |---|---|---| | gatewayUrl | https://pqc-gateway-production.up.railway.app | Gateway URL | | timeout | 30000 | Request timeout in ms |

client.register(agentId, metadata?)

Register a new agent. Returns { agentId, publicKey, privateKey, algorithm }.

Save the private key — it is never stored by the gateway.

client.authenticate(agentId, privateKey)

Full 3-step ML-KEM-768 handshake. Returns session token.

client.validateToken(agentId, sessionToken)

Gate a transaction. Returns true if cleared, throws BridgeBaseError (403) if blocked.

client.getPassport(agentId)

Returns { agentId, publicKey, reputationScore, registeredAt, metadata }.

client.listAgents()

Returns array of registered agent IDs.

client.reputation(agentId)

Returns agent reputation score (increments on every successful handshake).

client.health()

Returns { status, algorithm }.

ElizaOS Integration

const { BridgeBaseClient } = require('bridgebase-sdk')

const bridge = new BridgeBaseClient()

// In your ElizaOS agent action:
async function secureAction(agentId, privateKey) {
  const token = await bridge.authenticate(agentId, privateKey)
  const cleared = await bridge.validateToken(agentId, token)
  if (cleared) {
    // Execute your Solana transaction
  }
}

Error Handling

const { BridgeBaseClient, BridgeBaseError } = require('bridgebase-sdk')

try {
  const cleared = await client.validateToken(agentId, token)
} catch (err) {
  if (err instanceof BridgeBaseError && err.statusCode === 403) {
    console.log('Transaction blocked — invalid token')
  }
}

Links

  • Gateway: https://pqc-gateway-production.up.railway.app
  • GitHub: https://github.com/BridgeBaseAI/pqc-gateway
  • Docs: https://pqc-gateway-production.up.railway.app/docs

License

MIT