Skip to content

gyaani is an AI-powered terminal npm package that enhances your command-line experience with smart features. It assists with various tasks—from system insights to generating images—directly from your terminal, making your workflow faster and more efficient.

License

Notifications You must be signed in to change notification settings

subh05sus/GyaaniCLI

Repository files navigation

Gyaani

gyaani is an AI-powered terminal npm package that enhances your command-line experience with smart features. It assists with various tasks—from system insights to generating images—directly from your terminal, making your workflow faster and more efficient.


Key Features

  • Usage: $ gyaani [input]
  • Options:
    • --help: Display help documentation
    • --version: Show the current version
    • --explain: Provide explanations for concepts
    • --sysinfo: Display detailed system information
    • --github: Fetch GitHub repository details
    • --generate: Generate an image from a prompt

With AI capabilities, gyaani brings powerful tools to your terminal, making it an essential assistant for developers, system administrators, and curious minds alike.


Installation

To install gyaani globally, run:

$ npm install --global gyaani

How to Use

Basic Usage:

$ gyaani [input]

Available Options

  • --help
    Display help documentation with available commands and usage examples.

  • --version
    Show the current version of gyaani.

  • --explain
    Explain concepts or technical terms in detail.

  • --sysinfo
    Display system information such as OS, CPU, and memory usage.

  • --github
    Fetch details about a GitHub repository, including contributors and issues.

  • --generate
    Generate an AI-based image from a given prompt.


Examples

$ gyaani --help
# Displays help information with available commands

$ gyaani --version
# Shows the current version of gyaani

$ gyaani --explain "What is OAuth?"
# Provides a detailed explanation of OAuth

$ gyaani --sysinfo
# Retrieves system details (CPU, memory, etc.)

$ gyaani --github
# Fetches data from a specified GitHub repository

$ gyaani --generate "an image of an orange muscular cat in a gym weightlifting 200 lbs"
# Generates an image based on the prompt

Why Use Gyaani?

gyaani goes beyond being just another CLI tool—it’s your AI-enhanced terminal companion, designed to streamline tasks, simplify concepts, and provide quick access to insights.

  • Generate images: Use creative prompts to generate AI-based images.
  • Explain concepts: Have complex ideas explained in an easy-to-understand way.
  • Manage tasks efficiently: From fetching system details to GitHub data, Gyaani has got you covered.

With its AI-powered core, gyaani continuously learns and improves, adapting to your needs and making your terminal experience more engaging and productive.


Screenshots

  1. Landing Screen
    Landing Screen

  2. Command Execution
    Working Demo

  3. Explaining a Concept
    Explaining Demo

  4. Fetching GitHub Data
    Getting Github Data

  5. System Information Output
    Getting System Data


Local Setup for Contributors

Prerequisites

To run Gyaani locally, you’ll need:

Setting up the AI Server

  1. Navigate to the ai-server folder in the repository.

  2. Create a .env file in the ai-server folder, and add your OpenAI API key:

    OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  3. Set up a virtual environment and install dependencies:

    # Install virtualenv if it's not already installed
    python -m venv venv
    source venv/bin/activate # On Windows, use `venv\Scripts\activate`
    pip install -r requirements.txt
  4. Run the AI server:

    python app.py

The server should start at http://127.0.0.1:5000.

Setting up the gyaani React App

  1. Navigate to the gyaani folder in the repository.

  2. Update config.js in the gyaani folder with the local server URL:

    export const apiURL = 'http://127.0.0.1:5000';
  3. Install dependencies and start the React app:

    npm install
    npm run dev

The React app should now be running locally.


Conclusion

gyaani offers a smarter way to interact with your terminal, integrating AI to simplify tasks and generate creative content. Whether you’re looking for quick insights, system details, or even AI-generated art, gyaani makes it easy to get things done.

$ npm install --global gyaani

Give gyaani a try today and take your terminal game to the next level! 🚀

About

gyaani is an AI-powered terminal npm package that enhances your command-line experience with smart features. It assists with various tasks—from system insights to generating images—directly from your terminal, making your workflow faster and more efficient.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks