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

wagent

v1.0.2

Published

WhatsApp Agent — AI-powered WhatsApp assistant using WAMCP + Groq

Readme

wagent

Programmable WhatsApp AI agent that runs from your terminal.

It pairs with WhatsApp first, then asks for an AI provider/API key, then bootstraps itself by messaging you for identity, purpose, vibe, and permissions.

Install / Run

npx wagent

Or install globally:

npm i -g wagent
wagent

From source:

pnpm install
pnpm build
pnpm wagent

First Run Flow

  1. Pair WhatsApp by scanning the QR code.
  2. Choose an AI provider.
  3. Enter API key.
  4. The agent messages you to configure its identity and permissions.
  5. It drafts a system prompt and asks for confirmation.
  6. After confirmation, it compacts setup context and follows the saved prompt.

Providers

Setup wizard options:

  1. Gemini + Web Search (recommended)
  2. Groq
  3. Other OpenAI-compatible endpoint

Config is stored locally, not in .env:

  • Linux/macOS: ~/.config/wagent/config.json
  • Windows: %APPDATA%/wagent/config.json

The WhatsApp SQLite session is stored in the same config directory as wagent.db.

Environment variables still work for advanced use:

GROQ_API_KEY=...
GROQ_BASE_URL=https://api.groq.com/openai/v1
GROQ_MODEL=openai/gpt-oss-120b

Commands

wagent              # start agent
wagent start        # start agent
wagent setup        # re-run provider/API-key setup after WhatsApp pairing
wagent config       # show config path/provider/model
wagent --verbose    # lifecycle logs
wagent --debug      # debug logs

Message Permissions

By default:

  • The agent only reads/responds to you.
  • It does not auto-reply to others.
  • Group chats are ignored unless someone tags @wagent.
  • @wagent bypasses filters, including blacklist.

The bootstrap conversation lets you configure who it can read, reply to, or message.

Anti-Ban / Human-Like Behavior

  • Replies are delayed randomly between 2 and 8 seconds.
  • The agent waits if the chat is currently typing/recording when WhatsApp presence is available.
  • CLI logs are quiet by default.

Capabilities

  • Send text, image, video, audio, documents, contacts, polls, location
  • Search/resolve contacts by name, phone, or JID
  • Manage profile/status
  • Manage groups/chats
  • Remember and compact context
  • Enforce read/reply/send policy before model access

Notes

This should run on an always-on machine/VPS. It is not suitable for Vercel serverless because Baileys needs a persistent WhatsApp WebSocket and durable session storage.

License

MIT