npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

elvic-ascii-agent

v1.0.0

Published

AI-powered ASCII art generator with GPT-4o Vision and web search capabilities

Readme

🤖 Elvic ASCII Agent

AI-powered ASCII art generator with GPT-4o Vision and OpenAI Web Search capabilities.

npm version License: MIT

✨ Features

  • 🖼️ Image Analysis - Analyze images using GPT-4o Vision
  • 🎨 Image to ASCII - Convert images to ASCII art with AI
  • ✍️ Text to ASCII - Generate artistic ASCII text
  • 🔍 Web Search - Search for ASCII art trends and styles
  • 🤖 Interactive Mode - Chat with the AI agent
  • 📚 Font Library - Access to multiple font categories

🚀 Installation

Global Installation (Recommended)

npm install -g elvic-ascii-agent

Local Installation

npm install elvic-ascii-agent

📋 Prerequisites

⚙️ Configuration

Create a .env file in your project root or home directory:

OPENAI_API_KEY=your_api_key_here

Or set the environment variable:

export OPENAI_API_KEY=your_api_key_here

📖 Usage

Command Line Interface

1. Analyze an Image

elvic-ascii-agent analyze-image path/to/image.jpg
elvic-ascii-agent analyze-image path/to/image.jpg --detailed

2. Convert Image to ASCII Art

elvic-ascii-agent image-to-ascii path/to/image.jpg
elvic-ascii-agent image-to-ascii path/to/image.jpg --width 80 --style artistic

Styles: detailed, simple, artistic, blocky

3. Generate Text ASCII Art

elvic-ascii-agent text-to-ascii "Hello World"
elvic-ascii-agent text-to-ascii "AWESOME" --style 3d

Styles: banner, block, graffiti, 3d, bubble

4. Interactive Mode

elvic-ascii-agent interactive
# or
elvic-ascii-agent i

In interactive mode, you can:

  • Ask questions about ASCII art
  • Request image analysis
  • Generate ASCII art
  • Search for trends and styles
  • Get font recommendations

5. List Available Fonts

elvic-ascii-agent list-fonts
elvic-ascii-agent list-fonts banner

Help

elvic-ascii-agent --help
elvic-ascii-agent --version

🎯 Examples

Example 1: Analyze a Logo

elvic-ascii-agent analyze-image logo.png --detailed

Example 2: Create ASCII Art from Photo

elvic-ascii-agent image-to-ascii photo.jpg --width 60 --style artistic

Example 3: Generate Banner Text

elvic-ascii-agent text-to-ascii "WELCOME" --style banner

Example 4: Interactive Session

$ elvic-ascii-agent interactive

🤖 Elvic ASCII Agent - Interactive Mode

Powered by GPT-4o Vision + OpenAI Web Search
Type your request or "exit" to quit

You: analyze this image: /path/to/image.jpg
Agent: [AI provides detailed analysis]

You: convert it to ASCII art
Agent: [AI generates ASCII art]

You: search for trending ASCII art styles
Agent: [AI searches web and provides results]

You: exit
Goodbye! 👋

🛠️ API Usage

You can also use the package programmatically:

import { analyzeImageTool, convertImageToAsciiTool } from 'elvic-ascii-agent';

// Analyze an image
const analysis = await analyzeImageTool.execute({
  imagePath: '/path/to/image.jpg'
});

// Convert to ASCII
const ascii = await convertImageToAsciiTool.execute({
  imagePath: '/path/to/image.jpg',
  width: 60,
  style: 'detailed'
});

console.log(ascii.asciiArt);

🎨 ASCII Art Styles

Image Styles

  • detailed - Rich shading with many characters
  • simple - Clean lines and basic shapes
  • artistic - Creative interpretation
  • blocky - Solid block characters

Text Styles

  • banner - Large, bold letters
  • block - Blocky, solid style
  • graffiti - Street art style
  • 3d - Three-dimensional effect
  • bubble - Rounded, bubbly letters

🔧 Troubleshooting

"OPENAI_API_KEY not found"

Make sure you've set your OpenAI API key:

export OPENAI_API_KEY=your_key_here

Or create a .env file with:

OPENAI_API_KEY=your_key_here

"Command not found: elvic-ascii-agent"

If installed globally, make sure npm global bin is in your PATH:

npm config get prefix

Add the bin directory to your PATH in ~/.bashrc or ~/.zshrc:

export PATH="$PATH:$(npm config get prefix)/bin"

Image file not found

Use absolute paths or paths relative to your current directory:

elvic-ascii-agent image-to-ascii ./images/photo.jpg
elvic-ascii-agent image-to-ascii /Users/username/Pictures/photo.jpg

📦 What's Included

  • GPT-4o Vision - Advanced image understanding
  • OpenAI Web Search - Real-time web search capabilities
  • AI-Powered Generation - Creative ASCII art generation
  • Multiple Styles - Various artistic styles
  • Interactive Mode - Conversational interface

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT © Elvic Kongolo

🔗 Links

🌟 Powered By


Made with ❤️ by Elvic Kongolo