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

peely

v0.9.6

Published

Your personal AI assistant

Downloads

616

Readme

🍌 Peely

Your Personal AI Assistant in the Terminal

GitHub issues npm License

A lightweight, extensible command-line AI assistant powered by GitHub Copilot

FeaturesQuick StartUsageDaemon ModeDocumentation

Demo of Peely in action, showing terminal interactions and Discord bot responses


🌟 Features

  • 🚀 Fast & Lightweight — Quick AI queries right from your terminal
  • 🔌 Extensible Plugin System — Custom tools, timers, and integrations
  • 💬 Multiple Interfaces — Terminal TUI, Discord bot, or CLI commands
  • ⚡ Daemon Mode — Persistent background operation with shared state
  • 🎯 GitHub Copilot Support — Leverage GitHub Copilot's AI capabilities

🎯 Why Peely?

Peely brings AI assistance directly to your command line with a focus on speed, flexibility, and ease of use. Whether you need quick answers, want to run a Discord bot, or need a persistent AI assistant running in the background, Peely has you covered.

📋 Prerequisites

  • Node.js (LTS version 14 or higher)
  • npm (bundled with Node.js)
  • GitHub Copilot subscription (for AI features)

⚠️ Important Security Note

Versions prior to 0.9.4 are vulnerable to a critical security issue. Please update to the latest version immediately.

🚀 Quick Start

Installation

# Clone the repository
git clone https://github.com/real-kijmoshi/peely.git
cd peely

# Install dependencies
npm install

# Start interactive mode
npm start

Alternatively, install the published package from npm:

# Install globally to use the `peely` CLI
npm install -g peely

# Or install locally in a project
npm install peely

# Run installed CLI
peely

First-Time Setup

# Run the setup wizard
npx peely setup

# Configure your AI model
npx peely model

# Start using Peely!
npx peely chat "Hello, Peely!"

💡 Usage

Interactive Terminal UI

Launch the interactive TUI for a conversation-style experience:

npm start
# or
npx peely

Available Commands:

  • /help — Show available commands
  • /clear — Clear conversation history
  • /status — Show configuration status
  • /pair discord <code> — Pair your Discord account
  • /exit or /quit — Exit the application

One-Shot Commands

Quick AI queries without entering interactive mode:

# Ask a question
npx peely chat "What's the weather like?"

# Get help
npx peely help

# Check status
npx peely status

Discord Bot

Run Peely as a Discord bot:

# Set up Discord bot token
npx peely pair discord setup

# Start Discord bot
npx peely discord

⚡ Daemon Mode

Recommended for the best experience!

The daemon runs Peely in the background, providing persistent operation, faster responses, and shared state across all interfaces.

🎬 Starting the Daemon

npx peely daemon start
# or
npm run daemon:start

The daemon will:

  • ✅ Start the Discord bot (if configured)
  • ✅ Handle plugin events and timers
  • ✅ Accept connections from CLI clients
  • ✅ Maintain conversation history
  • ✅ Run in the background until stopped

📡 Using the Daemon

Once running, all CLI commands automatically connect to the daemon:

# Chat (connects to daemon automatically)
npx peely chat "Explain quantum computing"

# Check daemon status
npx peely daemon status

# Restart daemon (useful after updates)
npx peely daemon restart

# Stop daemon
npx peely daemon stop

🔄 Updating Peely

When you update Peely, simply restart the daemon to reload all code:

git pull
npx peely daemon restart

No configuration loss! Your conversation history and settings are preserved.

🏗️ Architecture

The daemon architecture provides several benefits:

| Legacy Mode | Daemon Mode ✨ | |----------------|-------------------| | Separate processes for each interface | Single persistent process | | No shared state | Shared conversation history | | Manual restarts required | Hot reload with daemon restart | | Slower startup | Instant CLI responses |

For detailed architecture information, see DAEMON.md.

📚 Documentation

🛠️ Development

Project Structure

peely/
├── cli.js              # Main CLI entry point
├── src/
│   ├── ai/             # AI provider integrations
│   ├── daemon/         # Daemon server and client
│   ├── interfaces/     # Terminal and Discord interfaces
│   ├── plugins/        # Plugin system
│   └── utils/          # Utilities and configuration
├── data/               # Persistent data storage

Running Tests

npm test

Configuration

Configuration is stored in config.json. You can modify settings using CLI commands or by editing the file directly.

🐛 Troubleshooting

Getting Help

🤝 Contributing

Contributions are welcome! Here are some ways you can help:

  • 🐛 Report bugs and issues
  • 💡 Suggest new features or improvements
  • 📝 Improve documentation
  • 🔧 Submit pull requests

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

👤 Author

real-kijmoshi


⬆ Back to Top

Made with ❤️ by the Peely team