JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q55810F
  • License GPL-3.0

AI Assistant for Your Local Environment

Package Exports

  • env-ai
  • env-ai/dist/main.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (env-ai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

env-ai - AI Assistant for Your Local Environment

Web About Us Donate Github Twitter Instagram Medium

License Core

env-ai is an intelligent assistant tool for your terminal, designed to help you with tasks like documentation, performance optimization, refactoring, and more, using custom commands. It is available both as a JavaScript library and as a CLI runnable in Node, Deno, and Bun.

Requirement: env-ai needs the Ollama technology to work. Make sure you have it installed before using this CLI.

📑 Index

  1. env-ai
  2. 🚀 Features
  3. 📦 Installation
  4. 📖 Using the CLI
  5. 📚 Using the Library
  6. 🔍 Examples
  7. 🛠️ Technologies Used
  8. 🌍 Compatibility and Download
  9. 👨‍💻 Development
  10. ☕ Donate
  11. 📜 License
  12. 🐦 About Us

🚀 Features

  • Real-time chat with the AI assistant from the terminal.
  • Extensive theme and output customization.
  • Configuration file support (.mjs, .js, .json, .yml, .yaml, .toml, .tml).
  • Available for all operating systems and architectures via GitHub Releases.

📦 Installation

Install the CLI or add it as a dependency to your project:

## npm
npm install env-ai
## pnpm
pnpm add env-ai
## yarn
yarn add env-ai

global Installation

## npm
npm install -g env-ai
## pnpm
pnpm add -g env-ai
## yarn
yarn global add env-ai

📖 Using the CLI

The env-ai CLI allows you to easily interact with the AI assistant. Here are some useful commands and options:

Main Commands

# Start a chat with the AI assistant
env-ai ask

Options

  • -i, --include - Files or URLs to include using glob patterns. (array)
  • -e, --exclude - Files or URLs to exclude using glob patterns. (array)
  • -m, --model - Name of the Ollama model to use. (string)
  • -p, --prompt - Custom text or path for the prompt. (string)
  • -s, --system - Custom system text or path. (string)
  • -t, --theme - Topic of conversation (custom, explain, docs, fix, performance, refactor, tests). (string)
  • -o, --output - Output path for the generated response. (string)
  • --overwrite - Behavior control if the output file exists (always, ask, last). (boolean)
  • --single - Get only one response. (boolean)
  • -c, --config - Configuration file path. (string)
  • --debug - Debug mode. (boolean)
  • -h, --help - Show help. (boolean)
  • -v, --version - Show version number. (boolean)

📚 Using the Library

env-ai can also be integrated as a library into your JavaScript or TypeScript project.

Import Example

import { run } from 'env-ai';

run({
include: ['./src/**', 'https://example.com'],
theme: 'docs',
output: 'README.md',
});

Defined Configuration

Use defineConfig to define a reusable configuration:

import { defineConfig } from 'env-ai';

export default defineConfig({
include: ['./src/**', 'https://example.com'],
theme: 'docs',
output: 'README.md',
});

🔍 Examples

You can see more examples here.

CLI

env-ai ask -i "./src/**" -t "docs" -o "output.md"

Library

import { run } from 'env-ai';

run({
include: ['./src/**', 'https://example.com'],
theme: 'docs',
output: 'README.md',
});

CLI With config file [js]

env-ai ask --config dovenv.config.js
import { defineConfig } from 'env-ai';

export default defineConfig({
include: ['./src/**', 'https://example.com'],
theme: 'docs',
output: 'README.md',
});

CLI With config file [json]

env-ai ask --config dovenv.config.json
{
    "theme": "custom",
    "system": "./examples/config/system.txt"
}

🛠️ Technologies Used

env-ai relies on Ollama to provide advanced natural language processing capabilities, so Ollama is a prerequisite for it to work.

🌍 Compatibility and Download

The CLI is available for all operating systems and architectures. Download it directly from the GitHub Releases.

👨‍💻 Development

env-ai is an open-source project and its development is open to anyone who wants to participate.

TODO Issues Pull requests Read more

☕ Donate

Help us to develop more interesting things.

Donate

📜 License

This software is licensed with GPL-3.0.

Read more

🐦 About us

PigeonPosse is a ✨ code development collective ✨ focused on creating practical and interesting tools that help developers and users enjoy a more agile and comfortable experience. Our projects cover various programming sectors and we do not have a thematic limitation in terms of projects.

More

Collaborators

Name Role GitHub
Angelo Angelo Idea & Development & UI Design @angelespejo
PigeonPosse PigeonPosse Collective @PigeonPosse

Web About Us Donate Github Twitter Instagram Medium