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

@sima-prime/agent-sdk

v0.2.0

Published

TypeScript SDK foundation for SIMA agent and bot integrations.

Readme

SIMA Agent SDK

TypeScript client for SIMA's production agent protection purchase API.

Package: @sima-prime/agent-sdk
OpenAPI: https://sima-prime.com/openapi.json
API base: https://api.sima-prime.com

Core principle:

For bots and AI agents, the API is the product.

Install

npm install @sima-prime/agent-sdk
pnpm add @sima-prime/agent-sdk
yarn add @sima-prime/agent-sdk

Production purchase flow

Aligned to OpenAPI x-sima-agent-protection-purchase-flow-path:

POST /agent/wallet/nonce
POST /agent/wallet/verify
POST /agent/protection/offer
POST /agent/protection/purchase
GET  /agent/protection/certificates/{id}/payment-intent
     → caller sends SOL on-chain (outside SDK)
POST /agent/protection/certificates/{id}/confirm-payment
GET  /agent/protection/certificates/{id}

All commercial amounts are asset-denominated (contract asset / SOL). There are no USD commercial fields.

Quickstart

import { SimaAgentClient } from "@sima-prime/agent-sdk";

const client = new SimaAgentClient();

const nonce = await client.requestWalletNonce("YOUR_WALLET_ADDRESS");
// Sign nonce.message with your wallet outside this SDK.
const auth = await client.verifyWalletSignature({
  chain: "SOLANA",
  walletAddress: "YOUR_WALLET_ADDRESS",
  message: nonce.message,
  signature: "YOUR_SIGNATURE",
});
client.setAccessToken(auth.accessToken);

const offer = await client.getProtectionOffer({
  chain: "SOLANA",
  walletAddress: "YOUR_WALLET_ADDRESS",
  assetAddress: "YOUR_ASSET_ADDRESS",
  assetSymbol: "EXAMPLE",
  assetType: "TOKEN",
  protectedAmount: "1000",
});

const purchase = await client.purchaseProtection({
  ...offer,
  chain: "SOLANA",
  walletAddress: "YOUR_WALLET_ADDRESS",
  assetAddress: "YOUR_ASSET_ADDRESS",
  assetType: "TOKEN",
  protectedAmount: offer.protectedAmount,
  offerId: offer.offerId,
  protectionDecision: "PURCHASE_PROTECTION",
});

if (purchase.protectionDecision !== "PURCHASE_PROTECTION") {
  throw new Error("Protection declined");
}

const intent = await client.getPurchasePaymentIntent(purchase.certificateId);
// Send intent.amountDue SOL to intent.destinationTreasuryWalletAddress
// with your wallet / bot runtime. Keep the on-chain signature.

const active = await client.confirmPurchasePayment(purchase.certificateId, {
  paymentReference: intent.paymentReference,
  transactionSignature: "YOUR_ON_CHAIN_SIGNATURE",
});

console.log(active.certificateNumber, active.certificateStatus);

Client methods

| Method | Endpoint | | --- | --- | | requestWalletNonce | POST /agent/wallet/nonce | | verifyWalletSignature | POST /agent/wallet/verify | | getProtectionOffer | POST /agent/protection/offer | | purchaseProtection | POST /agent/protection/purchase | | getPurchasePaymentIntent | GET /agent/protection/certificates/{id}/payment-intent | | confirmPurchasePayment | POST /agent/protection/certificates/{id}/confirm-payment | | getProtectionCertificate | GET /agent/protection/certificates/{id} |

SIMA V1 economics

Premium             = 5% of protected amount
Coverage            = 50% of protected amount
Deductible          = 10% of protected amount
Maximum Net Payment = 40% of protected amount

Official timing (BM-001)

| Concept | Duration | | --- | --- | | Quote Validity | 30 seconds | | Payment Window | 30 seconds after acceptance | | Protection Window | 5 minutes after premium payment | | Certificate Lifetime | 24 hours from issuance | | Claim Window | 24 hours from issuance | | Historical Record | Permanent |

Safety boundaries

The SDK does not:

  • store private keys or seed phrases
  • sign wallet messages
  • execute blockchain transfers or collect premium on-chain
  • approve claims or authorize payouts
  • change SIMA V1 economics

A certificate is purchased coverage and the right to submit a claim for investigation. Claim decisions and treasury payout remain separate steps.

MCP

Read-only discovery MCP (does not call the API):

npx @sima-prime/mcp-server

sima_get_quote_flow documents getProtectionOffer with protectedAmount (asset-denominated).

Examples

examples/basic-flow.ts
examples/purchase-flow.ts

Placeholders only: YOUR_WALLET_ADDRESS, YOUR_SIGNATURE, YOUR_ON_CHAIN_SIGNATURE, etc.

Documentation

https://sima-prime.com/developers/public
https://sima-prime.com/openapi.json
https://sima-prime.com/llms.txt
https://sima-prime.com/ai-catalog.json

Build

npm install
npm run build

Open source boundary

This repository is the public SDK, examples, and discovery metadata.

Private core systems (treasury ops, claims investigation internals, production deployment) remain in the private SIMA monorepo.