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

vibeguard-sui-security

v0.2.1

Published

TypeScript SDK for VibeGuard AI transaction security analysis

Readme

vibeguard-sui-security

TypeScript SDK for VibeGuard AI — real-time transaction security and decentralized threat intelligence for the Sui ecosystem.

Analyze unsigned transaction bytes before a user signs. Detects honeypots, intent mismatches, and known malicious contracts. Threats are automatically registered on-chain via the VibeGuard ReputationRegistry.

No API key required.

Installation

npm install vibeguard-sui-security

Usage

Analyze a Transaction

import { VibeGuard } from 'vibeguard-sui-security';

const guard = new VibeGuard();

const result = await guard.analyzeTransaction({
  transactionBytes: 'AAACAA...', // Raw Base64 from wallet provider (before signing)
  network: 'mainnet',
  userAddress: '0xYourUserAddress',
  userIntent: 'Claim airdrop',
  onThreatDetected: (result) => {
    // Fires on RED results — threat is auto-reported on-chain by VibeGuard
    console.error('🚨 HONEYPOT DETECTED:', result.explanation.headline);
  }
});

if (result.risk.riskLevel === 'RED') {
  // Block the transaction
}

Risk Levels

| Level | Meaning | |---|---| | GREEN | Transaction appears safe | | YELLOW | Proceed with caution | | RED | High risk — block and warn user |

Retrieve a Threat Report

Resolve a ThreatReported event's blobId to the full AI report stored on Walrus decentralized storage:

const report = await guard.retrieveThreatReport(
  'oNyrr0jEVATWSAGkJHnmoKVICnFosv1k4YNayZXcRgk', // blobId from ThreatReported event
  '0x08108c7412210ef9816aea2de0899f2dcad6f521631f314ab1fa29bf353af9a4' // blobObjectId (optional — enables liveness check)
);

console.log(report.riskLevel);    // 'RED'
console.log(report.reasons);      // ['Intent mismatch detected', ...]
console.log(report.plainEnglish); // Full AI explanation

Passing blobObjectId enables a liveness gate — if the Walrus Blob NFT no longer exists on Sui, the call throws with a 410 Gone error.

API Reference

new VibeGuard(config?)

| Option | Type | Default | |---|---|---| | baseUrl | string | https://vibeguardai.vercel.app |

analyzeTransaction(options): Promise<AnalysisResult>

| Option | Type | Required | |---|---|---| | transactionBytes | string | ✅ Base64 transaction bytes | | network | 'mainnet' \| 'testnet' \| 'devnet' | ✅ | | userAddress | string | Recommended | | userIntent | string | Recommended (e.g. 'Claim airdrop') | | onThreatDetected | (result: AnalysisResult) => void | Optional callback on RED |

retrieveThreatReport(blobId, blobObjectId?): Promise<ThreatReport>

| Param | Type | Description | |---|---|---| | blobId | string | Walrus blob ID from ThreatReported event | | blobObjectId | string | Optional Sui Blob NFT object ID — enables liveness gate |

REST API

The underlying REST API is also fully open:

# Analyze a transaction
curl -X POST https://vibeguardai.vercel.app/api/explain \
  -H "Content-Type: application/json" \
  -d '{
    "transactionBytes": "AAACAA...",
    "network": "mainnet",
    "userAddress": "0x...",
    "userIntent": "Claim airdrop"
  }'

# Retrieve a threat report from Walrus
curl "https://vibeguardai.vercel.app/api/threat/<blobId>?blobObjectId=<blobObjectId>"

Full API docs: vibeguardai.vercel.app/api-docs

On-Chain Threat Registry

Every RED detection automatically registers the malicious package on the VibeGuard ReputationRegistry Move contract on Sui Testnet, emitting a ThreatReported event with a Walrus blob reference. Wallet providers and dApps can subscribe to this event feed as a real-time security signal.

License

MIT