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

apexbot

v1.1.5

Published

ApexBot - Your free, private AI assistant. 100% free with Ollama (local AI). Multi-channel: Telegram, Discord, WebChat. Tools & Skills system with Spotify, Obsidian, and more!

Readme

🦊 ApexBot

Personal AI assistant you run on your own devices. 100% Free with Ollama.

   /\   /\
  //\\_//\\  ✦ ApexBot
  \_◕ ◕_/   Local AI Assistant
   /   \   

TypeScript License: MIT Ollama

100% Free | Open Source | Private | Local-First


✨ Features

🤖 Local AI (Ollama)

  • Free - No API costs, no subscriptions
  • Private - Data never leaves your machine
  • Offline - Works without internet
  • Models - llama3.2, mistral, qwen2.5, codellama

💬 Multi-Channel Support

| Channel | Status | Description | |---------|--------|-------------| | CLI | ✅ Ready | Terminal chat with shortcuts | | Telegram | ✅ Ready | Full bot integration | | Discord | ✅ Ready | Guilds and DMs | | WhatsApp | ✅ Ready | Via Baileys | | WebChat | ✅ Ready | Built-in dashboard | | Slack | ✅ Ready | Workspace integration | | Signal | ✅ Ready | Secure messaging | | Matrix | ✅ Ready | Decentralized chat |

🧠 Brain System

  • Personality profiles (SOUL files)
  • Long-term memory with LanceDB vector store
  • Auto-recall - relevant memories injected into context
  • Auto-capture - preferences and decisions saved automatically
  • Context-aware responses
  • Lobster Engine for reasoning

🔄 Model Fallback Chain

  • Automatic failover between AI providers
  • Tries: Ollama → Google → Anthropic
  • No manual intervention needed

🛠️ 30+ Skills

| Category | Skills | |----------|--------| | Communication | Telegram, WhatsApp, Discord, Slack, Signal, iMessage, Matrix, Twitter, Gmail | | Productivity | Obsidian, Notion, Trello, GitHub, Calendar, Reminders, Apple Notes, Memory | | Media | Spotify, Sonos, Voice/TTS, Image Gen, GIF Search | | Smart Home | Home Assistant, Philips Hue | | Automation | Browser, Cron, 1Password, Weather, Search, System |

⚡ Moltbot-Style Enhancements

  • Rate limiting via @grammyjs/transformer-throttler
  • Typing indicators - shows "typing..." while processing
  • Memory tools - memory_recall, memory_store, memory_forget

⌨️ Claude Code Style CLI

Input Prefixes: | Prefix | Action | Example | |--------|--------|---------| | ! | Bash command | !ls -la | | / | Bot commands | /help | | @ | File reference | @src/index.ts | | & | Background task | &npm test |

Keyboard Shortcuts:

  • Ctrl+C - Exit
  • Ctrl+L - Clear screen
  • ↑↓ - History navigation
  • \+Enter - Multi-line input

🌐 Web Dashboard

  • Real-time chat interface
  • File upload (images, code, files)
  • Session management
  • Channel status monitoring
  • System logs

🚀 Quick Start

1. Install Ollama

# Windows
winget install Ollama.Ollama

# macOS
brew install ollama

# Linux
curl -fsSL https://ollama.com/install.sh | sh

2. Download a model

ollama pull llama3.2
ollama serve

3. Install & Run ApexBot

# Clone
git clone https://github.com/emes789/apexbot.git
cd apexbot

# Install
npm install

# Setup (interactive)
npx ts-node src/cli/index.ts onboard

# Start chat
npx ts-node src/cli/index.ts chat

📁 Project Structure

apexbot/
├── src/
│   ├── agent/        # AI agent manager
│   ├── brain/        # Personality & memory
│   ├── channels/     # Telegram, Discord, etc.
│   ├── cli/          # Terminal interface
│   ├── gateway/      # HTTP/WebSocket server
│   ├── lobster/      # Reasoning engine
│   ├── memory/       # Vector store
│   ├── sessions/     # Conversation state
│   ├── skills/       # 30+ integrations
│   ├── safety/       # Rate limiting
│   └── tools/        # Tool registry
├── scripts/          # Install scripts
└── docs/             # Documentation

⚙️ Configuration

Config file: ~/.apexbot/config.json

{
  "gateway": { "port": 18789 },
  "agent": {
    "provider": "ollama",
    "apiUrl": "http://localhost:11434",
    "model": "llama3.2",
    "enableTools": true
  },
  "channels": {
    "telegram": { "enabled": true, "token": "..." },
    "discord": { "enabled": true, "token": "..." }
  }
}

AI Providers

| Provider | Cost | Notes | |----------|------|-------| | Ollama | Free | Local, recommended, default | | Google Gemini | Free tier | Cloud API, fallback #1 | | Anthropic Claude | Paid | Cloud API, fallback #2 | | OpenAI GPT | Paid | Cloud API | | Kimi | Free tier | Cloud API |

Memory Plugin (Optional)

# Required for memory_recall/store/forget
OPENAI_API_KEY=sk-...

# Optional
MEMORY_EMBEDDING_MODEL=text-embedding-3-small
MEMORY_DB_PATH=~/.apexbot/memory/lancedb

🔧 CLI Commands

# Interactive setup
npx ts-node src/cli/index.ts onboard

# Terminal chat
npx ts-node src/cli/index.ts chat

# Start gateway server
npx ts-node src/cli/index.ts gateway

# Check status
npx ts-node src/cli/index.ts status

Chat Commands

| Command | Description | |---------|-------------| | /help | Show commands | | /status | Session info | | /reset | Clear history | | /model <name> | Switch model | | /skills | List skills | | /tools | List tools | | /fox | Show mascot 🦊 |


📊 Architecture

┌─────────────────────────────────────────────┐
│              Messaging Channels              │
│  Telegram │ Discord │ WhatsApp │ CLI │ Web  │
└────────────────────┬────────────────────────┘
                     │
┌────────────────────▼────────────────────────┐
│           Gateway Server (:18789)            │
│     HTTP API │ WebSocket │ Dashboard         │
└────────────────────┬────────────────────────┘
                     │
┌────────────────────▼────────────────────────┐
│               Orchestrator                   │
│  Sessions │ Event Bus │ Rate Limit │ Safety │
└────────────────────┬────────────────────────┘
                     │
       ┌─────────────┼─────────────┐
       ▼             ▼             ▼
┌────────────┐ ┌───────────┐ ┌──────────┐
│   Brain    │ │   Agent   │ │  Skills  │
│ Personality│ │  Manager  │ │ 30+ APIs │
│   Memory   │ │  Ollama   │ │          │
└────────────┘ └───────────┘ └──────────┘

🤝 Contributing

git clone https://github.com/emes789/apexbot.git
cd apexbot
npm install
npm run dev

See CONTRIBUTING.md for guidelines.


📄 License

MIT License. See LICENSE.


🙏 Acknowledgments

  • Ported features from Clawdbot/Moltbot
    • Model fallback chain
    • Long-term memory with LanceDB
    • Rate limiting & typing indicators
  • Powered by Ollama
  • Built with TypeScript, grammy, discord.js