Skip to content

Decentralized video captioning protocol using efficient DePIN computation and AI agents

Notifications You must be signed in to change notification settings

4hackerx/crystalrohr

Repository files navigation

Here's a README file for your project based on the flow diagram you provided:


Demo

Project Name: Video Auto Caption Service with DePIN Network Participation

Overview

This project provides a comprehensive platform for users to auto-generate captions for their videos and participate in a decentralized physical infrastructure network (DePIN) to earn tokens. The application offers seamless wallet integration, token management, and account management, making it easy for users to upload, process, and share videos with captions, as well as contribute resources to the network.

Table of Contents

Features

Video Auto Caption Service

  • User Authentication: Secure login and wallet connection.
  • Onboarding: Guided onboarding process for new users.
  • Video Upload: Users can upload videos to generate captions automatically.
  • Progress Tracking: Real-time progress bar during the captioning process.
  • Caption Review: Users can review and edit auto-generated captions.
  • Download and Share: Download captioned videos and share them easily.

DePIN Network Participation

  • Staking and Contribution: Stake tokens and contribute resources to earn tokens.
  • Earnings Dashboard: Track earnings and contribution statistics.

Token Management

  • Token Balance: View and manage token balances.
  • Purchases and Withdrawals: Purchase more tokens, set auto-recharge, and withdraw tokens.

Account Management

  • Profile Updates: Update personal information and manage profile settings.

Flow Diagram

graph TD
    A[User visits website] --> B[User authenticates/logs in]
    B --> C[User connects wallet]
    C --> D[User lands on dashboard]

    D --> E{New user?}
    E -->|Yes| F[Onboarding process]
    E -->|No| G[Video Auto Caption Service]
    F --> G
    G --> H[User clicks 'Upload Video']
    H --> I[User selects video file]
    I --> J[User confirms upload]
    J --> K[System processes video]
    K --> L[User views progress bar]
    L --> M[System completes captioning]
    M --> N[User receives notification]
    N --> O[User reviews auto-generated captions]
    O --> P{User satisfied?}
    P -->|Yes| Q[User downloads captioned video]
    P -->|No| R[User edits captions]
    R --> S[User saves changes]
    S --> Q
    Q --> T[User shares video]
    T --> G

    D --> U[DePIN Network Participation]
    U --> V{User staked?}
    V --> |Yes| W[User clicks 'Contribute Resources']
    V --> |No| X[User clicks 'Stakes Token']
    X --> W
    W --> Y[User starts contributing]
    Y --> Z[User earns tokens]
    Z --> AA[User views contribution stats]

    D --> AB[Token Management]
    AB --> AC[User views token balance]
    AC --> AD[User purchases more tokens]
    AD --> AE[User sets auto-recharge]
    AC --> AF[User withdraws tokens]

    D --> AG[Account Management]
    AG --> AH[User updates profile]
    AH --> AI[User views captioning history]
    AI --> AJ[User manages subscriptions]
Loading

Sponsors Used

  • Web3Auth: Used Web3auth as primary mode of authentication
  • Chainlink: Used Chainlink's VRF to randomly select nodes
  • XMTP: Using XMTP suscriber sdk for notifications
  • Sign Protocol: Used sign protocol to generate attestations for the captioned video

Blockchains Used

  • Ethereum Sepolia Testnet
  • Rootstock Testnet
  • Hedera Testnet
  • Morph Testnet
  • Kinto Holesky

Installation

  1. Clone the repository:

    git clone https://github.com/your-repo/project-name.git
  2. Install dependencies:

    cd project-name
    npm install
  3. Set up environment variables:

    • Create a .env file in the root directory.
    • Add the necessary environment variables as per .env.example.
  4. Start the development server:

    npm run dev

Usage

  1. Visit the website and log in using your credentials.
  2. Connect your wallet to access the dashboard.
  3. For new users, complete the onboarding process.
  4. Upload a video to auto-generate captions, review, and edit as needed.
  5. Participate in the DePIN network by staking tokens and contributing resources.
  6. Manage tokens, account details, and view captioning history through the dashboard.

About

Decentralized video captioning protocol using efficient DePIN computation and AI agents

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published