JSPM

  • Created
  • Published
  • Downloads 355
  • Score
    100M100P100Q95805F
  • License MIT

A comprehensive automation platform that streamlines software development workflows by integrating AI-powered content generation with popular development tools like Jira, Bitbucket, and email systems. Includes startup service management for automatic system boot integration.

Package Exports

  • ai-workflow-utils
  • ai-workflow-utils/dist/server.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 (ai-workflow-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

πŸš€ AI Workflow Utils

AI Workflow Utils Node.js React LangChain Express.js License

The Ultimate AI-Powered Development Workflow Automation Platform

Streamline your development process with intelligent Jira ticket creation, AI-powered code reviews & pull request creation, and seamless attachment management

AI-Workflow-Utils-07-24-2025_02_32_AM

πŸŽ‰ NEW IN v1.x.x - Game-Changing Features!

🎯 Feature #1: AI-Powered Jira Ticket Creation

Create professional Jira tickets (Tasks, Bugs, Stories) using AI with multiple provider support:

  • πŸ€– OpenAI Compatible APIs: GPT-4, Claude, and other cloud providers
  • 🏠 Local AI with Ollama LLaVA: Complete privacy with local image analysis
  • πŸ“Έ Smart Image Analysis: Upload screenshots and get detailed issue descriptions
  • ⚑ Real-time Streaming: Watch AI generate content live
  • 🎨 Professional Templates: Auto-formatted with proper sections and acceptance criteria
  • πŸ”— Direct Jira Integration: Creates tickets instantly with your access token

πŸš€ Feature #2: AI-Powered Pull Request Creation

Revolutionary AI-powered pull request creation for Atlassian Bitbucket:

  • πŸ€– Intelligent PR Generation: AI analyzes commit messages to create professional PR titles and descriptions
  • πŸ“ Smart Commit Analysis: Automatically determines PR type (feat/fix/chore) based on commit patterns
  • ⚑ Real-time Streaming: Watch AI generate PR content live with streaming updates
  • πŸ”„ Multi-Model Support: Uses Ollama for local AI processing with privacy
  • ✏️ Editable Previews: Review and edit AI-generated content before creating the PR
  • 🎯 Ticket Integration: Automatically includes ticket numbers in PR titles
  • πŸ’Ύ Smart Persistence: Remembers project and repository settings for faster workflow

πŸ” Feature #3: GitStash PR AI Review

Revolutionary AI-powered pull request reviews for Atlassian Bitbucket:

  • 🧠 Intelligent Code Analysis: AI reviews your code changes
  • πŸ’‘ Smart Suggestions: Get actionable improvement recommendations
  • πŸ”„ Multi-Model Support: OpenAI Compatible APIs + Ollama for flexibility
  • πŸ“ Automated Comments: AI adds review comments directly to your PRs
  • ⚑ Coming Soon: Direct comment integration (currently in development)

πŸ“Ž Feature #4: Simple Jira Attachment Management

Effortless file management for your Jira tickets:

  • πŸ“ Drag & Drop Interface: Simple file uploads
  • πŸŽ₯ Video Conversion: Automatic .mov to .mp4 conversion
  • πŸ“Έ Image Optimization: Smart image processing
  • πŸ”— Direct Integration: Seamless attachment to existing tickets

Here’s a cleaned-up and renumbered version of your β€œQuick Start Guide” section for the README. All step numbers are sequential, and optional sub-steps are clearly labeled. Copy-paste this to replace your existing section:


πŸš€ Quick Start Guide

# Install Ollama (if you want local AI processing)
# macOS
brew install ollama

# Linux
curl -fsSL https://ollama.com/install.sh | sh

# Windows - Download from https://ollama.com/

# Download the LLaVA model for image analysis
ollama pull llava

# Start Ollama service
ollama serve

Then configure Ollama as your AI provider in the web interface.

Step 2: Installation

npm install -g ai-workflow-utils

Step 3: Launch the Application

# Start the application directly
ai-workflow-utils

The application will start immediately and be available at http://localhost:3000

Step 4: (Optional) Install as Startup Service

For production use or to run automatically on system boot:

ai-workflow-utils startup install

The service will now start automatically on boot. Access at http://localhost:3000

Startup Service Management:

ai-workflow-utils startup status    # Check service status
ai-workflow-utils startup start     # Start the service
ai-workflow-utils startup stop      # Stop the service
ai-workflow-utils startup uninstall # Remove startup service

Supported Platforms:

  • macOS: Uses LaunchAgents (user-level service)
  • Windows: Uses Windows Service Manager
  • Linux: Uses systemd

For detailed startup service documentation, see STARTUP.md

Step 5: Configure Using the Settings Page

All configuration is managed through the web-based settings page:

  • Visit http://localhost:3000/settings/environment
  • Configure your AI provider (Anthropic Claude, OpenAI GPT, Google Gemini, Ollama)
  • Set up Jira integration (URL, API token)
  • Configure repository provider (Bitbucket)
  • Set up issue tracking (Jira, etc.)

All changes are saved to ~/.ai-workflow-utils/environment.json and persist across upgrades.

No manual .env setup required!

Step 6: (Optional) PWA Installation (Progressive Web App)

AI Workflow Utils is a fully-featured PWA! Install it as a native app for the best experience:

πŸ–₯️ Desktop Installation:

  1. Open http://localhost:3000 in Chrome, Edge
  2. Look for the "Install" button in the address bar
  3. Click "Install" to add AI Workflow Utils to your desktop
  4. Launch directly from your desktop/dock - no browser needed!

✨ PWA Benefits: - πŸš€ Faster Loading: Cached resources for instant startup - πŸ“± Native Feel: Works like a desktop - πŸ”„ Auto Updates: Always get the latest features - πŸ’Ύ Offline Ready: Basic functionality works without internet - 🎯 Focused Experience: No browser distractions

🎯 Feature Deep Div

🎫 AI Jira Ticket Creation

What makes it special:

  • Dual AI System: Primary cloud AI with local Ollama fallback
  • Image Intelligence: Upload screenshots and get detailed bug reports
  • Smart Templates: Automatically formats content based on issue type
  • Real-time Generation: Watch AI create your tickets live

Example Usage:

  1. Navigate to "Create Jira"
  2. Describe your issue: "Login button doesn't work on mobile"
  3. Upload a screenshot (optional)
  4. Select issue type (Bug/Task/Story)
  5. Watch AI generate professional content
  6. Review and create ticket directly in Jira

AI Providers Supported:

  • OpenAI GPT-4 (with vision)
  • Anthropic Claude (with vision)
  • Any OpenAI-compatible API
  • Ollama LLaVA (local, private)

πŸš€ AI-Powered Pull Request Creation

Revolutionary PR Generation:

  • Smart Commit Analysis: AI analyzes your commit messages to understand the changes
  • Automatic Type Detection: Determines if changes are features, fixes, or chores
  • Professional Formatting: Generates conventional commit-style titles (feat/fix/chore)
  • Streaming Generation: Watch AI create content in real-time with live updates
  • Local AI Processing: Uses Ollama for complete privacy and offline capability

How it works:

  1. Navigate to "Create PR"
  2. Enter project key, repository slug, ticket number, and branch name
  3. Click "Preview" to start AI generation
  4. Watch AI analyze commits and generate title/description in real-time
  5. Edit the generated content if needed
  6. Click "Create Pull Request" to submit to Bitbucket

AI Features:

  • Commit Message Analysis: Extracts meaningful information from commit history
  • Smart Categorization: Automatically prefixes with feat/fix/chore based on content
  • Ticket Integration: Includes ticket numbers in standardized format
  • Editable Previews: Full control over final content before submission
  • Persistent Settings: Remembers project and repo settings for faster workflow

πŸ” GitStash PR AI Review

Revolutionary Code Review:

  • Context-Aware Analysis: AI understands your codebase
  • Security Scanning: Identifies potential vulnerabilities
  • Performance Optimization: Suggests efficiency improvements
  • Best Practices: Enforces coding standards

How it works:

  1. Open a pull request in Bitbucket
  2. Navigate to "GitStash Review"
  3. Enter PR details
  4. AI analyzes code changes
  5. Get detailed review with suggestions
  6. Coming Soon: Direct comment integration

πŸ“Ž Jira Attachment Management

Simplified File Handling:

  • Universal Format Support: Images, videos, documents
  • Smart Conversion: Automatic .mov to .mp4 for compatibility
  • Batch Upload: Multiple files at once
  • Preview Integration: View attachments before upload

πŸ› οΈ CLI Commands (For Advanced Users)

Setup and Configuration

# Interactive setup wizard
ai-workflow-setup

# Check configuration
ai-workflow-utils --config

# Test connections
ai-workflow-utils --test

Development Commands

# Start in development mode
ai-workflow-utils --dev

# Enable debug logging
ai-workflow-utils --debug

# Specify custom port
ai-workflow-utils --port 8080

Ollama Management

# Check Ollama status
ai-workflow-utils --ollama-status

# Download recommended models
ai-workflow-utils --setup-ollama

# List available models
ollama list

πŸ”§ Advanced Configuration (For Developers)

AI Provider Fallback System

// Automatic fallback order:
1. OpenAI Compatible API (Primary)
2. Ollama LLaVA (Local fallback)
3. Error handling with user notification

Custom Model Configuration

# For different OpenAI-compatible providers:
OPENAI_COMPATIBLE_MODEL=gpt-4-vision-preview    # OpenAI
OPENAI_COMPATIBLE_MODEL=claude-3-sonnet-20240229 # Anthropic
OPENAI_COMPATIBLE_MODEL=llama-2-70b-chat        # Custom API

# For Ollama local models:
OLLAMA_MODEL=llava:13b      # Larger model for better quality
OLLAMA_MODEL=llava:7b       # Faster, smaller model
OLLAMA_MODEL=codellama:7b   # Code-focused model

Performance Tuning

# Streaming configuration
STREAM_CHUNK_SIZE=1024
STREAM_TIMEOUT=60000

# Rate limiting
API_RATE_LIMIT=100
API_RATE_WINDOW=900000

# File upload limits
MAX_FILE_SIZE=50MB
ALLOWED_FILE_TYPES=jpg,jpeg,png,gif,mp4,mov,pdf,doc,docx

πŸš€ Production Deployment (For DevOps)

Docker Deployment

# Build the application
npm run build

# Create Docker image
docker build -t ai-workflow-utils .

# Run container
docker run -p 3000:3000 --env-file .env ai-workflow-utils

PM2 Process Management

# Install PM2
npm install -g pm2

# Start application
pm2 start ecosystem.config.js

# Monitor
pm2 monit

# View logs
pm2 logs ai-workflow-utils

Nginx Reverse Proxy

server {
    listen 80;
    server_name your-domain.com;
    
    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_cache_bypass $http_upgrade;
    }
}

πŸ”’ Security & Privacy

Data Privacy

  • Local AI Processing: Use Ollama for complete data privacy
  • No Data Storage: AI conversations are not stored
  • Secure Tokens: Environment-based credential management
  • HTTPS Support: SSL/TLS encryption for production

Security Features

  • Rate Limiting: Prevents API abuse
  • Input Validation: Sanitizes all user inputs
  • Error Handling: No sensitive data in error messages
  • Access Control: Token-based authentication

πŸ“Š Monitoring & Analytics (For DevOps)

Built-in Monitoring

  • Health Checks: /health endpoint for monitoring
  • Performance Metrics: Response times and success rates
  • Error Tracking: Comprehensive error logging
  • Usage Statistics: AI provider usage analytics

Logging Configuration

# Logging levels: error, warn, info, debug
LOG_LEVEL=info

# Log file rotation
LOG_MAX_SIZE=10MB
LOG_MAX_FILES=5

# Enable request logging
LOG_REQUESTS=true

🀝 Contributing (For Developers)

We welcome contributions! Here's how to get started:

Development Setup

# Clone the repository
git clone https://github.com/anuragarwalkar/ai-workflow-utils.git
cd ai-workflow-utils

# Install dependencies
npm install

# Set up environment
cp .env.example .env
cp ui/.env.example ui/.env

# Start development server
npm run dev

Project Structure

ai-workflow-utils/
β”œβ”€β”€ bin/                 # CLI scripts
β”œβ”€β”€ server/             # Backend (Node.js + Express)
β”œβ”€β”€ ui/                 # Frontend (React + Redux)
β”œβ”€β”€ dist/               # Built files
└── docs/               # Documentation

Contribution Guidelines

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

πŸ“ API Documentation (For Developers)

Core Endpoints

Jira Ticket Creation:

POST /api/jira/preview
Content-Type: application/json

{
  "prompt": "Login button not working",
  "images": ["base64-encoded-image"],
  "issueType": "Bug"
}

Create Pull Request Preview (Streaming):

POST /api/pr/stream-preview
Content-Type: application/json

{
  "projectKey": "PROJ",
  "repoSlug": "my-repo",
  "ticketNumber": "PROJ-123",
  "branchName": "feature/my-branch"
}

# Returns Server-Sent Events stream with:
# - status updates
# - title_chunk events (streaming title generation)
# - title_complete event (final title)
# - description_chunk events (streaming description generation)
# - description_complete event (final description)
# - complete event (final preview data)

Create Pull Request:

POST /api/pr/create
Content-Type: application/json

{
  "projectKey": "PROJ",
  "repoSlug": "my-repo",
  "ticketNumber": "PROJ-123",
  "branchName": "feature/my-branch",
  "customTitle": "feat(PROJ-123): Add user authentication",
  "customDescription": "## Summary\nAdded user authentication feature\n\n## Changes Made\n- Added login component\n- Implemented JWT tokens"
}

GitStash PR Review:

POST /api/pr/review
Content-Type: application/json

{
  "repoUrl": "https://bitbucket.company.com/projects/PROJ/repos/repo",
  "pullRequestId": "123",
  "reviewType": "security"
}

File Upload:

POST /api/jira/upload
Content-Type: multipart/form-data

file: [binary-data]
issueKey: "PROJ-123"

πŸ†˜ Troubleshooting (For Support)

Common Issues

Ollama Connection Failed:

# Check if Ollama is running
ollama list

# Start Ollama service
ollama serve

# Pull required model
ollama pull llava

Jira Authentication Error:

# Test Jira connection
curl -H "Authorization: Bearer YOUR_TOKEN" \
     https://your-company.atlassian.net/rest/api/2/myself

Port Already in Use:

# Use different port
ai-workflow-utils --port 8080

# Or kill existing process
lsof -ti:3000 | xargs kill -9

Debug Mode

# Enable detailed logging
ai-workflow-utils --debug

# Check logs
tail -f logs/app.log

πŸ“ž Support

Getting Help

Community

  • ⭐ Star us on GitHub: Show your support!
  • πŸ”„ Share: Help others discover this tool
  • 🀝 Contribute: Join our growing community

πŸ“ˆ Roadmap

Coming Soon

  • πŸ”— Direct PR Comments: AI comments directly in Bitbucket
  • πŸ”„ Workflow Automation: Custom automation workflows
  • πŸ“Š Analytics Dashboard: Usage insights and metrics
  • πŸ”Œ Plugin System: Extensible architecture
  • 🌐 Multi-language Support: Internationalization

Future Features

  • πŸ€– Advanced AI Agents: Specialized AI for different tasks
  • πŸ”— More Integrations: GitHub, GitLab, Azure DevOps
  • πŸ“± Mobile App: Native mobile applications
  • 🎯 Smart Routing: Intelligent task assignment

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸŽ–οΈ Acknowledgments

Special thanks to the amazing open-source community and the following technologies that make this project possible:

  • πŸ€– OpenAI & Anthropic: For providing excellent AI APIs
  • 🏠 Ollama: For enabling local AI processing with privacy
  • 🎯 Atlassian: For robust Jira and Bitbucket APIs
  • βš›οΈ React & Redux: For building beautiful, responsive UIs
  • πŸš€ Node.js & Express: For reliable backend infrastructure
  • 🎨 Material-UI: For professional design components

🌟 Why Choose AI Workflow Utils?

πŸš€ Productivity Boost

  • 10x Faster: Create professional Jira tickets in seconds
  • AI-Powered: Let AI handle the heavy lifting
  • Streamlined: One tool for all your workflow needs

πŸ”’ Privacy First

  • Local Processing: Use Ollama for complete data privacy
  • No Vendor Lock-in: Multiple AI provider support
  • Your Data: Stays on your infrastructure

πŸ› οΈ Developer Friendly

  • Easy Setup: Get started in minutes
  • CLI Tools: Powerful command-line interface
  • Extensible: Open architecture for customization

πŸ’Ό Enterprise Ready

  • Scalable: Handles teams of any size
  • Secure: Enterprise-grade security features
  • Reliable: Battle-tested in production environments

πŸš€ Ready to Transform Your Workflow?

Get Started Today!

npm install -g ai-workflow-utils

⭐ Star us on GitHub if this tool helps you!

πŸ“’ Share with your team and boost everyone's productivity!


Made with ❀️ by Anurag Arwalkar

Empowering developers worldwide with AI-powered workflow automation