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

maverick-ai-cli

v3.0.5

Published

An intelligent command-line interface powered by AI — your coding companion directly in your terminal. Authenticate via GitHub, chat with Gemini AI, and get intelligent responses with markdown rendering.

Readme

Maverick AI CLI

An intelligent command-line interface powered by AI — your coding companion directly in your terminal. Authenticate via GitHub, chat with Gemini AI, and get intelligent responses with markdown rendering.

Installation

Install globally:

npm install -g maverick-ai-cli

Or run directly with npx:

npx maverick-ai-cli <command>

Prerequisites: Node.js 18+ is required.

Commands

login — Authenticate via GitHub

maverick login

Opens a browser for GitHub OAuth device flow authentication. Your credentials are stored locally at ~/.better-auth/token.json.

whoami — Check current user

maverick whoami

logout — Sign out

maverick logout

wakeup — Start AI session

maverick wakeup

Select a mode:

  • Chat — Conversational AI with markdown rendering
  • Tool Calling — AI with Google Search & code execution (coming soon)
  • Agent — Autonomous AI agent (coming soon)

Chat Features

  • Markdown rendering in terminal
  • Context-aware conversations
  • Persistent session history
  • Streaming AI responses

Development

Server Setup

The backend server powers authentication and data storage. It's deployed at https://maverick-cli.onrender.com.

  1. Clone the repository:

    git clone https://github.com/CodeMaverick-143/maverick-cli.git
    cd maverick-cli/server
  2. Install dependencies:

    npm install
  3. Environment Variables: Create a .env file in the server directory:

    DATABASE_URL="postgresql://..."
    GITHUB_CLIENT_ID="your_github_oauth_app_client_id"
    GITHUB_CLIENT_SECRET="your_github_oauth_app_client_secret"
    BETTER_AUTH_SECRET="your_random_auth_secret"
    BETTER_AUTH_URL="http://localhost:3005"
    GOOGLE_GENERATIVE_AI_API_KEY="your_gemini_api_key"
    ORBITAL_MODEL="gemini-2.5-flash"
    PORT=3005
  4. Database Setup:

    npx prisma generate
    npx prisma migrate dev
  5. Start the Server:

    npm run dev

Architecture

server/
├── src/
│   ├── index.js              # Express server + API endpoints
│   ├── cli/
│   │   ├── main.js            # CLI entry point (Commander.js)
│   │   ├── commands/
│   │   │   ├── auth/login.js  # login, logout, whoami
│   │   │   └── ai/wakeUp.js   # wakeup command
│   │   ├── chat/
│   │   │   └── chat-with-ai.js # AI chat loop
│   │   └── ai/
│   │       └── google-service.js # Gemini AI SDK
│   ├── lib/
│   │   ├── api-client.js      # CLI → Server HTTP client
│   │   ├── auth.js            # Better Auth config (server)
│   │   ├── db.js              # Prisma client (server)
│   │   └── token.js           # Token storage (~/.better-auth/)
│   ├── config/
│   │   ├── google.config.js   # AI model config
│   │   └── tool.config.js     # Tool definitions
│   └── service/
│       └── chat.service.js    # Chat DB service (server)
└── prisma/
    └── schema.prisma          # Database schema

API Endpoints

| Endpoint | Method | Description | |---|---|---| | /api/auth/* | ALL | Better Auth routes | | /api/me | GET | Get current session | | /api/cli/user | GET | Get user from Bearer token | | /api/cli/conversations | POST | Create conversation | | /api/cli/conversations/:id | GET | Get conversation + messages | | /api/cli/conversations/:id/title | PUT | Update title | | /api/cli/conversations/:id/messages | GET | List messages | | /api/cli/conversations/:id/messages | POST | Create message |

Tech Stack

  • Runtime: Node.js
  • AI: Google Gemini via Vercel AI SDK
  • Auth: Better Auth (GitHub OAuth + Device Flow)
  • Database: PostgreSQL + Prisma ORM
  • Server: Express 5
  • CLI: Commander.js, Clack prompts, Chalk

License

ISC