enact-on
v3.0.4
Published
Modular CLI tool featuring LangGraph AI Agent, file compression, string manipulation, and API integrations
Maintainers
Readme
enact-on ⚡
Modular, interactive Node.js CLI tool for file compression, string manipulation, and API integrations.
🚀 Features
- 🤖 AI Agent: Interactive coding & task assistant powered by LangGraph, Gemini & Tavily.
- 🗜️ File Compression: Fast Gzip compression and decompression for files.
- 🔠 String Tools: Convert case, count words/characters/sentences, check palindromes.
- 🌐 API Utilities: Fetch random jokes, weather updates, and daily tech advice.
- 🎨 Interactive TTY Menu: Terminal UI powered by
@inquirer/promptsandchalk. - 💻 Cross-Platform: Supports Windows, macOS, and Linux out of the box.
- 🌟 Gantic Features: Advanced automation and enhanced workflow capabilities.
⚡ Quick Start
You can run the CLI instantly without installing anything:
npx enact-onOr launch the AI Agent directly:
npx enact-on agent📦 Installation
To install enact-on globally across your system so you can run enact-on from any terminal:
npm install -g enact-onAfter installing globally, simply type enact-on in your command line:
enact-on2. Direct CLI Subcommands
🤖 AI Agent
# Launch interactive AI Agent session
enact-on agent
# Run AI Agent with an initial prompt or question
enact-on ai "Explore this directory and summarize the contents"🔑 Environment Variables: Configure your API keys in a
.envfile (see.env.example):
GEMINI_API_KEY: Required for Gemini LLM model executionTAVILY_API_KEY: Required for Tavily real-time web search toolIf keys are not found in
.env, the CLI will interactively prompt for them when starting the AI Agent session.
File Compression
# Compress a file
enact-on compress myfile.txt
# Decompress a gzip file
enact-on decompress myfile.txt.gzString Manipulation
# Convert to UPPERCASE
enact-on uppercase "hello world"
# Convert to lowercase
enact-on lowercase "HELLO WORLD"
# Word & character count
enact-on wordcount "Quick brown fox jumps over the lazy dog"
# Palindrome check
enact-on palindrome "racecar"API Integrations
# Fetch developer joke
enact-on joke
# Fetch weather (default: London)
enact-on weather Paris
# Fetch daily advice quote
enact-on quote🛠️ Local Development
Clone the repository:
git clone https://github.com/Devashish-Repo/enact-on.git cd enact-onInstall dependencies:
npm installLink locally for testing:
npm link enact-on --help
📄 License
MIT © Devashish
