AiToEarn Platform

repository·main·Indexed 10 days ago

https://github.com/yikart/aitoearn

An open-source AI Agent-driven platform for One-Person Companies (OPC) and creators to automate the content marketing lifecycle, including creation, distribution, engagement, and monetization. It features Content Agents capable of managing multiple accounts across global social media platforms such as TikTok, YouTube, Instagram, X, Facebook, LinkedIn, and various Chinese platforms like Xiaohongshu, Douyin, Bilibili, and Kuaishou.

Tokens
194K
Snippets
551
Records
904
Agent score
97%

What's inside AiToEarn

  1. Overview of AiToEarn capabilities

    main

    AiToEarn is an all-in-one AI content marketing platform designed for creators, brands, and businesses to build, distribute, and monetize content across global platforms through AI automation.

    Core Pillars:

    • Monetize (収益化): Content monetization.
    • Publish (公開): Content publishing agent.
    • Engage (エンゲージメント): Content interaction agent.
    • Create (クリエイト): Content creation agent.

    Supported Channels:

    • Chinese Platforms: Douyin (抖音), Rednote (小紅書), Kuaishou (快手), b站 (bilibili), WeChat Channels (視頻号), WeChat Official Accounts (微信公式アカウント).
    • Global Platforms: TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest, LinkedIn.
  2. Overview of AiToEarn's purpose and target users

    main

    AiToEarn is an AI-assisted content growth and monetization workspace. It is designed to automate the workflow of creating, adapting, scheduling, publishing, and tracking content across multiple platforms.

    Target Users

    • Creators & Teams: Managing multi-platform publishing workflows.
    • Brand & Advertiser Operators: Managing campaigns, tasks, and account interactions.
    • Growth Operators: Focusing on efficient content production, account binding, and monetization.
    • Marketers & Operations Teams: Requiring reliable, high-volume social content workflows.
  3. Overview of the platforms API

    main

    The platforms API provides specialized capabilities for different social media platforms, including publishing, authorization, platform-specific parameters, and work/content validation.

    In the open-source version, the API is limited to the specific interfaces for publishing, authorization, platform parameters, and work data required by the current pages and components.

  4. AiToEarn Overview and Supported Channels

    main

    AiToEarn is an AI Agent-driven platform designed for One-Person Companies (OPC), creators, brands, and enterprises to build, distribute, and monetize content globally. It automates content marketing through four core pillars: Monetize, Publish, Engage, and Create.

    Supported Channels:

    • China: Douyin (抖音), Rednote (小红书), Kuaishou (快手), Bilibili (哔哩哔哩), WeChat Video Accounts (视频号).
    • Global: TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest, LinkedIn.
  5. Understand the ImageStack component structure

    main

    The ImageStack is a private media stacking component used within AiBatchGenerateBar. It manages the folding/unfolding display, expansion interactions, deletion animations, upload entry points, and media previews for local images, videos, and audio files.

    Directory Structure

    DirectoryDescription
    index.tsxThe entry composition layer. It connects hooks, mobile/desktop containers, and media previews.
    components/Private UI sub-components (e.g., media cards, progress layers, and containers).
    hooks/Private hooks (e.g., responsive logic, expansion state, deletion logic, and video information).
    types/Private types for props, callbacks, layout states, and video information.
    utils/Private constants, media display names, preview types, and style calculations.
  6. Use Agent utility tools for asset management

    main

    The project/aitoearn-web/src/utils/agent directory contains shared utility functions for Agent-related business logic. These tools are designed to support cross-page scenarios such as Agent asset pages, AI Social previews, and asset selection during publishing.

    Note on usage: These utilities should only be used for logic that spans multiple pages related to Agent assets. If a utility is only required for a single page, it should be kept within that page's local directory instead of being placed here.

  7. Understand the ToolBarInline component structure

    main

    The ToolBarInline is a private inline toolbar used within the AiBatchGenerateBar component. It is responsible for aggregating various configuration options for AI generation, including:

    • Generation Modes (生成模式)
    • Platforms (平台)
    • Models (模型)
    • Parameters (参数)
    • Aspect Ratios (比例)
    • Duration (时长)
    • Quantity (数量)
    • Quick Links (快捷链接)
    • Submission Controls (提交控件)

    Directory Structure

    DirectoryDescription
    index.tsxThe entry composition layer. It connects props, translations, hooks, and sub-components.
    components/Private UI sub-components for the toolbar, organized with one folder per component.
    hooks/Private hooks for the toolbar (e.g., managing popover states, derived data, and events).
    utils/Private pure functions and style class constants.
    types/Private props, view models, and helper types.
  8. Supported Channels in AiToEarn

    main

    AiToEarn supports content distribution and automation across a wide range of global platforms, including:

    • Chinese Platforms: Douyin, Xiaohongshu (Rednote), Kuaishou, Bilibili, WeChat Channels, WeChat Official Accounts.
    • International Platforms: TikTok, YouTube, Facebook, Instagram, Threads, Twitter (X), Pinterest, LinkedIn.
  9. Capabilities of the editing-videos skill

    main

    The editing-videos skill uses the Volcengine cloud editing API with a native Track structure. It supports the following operations:

    • Clip Manipulation: Cutting, trimming, and merging multiple video clips.
    • Overlays: Adding text, watermarks, or stickers.
    • Audio: Adding or replacing audio tracks.
    • Visuals: Applying filters, visual effects, and transitions between clips.
    • Adjustments: Changing video playback speed and removing watermarks (logo blur).
  10. Component Directory for draft-box Business Domain

    main

    The src/components/draft-box directory contains cross-page shared components specifically for the draft-box business domain. This includes components for draft plans, details, generation bars, and media operations that are reused across multiple draft-box pages.

    Available Components

    Component DirectoryDescription
    components/AiBatchGenerateBar/AI batch generation input bar for the draft-box. Includes media uploading, prompt input, model parameters, and platform selection. Organized into components, hooks, utils, and styles subdirectories.
    components/MediaMentionPromptText/A read-only component that displays media mentions within prompts, rendering @Image, @Video, or @Audio as resource chips.