https://github.com/subh05sus/gyaanicli
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.
https://github.com/subh05sus/gyaanicli
cli cli-app flask openai react react-inc terminal-app terminal-based
Last synced: 10 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/subh05sus/gyaanicli
- Owner: subh05sus
- License: mit
- Created: 2024-11-18T17:25:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-03T18:11:26.000Z (over 1 year ago)
- Last Synced: 2025-04-08T17:14:47.659Z (about 1 year ago)
- Topics: cli, cli-app, flask, openai, react, react-inc, terminal-app, terminal-based
- Language: JavaScript
- Homepage: https://gyaani.subhadip.me
- Size: 8.91 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# 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:
```bash
$ npm install --global gyaani
```
---
## How to Use
### Basic Usage:
```bash
$ 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
```bash
$ 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**

2. **Command Execution**

3. **Explaining a Concept**

4. **Fetching GitHub Data**

5. **System Information Output**

---
## Local Setup for Contributors
### Prerequisites
To run `Gyaani` locally, you’ll need:
- [Node.js](https://nodejs.org/) and [npm](https://npmjs.com/) installed
- [Python](https://python.org/) installed to set up the AI server
### 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:
```env
OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
3. **Set up a virtual environment** and install dependencies:
```bash
# 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**:
```bash
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:
```javascript
export const apiURL = 'http://127.0.0.1:5000';
```
3. **Install dependencies and start the React app**:
```bash
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.
```bash
$ npm install --global gyaani
```
Give `gyaani` a try today and take your terminal game to the next level! 🚀