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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@maikers/mainframe-sdk

v1.2.4

Published

TypeScript SDK for Mainframe protocol - Powering the agentic economy through Agent-NFTs with enterprise-grade security, performance optimization, and built-in revenue sharing on Solana

Downloads

39

Readme

Mainframe SDK

TypeScript SDK for Mainframe protocol - Powering the agentic economy

npm version npm downloads GitHub Stars TypeScript License

Tests Code Coverage Bundle Size Discord Twitter Follow

Mainframe SDK powers the agentic economy by transforming any verified Solana NFT collection into intelligent AI agents. Create Agent-NFTs that participate in autonomous economic activities with zero-knowledge security, 10K+ operations/minute performance, and built-in revenue sharing.

What is Mainframe SDK?

The Mainframe SDK enables developers to create AI agents from verified NFT collections on Solana. Unlike other solutions that require custom integrations, Mainframe leverages Solana's native Collection.verified = true requirement - creating a permissionless yet secure system where any verified collection can participate in the agentic economy.

Built on Mainframe v1.0.0 program (mnfm211AwTDA8fGvPezYs3jjxAXgoucHGuTMUbjFssE) with elizaOS framework integration.

Perfect for DeFi trading bots, NFT collection management, gaming agents, social media automation, and any application requiring intelligent blockchain interactions.

Features

  • 🔒 Zero-Knowledge Security - Client-side XChaCha20 encryption, protocol never sees private data
  • ⚡ Production Performance - 10K+ ops/min throughput, <100ms cached responses
  • 💰 Revenue Sharing - Built-in affiliate program with up to 50% commission
  • 🛠️ Developer Experience - TypeScript-first with comprehensive tooling and testing
  • 🔌 Framework Ready - Anchor, Wallet Adapter, and React integrations included

Installation

npm install @maikers/mainframe-sdk

Quick Start

import { createMainnetSDK } from "@maikers/mainframe-sdk";

// Initialize SDK (protocolWallet deprecated - fetched from on-chain config)
const sdk = createMainnetSDK({ 
  storage: { arweave: { gateway: 'https://arweave.net' } }
});
await sdk.initialize("Phantom");

// Create AI agent from verified NFT (0.05 SOL fee*)
const result = await sdk.createAgent(nftMint, {
  name: "Trading Assistant",
  description: "DeFi trading bot", 
  framework: "elizaOS",
  capabilities: [{ type: "defi", plugins: ["jupiter-swap"] }]
});
// *Fee varies: Genesis collection (FREE), Partner collections (25-75% off)

Complete Examples → | Full Documentation →

Revenue Sharing

Earn commission on every agent activation through the tier-based affiliate system:

// Create agent with affiliate revenue
const result = await sdk.createAgent(nftMint, agentConfig, {
  affiliate: 'YOUR_WALLET_ADDRESS',
  referrer: 'OPTIONAL_REFERRER_ADDRESS'  // For 5% referrer bonus
});

// Track earnings
sdk.events.onAffiliatePaid((event) => {
  console.log(`Earned: ${event.affiliateAmount} lamports`);
});

Affiliate Tiers & Commission Rates

| Tier | Sales Required | Commission Rate | |------|----------------|-----------------| | 🥉 Bronze | 0-99 | 15% | | 🥈 Silver | 100-499 | 20% | | 🥇 Gold | 500-1,999 | 30% | | 💎 Platinum | 2,000-9,999 | 40% | | 💎💎 Diamond | 10,000+ | 50% |

Features:

  • ✅ Permissionless participation - no registration required
  • ✅ Auto-initialize on first commission
  • ✅ Tier progression based on lifetime sales
  • ✅ Single-level referrals (earn 5% from your referrals' commissions)
  • ✅ Custom bonuses for promotions (set by protocol authority)
  • ✅ Instant on-chain payouts

Affiliate Program Details →

Framework Integration

React/Next.js

import { QuickStartIntegrations } from "@maikers/mainframe-sdk";
const sdk = QuickStartIntegrations.walletAdapter(wallet.adapter, connection);

Anchor

import { QuickStartIntegrations } from "@maikers/mainframe-sdk";  
const sdk = QuickStartIntegrations.anchor(provider);

Integration Examples → | API Reference →

Documentation

| Guide | Description | |-------|-------------| | Quick Start | Get up and running in minutes | | API Reference | Complete method documentation | | Security Model | Architecture and best practices | | Integration Examples | Framework-specific patterns | | Performance Guide | Optimization strategies | | Release Management | Versioning and publishing guide | | Troubleshooting | Common issues and solutions |

Development

git clone https://github.com/MaikersHQ/maikers-mainframe-sdk
cd maikers-mainframe-sdk
pnpm install && pnpm run build

Contributing Guide → | Development Setup → | Release Process →

Resources

License

Apache 2.0 - see LICENSE


Built by maikers - creators of realities