Package Exports
- elvic-cli
- elvic-cli/index.js
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 (elvic-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ELVIC - Content Strategy Agent
A powerful AI-powered content strategy agent with a beautiful retro terminal interface. ELVIC helps you create, analyze, and optimize content for blogs, social media, and marketing campaigns.
๐ Quick Install
Install ELVIC globally from npm:
npm install -g elvic-cliThen run it from anywhere:
elvicโ๏ธ First-time Setup
Installation Troubleshooting
If you encounter permission errors (EACCES) during installation, it's usually because a previous installation was done with sudo. Fix it with:
# Remove old installation
sudo rm -rf $(npm root -g)/elvic-cli
# Reinstall with correct permissions
npm install -g elvic-cliAPI Key Setup
After installation, you'll need to set your OpenAI API key. Choose one of these methods:
Option 1: User Config Directory (Recommended)
mkdir -p ~/.elvic
echo "OPENAI_API_KEY=your_api_key_here" > ~/.elvic/.envOption 2: Environment Variable
export OPENAI_API_KEY=your_api_key_hereOption 3: Local .env File
echo "OPENAI_API_KEY=your_api_key_here" > .envGet your API key from: https://platform.openai.com/api-keys
โจ Features
- ๐ค AI-Powered Content Strategy - Powered by OpenAI's GPT-4o
- ๐ Content Analysis - Analyze existing content for improvements
- ๐ก Topic Generation - Generate engaging content ideas
- ๐ Outline Creation - Create structured content outlines
- ๐ SEO Optimization - Check and improve SEO
- โจ Content Optimization - Optimize for engagement and conversions
- ๐ Content Calendar - Generate content calendars
- #๏ธโฃ Hashtag Generation - Platform-specific hashtags
- ๐งช A/B Testing - Create A/B test frameworks
- ๐ URL Reading - Analyze content from URLs
- ๐ Web Search - Research trends and competitors
- ๐ผ๏ธ Image Generation - Generate images with DALL-E 3 (supports different aspect ratios)
- ๐ Magazine Creation - Complete 6-step workflow for creating professional magazines
- ๐จ Poster Design - Create beautiful posters with custom fonts
- ๐๏ธ Vision Analysis - Analyze images, identify objects, clone images
- ๐ Document Analysis - Analyze PDF, DOCX, MD, and TXT files
- ๐พ Conversation Memory - Remembers your conversation context
- ๐ Project Management - Organize content by projects
- ๐ฌ Drag & Drop - Drag files directly into the terminal
๐ Usage
Run ELVIC from anywhere:
elvicOnce ELVIC is running, you can:
- Ask questions naturally - "Generate 5 blog topics about AI"
- Analyze content - "Analyze this content: [paste content]"
- Read URLs - "What is this website about? [URL]"
- Generate images - "Create a professional image for LinkedIn post about content marketing"
- Create magazines - Follow the 6-step magazine creation workflow
- Type
help- Show detailed help information - Type
copy- Copy the last response to clipboard - Type
save <filename>- Save the last response to a file - Type
project use <name>- Switch to a different project - Type
clear- Clear conversation history - Type
exitorquit- Exit the application
๐ Examples
Content Strategy
> Generate 5 blog topics about AI for small businesses
> Create an outline for a blog post about content marketing
> Analyze this content: [paste your content]
> Optimize this blog post for SEO: [paste content]Research & Analysis
> Read and analyze this URL: https://example.com
> What are the latest trends in content marketing?
> Analyze my competitor's content strategy: [URL]Social Media
> Generate hashtags for Instagram post about technology
> Create a weekly content calendar for a tech startup
> Generate 10 LinkedIn post ideas about productivityImage Generation
> Generate a professional image for LinkedIn post about productivity
> (Agent will ask: format, size, aspect ratio, style)
> Create a square image (1:1) for Instagram about coffee culture
> Generate a landscape image (16:9) for a blog header about AIMagazine Creation
> Create a magazine about sustainable living
> (Follows 6-step workflow: Profile โ Content Plan โ Articles โ Images โ Layout โ Export)Document & Image Analysis
> Analyze this image: /path/to/image.png
> Identify all objects in this image
> Extract text from this document: /path/to/document.pdf
> Clone this image with a different style๐ฏ Magazine Creation Workflow
ELVIC includes a complete magazine creation system:
- Create Magazine Profile - Define your magazine's theme, audience, and style
- Generate Content Plan - Create a structured content plan
- Generate Articles - Write full articles with AI
- Image Strategy - Plan images for each article
- Layout Plan - Design page-by-page layout
- Export Magazine - Export in DOCX, DOC, PDF formats
All content is saved to: ~/Documents/ELVIC/projects/{project-name}/
๐ Project Structure
โโโ assets/
โ โโโ elvic-logo.png # ELVIC logo image
โโโ bin/
โ โโโ elvic.js # Global command entry point
โโโ src/
โ โโโ agent.js # Agent configuration
โ โโโ cli.js # Interactive CLI interface
โ โโโ config.js # Configuration settings
โ โโโ tools/ # Content strategy tools
โ โโโ utils/ # Utility functions
โโโ index.js # Main entry point
โโโ package.json # Dependencies and scripts๐ Requirements
- Node.js 18.0.0 or higher
- OpenAI API key with access to GPT-4o and DALL-E 3
- Terminal with ANSI color support (most modern terminals)
- Internet connection for API calls
Getting Your OpenAI API Key
- Go to OpenAI Platform
- Sign in or create an account
- Click "Create new secret key"
- Copy the key (starts with
sk-) - Save it using one of the methods in "First-time Setup" above
๐ฌ Quick Start Guide
1. Installation
npm install -g elvic-cli2. Setup API Key
mkdir -p ~/.elvic
echo "OPENAI_API_KEY=sk-your-key-here" > ~/.elvic/.env3. Start Using
elvic4. Try These Commands
Generate 5 blog topics about AICreate an outline for a blog postGenerate a professional image for LinkedInhelp- See all available commands
๐ง Development
Local Development Setup
# Clone the repository
git clone https://github.com/elvic-group/elvic-cli.git
cd elvic-cli
# Install dependencies
npm install
# Make it globally available for testing
npm link
# Run in development mode
npm run devTesting Locally
# Test the global command
elvic
# Run tests
npm test
# Format code
npm run format
# Lint code
npm run lint๐ Troubleshooting
Permission Errors (EACCES)
If you get permission errors during installation:
sudo rm -rf $(npm root -g)/elvic-cli
npm install -g elvic-cliAPI Key Not Found
Make sure your API key is set in one of these locations:
~/.elvic/.env(recommended)- Environment variable:
export OPENAI_API_KEY=your_key - Local
.envfile in current directory
Command Not Found
After installation, if elvic command is not found:
# Check if it's installed
npm list -g elvic-cli
# Verify PATH includes npm global bin
echo $PATH | grep npm
# Reinstall if needed
npm install -g elvic-cli๐ฆ Publishing
For maintainers - publishing new versions:
# Update version
npm version patch # or minor, or major
# Publish to npm
npm publish๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
๐ Changelog
See CHANGELOG.md for a list of changes and version history.
๐ License
This project is licensed under the ISC License - see the LICENSE file for details.
๐ Acknowledgments
Built with OpenAI Agents SDK and powered by GPT-4o.