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

ai-persona-hub

v1.1.0

Published

AI Profile CLI - Create custom AI profiles run against dynamic LLM providers

Readme

AI Persona Hub

Inspired by Gemini Gems, this is a command-line interface for creating and managing custom AI profiles that can be run on multiple AI providers, allowing you to use the power of Gems with the AI of your choice.

Features

  • 🔮 Create custom AI profiles with personalized system prompts
  • 🤖 Multi-Provider Support
    • OpenAI (ChatGPT)
    • Anthropic (Claude)
    • Google (Gemini)
  • 💬 Interactive CLI chat sessions with your AI profiles
  • 🔄 Dynamic Models: Change AI provider/model anytime without recreating profiles
  • 💾 Local JSON-based profile storage
  • ⚡ Powered by Mastra AI framework

Usage

Installation

Install the package and verify:

npm install -g ai-persona-hub
cgem --help

Connect Providers

Set up API keys for your preferred providers:

# OpenAI
export OPENAI_API_KEY="your-openai-key"

# Anthropic (Claude)
export ANTHROPIC_API_KEY="your-anthropic-key"

# Google (Gemini)
export GOOGLE_GENERATIVE_AI_API_KEY="your-google-key"

Or make use of ~/.cgem/config.json:

{
  "providers": {
    "openai": {
      "apiKey": "your-openai-key"
    },
    "anthropic": {
      "apiKey": "your-anthropic-key"
    },
    "google": {
      "apiKey": "your-google-key"
    }
  },
  "currentProvider": "openai",
  "currentModel": "gpt-4o-mini",
  "defaultMaxTokens": 1000
}

Configuration

Select your preferred AI provider and model

cgem model

Create a custom AI profile using a system prompt

cgem create

Chat with any profile using your currently configured model

cgem chat <profile-name>

All commands

cgem model         # Configure AI provider/model (required first step)
cgem create        # Create new AI profile
cgem list          # List all profiles
cgem chat <name>   # Chat with specific profile
cgem delete <name> # Delete profile

See all supported models here

Feel free to open a PR expanding the list.

Development

For this project I recommend:

  • NPM version 11.5.2
  • Node version v24.1.0

First, clone the repository and install dependencies:

git clone [email protected]:aiden-sobey/ai-persona-hub.git
cd ai-persona-hub
npm install

To run the project:

# Watch mode during development
npm run dev

# Build the project
npm run build

# Run directly with Node.js
npm start

Profiles

Profiles are stored in ./profiles/ directory

Structure

Profiles are stored as JSON files with the following structure:

{
  "id": "profile-id",
  "name": "Profile Name",
  "systemPrompt": "Your custom system prompt...",
  "maxTokens": 1000,
  "createdAt": "2025-01-01T00:00:00.000Z",
  "lastUsed": "2025-01-01T00:00:00.000Z"
}

Architecture

Built with:

  • Mastra AI Framework - Unified AI provider interface
  • TypeScript - Type-safe development
  • Commander.js - CLI framework
  • Inquirer.js - Interactive prompts
  • Chalk - Terminal colors

The application uses Mastra's unified provider API to seamlessly switch between different AI providers while maintaining a consistent interface. The new architecture separates concerns: profiles store system prompts, while provider/model selection is handled globally, allowing maximum flexibility.