Skip to content

Framework for generating passive income by utilizing a team of AI agents to generate niche software and AI bots for customers

License

Notifications You must be signed in to change notification settings

anchapin/pAIssive_income

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

pAIssive Income

codecov Build Status Coverage Status

Features

  • AI Agent Team: Utilize a team of AI agents to generate niche software and AI bots
  • CrewAI Integration: Use CrewAI to create and manage AI agent teams
  • CopilotKit Integration: Add AI copilot features to the React frontend
  • Multi-Chain Protocol (MCP) Support: Connect to various AI providers through a unified interface
    • Note: As of May 2025, the unused mcp-use dependency has been removed while maintaining full MCP functionality via the modelcontextprotocol package
  • mem0 Memory Integration: Enhance agents with persistent memory capabilities

pAIssive Income is a modular, extensible platform for AI-powered content generation, market analysis, monetization, and automation. It combines advanced AI models, multi-agent orchestration, and robust APIs with a focus on developer experience and security.


πŸ“‹ Prerequisites

Before getting started, ensure you have the following installed on your system:

Required Dependencies

  • Python 3.8+ - Core runtime for the application
  • Git - Version control (for cloning the repository)
  • Virtual Environment Tools - For Python dependency isolation:
    • uv (recommended) - Fast Python package installer and resolver
    • Or venv (built into Python 3.3+)
  • Node.js 16.10+ - For UI components and frontend development
  • pnpm - Node.js package manager (preferred over npm/yarn)

Installation Quick Reference

# Install uv (Python package manager)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install pnpm (Node.js package manager)
npm install -g pnpm

# Verify installations
python --version    # Should be 3.8+
uv --version
node --version      # Should be 16.10+
pnpm --version
git --version

Optional Dependencies

  • Docker & Docker Compose - For containerized development
  • VS Code - Recommended IDE with project-specific configurations

πŸš€ Quick Start

The easiest way to get your development environment set up is by using our new setup scripts:

  • For Linux/macOS:
    bash setup.sh
  • For Windows:
    setup.bat

These scripts will guide you through the installation of dependencies, environment configuration, and other necessary setup tasks.

For manual setup steps or more details, please refer to docs/00_introduction/02_getting_started.md.


πŸ“š Documentation

Complete Documentation Structure

Core Sections:

For a full directory map, see docs/00_introduction/03_project_structure.md. Full documentation and advanced usage are organized in docs/.


🀝 Contributing

See Development Workflow for contribution guidelines and coding standards. Module-specific deep dives are in docs/02_developer_guide/06_module_deep_dives/.


πŸ”’ Security

Security policy, reporting, and compliance: docs/04_security_and_compliance/01_security_overview.md Historical fixes and audit notes: docs/09_archive_and_notes/security_fixes_summaries.md


πŸ“ License

See LICENSE.


JavaScript Testing and Coverage

This project enforces at least 80% code coverage for JavaScript files using Vitest with V8 coverage provider.

How to Run JavaScript Tests

Install dependencies (if not already done):

pnpm install

Run JavaScript tests and check coverage:

pnpm test
  • If code coverage falls below 80%, the test run will fail.
  • Coverage reports will be printed to the console and an HTML report will be generated in the coverage/ directory (if running locally).

To generate a detailed lcov report:

pnpm coverage

Coverage thresholds for statements, branches, functions, and lines are all set to 80%.

You can find example JS source and tests in the src/ directory.


Writing Advanced JavaScript Tests (React Component Example)

For more complex JavaScript code, such as React components, you can write tests to verify rendering, user interaction, and state updates.

Example: Testing a React Component with Vitest and React Testing Library

Example component (src/Hello.js):

import React from 'react';

export function Hello({ name }) {
  return <div>Hello, {name}!</div>;
}

Example test (src/Hello.test.js):

import { describe, it, expect } from 'vitest';
import { render, screen } from '@testing-library/react';
import { Hello } from './Hello';

describe('Hello component', () => {
  it('renders the correct greeting', () => {
    render(<Hello name="World" />);
    expect(screen.getByText('Hello, World!')).toBeInTheDocument();
  });
});

Tip: This project uses Vitest with React Testing Library for modern, fast testing with excellent React support and built-in mocking capabilities.

Best Practices:

  • Test both rendering and user events/interactions.
  • Mock API calls and external dependencies.
  • Use coverage reports to identify untested code paths.
  • Place tests next to source files or in a dedicated test directory.

Dependency Updates (via Dependabot)

This project uses Dependabot to keep dependencies up-to-date for all major ecosystems:

  • JavaScript/Node (pnpm): Updates to packages in package.json
  • Python: Updates to packages in requirements-ci.txt, requirements_filtered.txt
  • Docker: Updates to base images in Dockerfile, main_Dockerfile, and ui/react_frontend/Dockerfile.dev
  • GitHub Actions: Updates to workflow actions in .github/workflows/

How it works:

  • Dependabot will automatically open pull requests for version updates on a weekly schedule.
  • PRs are labeled by ecosystem (e.g., dependencies, javascript, python, docker, github-actions).
  • Some dependencies (e.g., react, flask, pytest) will not be updated for major releases automatically.

Maintainer action:

  • Review Dependabot PRs promptly.
  • Ensure CI/tests pass before merging.
  • For major upgrades, review changelogs for breaking changes.

Recent Major Updates:

  • TailwindCSS v4 Upgrade: Updated to TailwindCSS v4.1.10 with new CLI and PostCSS architecture
    • New packages: @tailwindcss/cli and @tailwindcss/postcss
    • Updated build process and configuration files
    • See TailwindCSS Integration Guide for details

For more details, see .github/dependabot.yml.

Tip for maintainers: Periodically review and adjust the .github/dependabot.yml configuration (update schedules, ignored dependencies, PR limits) to ensure it fits the project's evolving needs.


For any questions, see the FAQ or open an issue.

pAIssive Income is a modular, extensible platform for AI-powered content generation, market analysis, monetization, automation, and more. It features advanced agent orchestration, robust APIs, secure development practices, and a developer-friendly workflow. The project is organized for clarity, maintainability, and rapid onboarding.


Docker Compose Integration

Tip: To enable advanced build graph features (Compose BuildKit Bake), set COMPOSE_BAKE=true in your .env file. This requires Docker Compose v2.10+ and will use the BuildKit bake engine for improved build performance and caching.

For more details on the Docker Compose integration and Compose Bake, see docs/03_devops_and_cicd/DOCKER_COMPOSE.md.

CrewAI + CopilotKit Integration

This project includes integration with CrewAI and CopilotKit to enable powerful multi-agent AI features in the React frontend.

Features

  • Agentic Chat: Chat with AI copilots and call frontend tools
  • Human-in-the-Loop: Collaborate with the AI, plan tasks, and decide actions interactively
  • Agentic/Generative UI: Assign long-running tasks to agents and see real-time progress

Usage

To use the CrewAI + CopilotKit integration:

  1. Install the required dependencies:

    # Backend (CrewAI)
    pip install '.[agents]'
    
    # Frontend (CopilotKit)
    cd ui/react_frontend
    npm install
  2. Start the application:

    # Using Docker Compose
    docker compose up --build
    
    # Or manually
    python app.py

For more details on the CrewAI + CopilotKit integration, see:

mem0 Memory Integration

This project includes integration with mem0, a memory layer for AI agents that enables persistent memory capabilities across conversations and sessions.

Features

  • Persistent Memory: Agents remember user preferences, past interactions, and important information
  • Memory Search: Retrieve relevant memories based on context and queries
  • Conversation Storage: Store entire conversations for future reference
  • Memory-Enhanced Agents: Both ADK and CrewAI agents are enhanced with memory capabilities

Usage

To use the mem0 integration:

  1. Install the required dependencies:

    pip install -r requirements.txt
  2. Set your OpenAI API key (required by mem0):

    # Linux/macOS
    export OPENAI_API_KEY='your-api-key'
    
    # Windows (PowerShell)
    $env:OPENAI_API_KEY='your-api-key'
    
    # Windows (Command Prompt)
    set OPENAI_API_KEY=your-api-key
  3. Use memory-enhanced agents in your code:

    # For ADK agents
    from adk_demo.mem0_enhanced_adk_agents import MemoryEnhancedDataGathererAgent
    
    agent = MemoryEnhancedDataGathererAgent(name="DataGatherer", user_id="user123")
    
    # For CrewAI agents
    from agent_team.mem0_enhanced_agents import MemoryEnhancedCrewAIAgentTeam
    
    team = MemoryEnhancedCrewAIAgentTeam(user_id="user123")

For more details on the mem0 integration, see:

ARTIST (Agentic Reasoning) Integration

This project supports ARTIST (Agentic Reasoning and Tool Integration in Self-improving Transformers), an advanced framework for agentic reasoning and dynamic tool use in LLM-driven systems.

  • Agentic Reasoning: Leverage ARTIST's self-improving agent architecture to orchestrate complex reasoning and multi-tool workflows, enhancing both automation and adaptability.
  • Integration Points: Core logic resides in ai_models/artist_agent.py, with tool registry support and experiments in artist_experiments/.
  • Experiments & Extensibility: Run or extend experiments such as math problem solving and multi-API orchestration, or integrate ARTIST agents into your own workflows.

See docs/ARTIST_integration.md for setup instructions, usage examples, troubleshooting, and demo checklists.

πŸš€ Getting Started

For installation, setup, and usage, see our Getting Started Guide.


πŸ“š Documentation

For a full breakdown of directory structure and module deep dives, see docs/00_introduction/03_project_structure.md and docs/02_developer_guide/06_module_deep_dives/README.md.


πŸ›‘οΈ Security

See Security Policy and Security Overview.


πŸ’‘ Key Directories

  • ai_models/ β€” Model management and utilities
  • agent_team/ β€” CrewAI agent orchestration
  • api/ β€” API server and endpoints
  • docs/ β€” All documentation (user, developer, security, CI/CD, SDKs, etc.)
  • tests/ β€” Unit and integration tests

πŸ§‘β€πŸ’» Contributing

All development uses uv (Python) and pnpm (Node.js). See the Developer Workflow for guidelines, linting, and the contribution checklist.

OpenHands Development Environment

This project includes automated setup for OpenHands development environments. The .openhands/setup.sh script automatically configures all required dependencies (Node.js, pnpm, uv) with pinned versions for reproducible builds. See the Development Workflow for details.


πŸ“’ Need Help?


πŸ“ License

See LICENSE for license details.

πŸ“ˆ Roadmap & Ongoing Work

Recent Changes

uv and pnpm Implementation Updates

  • Updated .uv.toml configuration with improved cache management, timeout settings, and parallel installation support
  • Enhanced GitHub workflow configurations for better cross-platform compatibility
  • Improved uv virtual environment handling and dependency management

JavaScript Dependencies

  • Updated react-router-dom from 7.6.0 to 7.6.2 (June 2025) - includes bug fixes and performance improvements

About

Framework for generating passive income by utilizing a team of AI agents to generate niche software and AI bots for customers

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy