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

aptai-jst

v1.1.0

Published

AptAi: AI-powered Aptos Blockchain SDK with Groq AI Integration

Readme

🔥 Teck Model - Advanced Aptos Blockchain AI

A comprehensive AI-powered SDK for Aptos blockchain with advanced DeFi analytics and NFT tracking capabilities.

🚀 Features

  • Real-time Token Analytics

    • Price tracking across multiple DEXes
    • Market cap and volume analysis
    • Liquidity monitoring
    • Verified pair detection
  • NFT Analytics

    • Collection statistics
    • Floor price tracking
    • Volume analysis
    • Multi-marketplace support
  • Wallet Management

    • Create new wallets
    • Balance checking
    • Token transfers
    • Transaction history
  • Market Analysis

    • Holder distribution
    • Transaction patterns
    • Price predictions
    • Market sentiment
  • AI Integration

    • Groq LLM integration
    • Market insights
    • Trading suggestions
    • Risk analysis

💻 Installation

npm install aptai

📚 Usage Guide

1. Basic Setup

const { AptAi } = require('aptai');

// Initialize SDK with required configuration
const ai = new AptAi({
  groqApiKey: 'your_groq_api_key', // Required
  nodeUrl: 'https://fullnode.mainnet.aptoslabs.com/v1', // Optional: Custom node URL
  maxTokens: 200, // Optional: Customize AI response length
  temperature: 0.7 // Optional: Customize AI response creativity
});

Security Note

Never hardcode or expose your private keys. Always use environment variables or secure key management systems.

2. Token Analysis

// Get token price and market data
const tokenInfo = await ai.getPrice('aptos');
console.log(tokenInfo);
/*
{
  name: 'Aptos',
  symbol: 'APT',
  price: 10.50,
  price_change_24h: 2.5,
  volume24h: 1000000,
  market_cap: 50000000,
  dex: {
    name: 'PancakeSwap',
    verified: true
  }
}
*/

// Get detailed token analysis
const analysis = await ai.analyzeTokenMetrics('token_address');
console.log(analysis);

3. Wallet Operations

// Create new wallet
const wallet = await ai.createWallet();
/*
{
  address: '0x...',
  privateKey: '0x...',
  publicKey: '0x...'
}
*/

// Check balance
const balance = await ai.getBalance('0x...');
console.log(`Balance: ${balance} APT`);

// Send tokens
const tx = await ai.sendTokens(
  'sender_private_key',
  'recipient_address',
  1.5 // amount in APT
);

4. AI Chat Features

// Get market insights
const insight = await ai.chat('Analyze APT price trend');
console.log(insight);

// Get token analysis
const tokenInsight = await ai.getAIInsights('token_address');
console.log(tokenInsight);

5. NFT Analytics

const nftData = await ai.getNFTData('collection_address');
console.log(nftData);
/*
{
  marketplaces: {
    topaz: { floor_price, volume },
    souffl3: { stats },
    bluemove: { collection }
  },
  analytics: {
    total_volume,
    floor_price,
    highest_sale
  }
}
*/

🤖 Telegram Bot Integration

const TelegramBot = require('node-telegram-bot-api');
const { AptAi } = require('aptai');

const bot = new TelegramBot('your_bot_token', { polling: true });
const ai = new AptAi({ groqApiKey: 'your_groq_key' });

// Add command handlers
bot.onText(/\/price (.+)/, async (msg, match) => {
  const price = await ai.getPrice(match[1]);
  bot.sendMessage(msg.chat.id, `Price: $${price.price}`);
});

🧪 Testing

npm test                   // Run all tests
npm run lint              // Check code style

📈 Error Handling

The SDK implements comprehensive error handling for:

  • Network failures
  • Invalid inputs
  • API rate limits
  • Transaction errors
  • Blockchain issues

🔧 Deployment

  1. Fork or clone the repository
  2. Install dependencies: npm install
  3. Set up your environment variables
  4. Start the bot: npm start

📄 License

MIT © Teck