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

@aryainguz/morpheus-cli

v1.2.0

Published

A hybrid AI-powered terminal that combines shell functionality with Gemini AI assistant. Execute regular commands or get AI help with explanations, code generation, and more.

Readme

🤖 Morpheus-CLI - The Matrix of Shell + AI

A powerful hybrid terminal that combines traditional shell functionality with AI assistance powered by Google's Gemini API. Like Morpheus offering the red pill, this CLI opens your mind to the possibilities of AI-enhanced terminal experience!

Morpheus-CLI Demo

🚀 Quick Install & Start

# Install globally
npm install -g @aryainguz/morpheus-cli

# Enter the Matrix
morpheus-cli
# or use short alias
morpheus

✨ Features

  • 🐧 Full Shell Functionality - All your regular terminal commands work (ls, git, npm, etc.)
  • 🤖 AI Assistant - Get instant explanations, code generation, and text analysis
  • 🔑 Smart API Setup - Prompts for Gemini API key only when needed
  • Streaming Responses - Real-time AI output for better UX
  • 🎨 Cyberpunk Interface - Beautiful terminal with Matrix-style startup
  • 📝 Concise Outputs - AI responses limited to 2-3 lines for efficiency
  • 🔄 Hybrid Mode - Seamlessly switch between shell and AI commands

🛠 Usage

Interactive Mode

morpheus-cli start
# or just
morpheus-cli

Single Commands

# Shell commands
morpheus-cli exec "ls -la"
morpheus-cli exec "git status"
morpheus-cli exec "npm install express"

# AI commands
morpheus-cli exec "explain machine learning"
morpheus-cli exec "generate a Python sorting function"
morpheus-cli exec "summarize this code: function hello() { return 'world'; }"

Available AI Commands

| Command | Description | Example | | --------------------- | --------------------------- | -------------------------------------- | | explain <text> | Get concise AI explanations | explain recursion in programming | | generate <request> | Generate code or text | generate a React component for login | | summarize <text> | Summarize content | summarize this documentation | | vision <image_path> | Analyze images | vision ./screenshot.png | | help | Show all commands | help | | clear | Clear terminal | clear |

🔧 API Key Setup

  1. Get a free Gemini API key from Google AI Studio
  2. The terminal will prompt you when you first use AI commands
  3. Or set it as environment variable: export GEMINI_API_KEY="your-key-here"

💻 Development

Local Installation

git clone https://github.com/Aryainguz/refactor.git
cd morpheus-CLI
npm install
npm run build

React Component Usage

import { AITerminalUI } from "@aryainguz/morpheuscli";

function App() {
  return (
    <div className="h-screen bg-black">
      <AITerminalUI apiKey="your-gemini-key" />
    </div>
  );
}

API Usage

import { AITerminal } from "@aryainguz/morpheuscli";

const terminal = new AITerminal({
  apiKey: "your-key",
  temperature: 0.7,
});

const result = await terminal.executeCommand("explain TypeScript");
console.log(result.output);

📦 Package Structure

morpheus-cli/
├── src/
│   ├── cli.ts       # CLI interface
│   ├── terminal.ts  # Core AI terminal class
│   ├── ui.tsx       # React UI component
│   ├── utils.ts     # Utility functions
│   └── index.ts     # Main exports
├── dist/            # Compiled JavaScript
├── examples/        # Usage examples
└── README.md

🎯 Examples

Shell + AI Workflow

# Check git status
git status

# Get AI explanation
explain "what does git rebase do?"

# Generate code
generate "a git hook for pre-commit linting"

# Install packages
npm install eslint

# Run commands
npm test

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

📄 License

MIT © Aryainguz

🙏 Acknowledgments

  • Google Gemini AI for powerful language processing
  • Commander.js for CLI framework
  • Chalk for beautiful terminal colors
  • React and Framer Motion for smooth UI

Made with ❤️ for developers who love both shell power and AI assistance!