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.
- 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.
To install gyaani
globally, run:
$ npm install --global gyaani
$ gyaani [input]
-
--help
Display help documentation with available commands and usage examples. -
--version
Show the current version ofgyaani
. -
--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.
$ 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
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.
To run Gyaani
locally, you’ll need:
-
Navigate to the
ai-server
folder in the repository. -
Create a
.env
file in theai-server
folder, and add your OpenAI API key:OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-
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
-
Run the AI server:
python app.py
The server should start at http://127.0.0.1:5000
.
-
Navigate to the
gyaani
folder in the repository. -
Update
config.js
in thegyaani
folder with the local server URL:export const apiURL = 'http://127.0.0.1:5000';
-
Install dependencies and start the React app:
npm install npm run dev
The React app should now be running locally.
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! 🚀