Skip to content

Protect your DAO from spam, scams, and toxicity with QuackShield, an AI-powered moderation agent that's transparent and community-aligned. #AI #Web3 #DuckChain

License

Notifications You must be signed in to change notification settings

chandan989/QuackShield

Repository files navigation

๐Ÿฆ†โšก QuackGuard

  โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
  โ•‘   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ•‘
  โ•‘  โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘ โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ• โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•— โ•‘
  โ•‘  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘ โ•‘
  โ•‘  โ–ˆโ–ˆโ•‘โ–„โ–„ โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘ โ•‘
  โ•‘  โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ• โ•‘
  โ•‘   โ•šโ•โ•โ–€โ–€โ•โ•  โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•โ•šโ•โ•  โ•šโ•โ• โ•šโ•โ•โ•โ•โ•โ•  โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•  โ•‘
  โ•‘                                                                                        โ•‘
  โ•‘                    ๐ŸŒ Multi-Agent Moderation Framework MVP                            โ•‘
  โ•‘                           โšก React + TypeScript Demo โšก                               โ•‘
  โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿš€ Project Overview

QuackGuard is an MVP prototype demonstrating a multi-agent moderation framework built with React and TypeScript. This interactive demo showcases how intelligent agents can collaborate in sequence to maintain digital community standards through configurable rules and transparent decision-making.

๐ŸŽฏ MVP Goal: Demonstrate agent collaboration through a simulated chat environment with Moderator Agent and Verifier Agent working in sequence.

๐ŸŽฏ Core Directive: Build unstoppable, transparent, and democratically governed content moderation through agent swarms.


๐Ÿค– Agent Specifications

๐Ÿ” Moderator Agent

  • Classification: Tier-1 Detection Unit
  • Directive: Real-time threat scanning and initial flagging
  • Response Time: <100ms
  • Precision Mode: Pattern recognition via heuristic algorithms

โœ… Verifier Agent

  • Classification: Tier-2 Validation Unit
  • Directive: Secondary confirmation and action execution
  • Response Time: 2-3s verification delay
  • Authority Level: Content removal authorization

๐Ÿ›๏ธ Appeal Protocol

  • Governance Layer: On-chain DAO arbitration
  • Stake Requirement: 50 $DUCK tokens
  • Consensus Model: Decentralized community voting

๐ŸŒŒ System Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   ๐Ÿ” MODERATOR  โ”‚โ”€โ”€โ”€โ–ถโ”‚   โœ… VERIFIER   โ”‚โ”€โ”€โ”€โ–ถโ”‚  ๐Ÿ›๏ธ DAO APPEAL  โ”‚
โ”‚                 โ”‚    โ”‚                 โ”‚    โ”‚                 โ”‚
โ”‚  โ€ข Flag Detectionโ”‚    โ”‚ โ€ข Confirmation  โ”‚    โ”‚ โ€ข Token Staking โ”‚
โ”‚  โ€ข Rule Engine   โ”‚    โ”‚ โ€ข Final Action  โ”‚    โ”‚ โ€ข Voting System โ”‚
โ”‚  โ€ข Real-time    โ”‚    โ”‚ โ€ข State Update  โ”‚    โ”‚ โ€ข Override Auth โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
           โ”‚                      โ”‚                      โ”‚
           โ–ผ                      โ–ผ                      โ–ผ
     โšก INSTANT FLAG         ๐Ÿ›ก๏ธ VERIFIED REMOVAL     ๐Ÿ“ก CHAIN STATE

๐Ÿ› ๏ธ Technical Stack & Setup

Tech Stack

  • Frontend: React 19.1.1 + TypeScript 5.8.3 via Vite 7.1.2
  • Styling: TailwindCSS 4.1.12 + PostCSS + Autoprefixer
  • State Management: React hooks (useState, useEffect, useCallback)
  • Blockchain Integration: Custom DuckChain hooks and utilities
  • Type Safety: Full TypeScript with interfaces for all models
  • Linting: ESLint 9.33.0 + TypeScript ESLint

Prerequisites

  • Node.js v18+
  • Modern web browser
  • Basic knowledge of React/TypeScript

Installation & Setup

# Clone the repository
git clone <repository-url>
cd quack-shield-app

# Install dependencies
npm install

# Start development server
npm run dev

Development Commands

# Launch QuackGuard Demo
http://localhost:5173

# Run tests
npm run test

# Build for production
npm run build

๐ŸŽฎ Interface Protocol

See also: DEMO_SCRIPT.md for a 4โ€‘minute speaking script.

๐Ÿ”ง Control Panel

Configure your agent swarm with precision controls:

  • Agent Activation Switches: Toggle Moderator/Verifier units
  • Rule Matrix: Malicious link detection, toxicity scanning, spam filtering
  • Live Status: Real-time agent health monitoring

๐Ÿ’ฌ Message Stream

Watch the agents work in real-time:

  • Normal State: Standard message flow โšช
  • Flagged State: Moderator detection active โš ๏ธ
  • Verified State: Verifier confirmation complete โŒ
  • Appeal State: DAO arbitration pending ๐Ÿ“Š

๐Ÿ›๏ธ Appeal Interface

Decentralized governance in action:

  • Stake tokens to challenge agent decisions
  • Community-driven oversight mechanism
  • Transparent voting process

๐Ÿ”ฌ Test Matrix

Agent Validation

# Unit testing for agent logic
npm run test

# Smoke test full agent lifecycle
npm run test:integration

Demo Scenarios

  1. Malicious Link Detection: Watch agents flag suspicious URLs
  2. Toxicity Filtering: Observe language pattern recognition
  3. Appeal Process: Experience democratic override mechanism

๐ŸŒ MVP Status

๐ŸŸก DuckChain Testnet: SIMULATED
โšก Agent Swarm: 2/2 DEMO ACTIVE (Moderator + Verifier)
๐Ÿ“ก DAO Governance: SIMULATED
๐Ÿ›ก๏ธ Security Level: PROTOTYPE

Note: This is an MVP prototype with simulated blockchain interactions for demonstration purposes.


๐Ÿ”ฎ Future Enhancements

QuackGuard MVP is designed as a foundation for future expansion:

  • ๐Ÿง  Neural Networks: Integration with advanced ML moderation models
  • ๐Ÿ”— Cross-Chain Compatibility: Multi-blockchain agent deployment
  • ๐Ÿค Agent Marketplace: Pluggable third-party agent extensions
  • ๐ŸŒ Real Blockchain Integration: Actual on-chain governance and appeals
  • โš–๏ธ Advanced Rules Engine: More sophisticated content detection algorithms

๐Ÿ›ธ Contributing

QuackGuard welcomes community contributions to improve the multi-agent framework:

  1. Fork the repository
  2. Create feature branches for new agent types or UI improvements
  3. Submit pull requests with clear documentation
  4. Follow TypeScript and React best practices
  5. Add tests for new functionality

๐Ÿ“ก Project Information

Project: QuackGuard MVP
Version: MVP-2025.09.01
Tech Stack: React 19.1.1 + TypeScript 5.8.3 + Vite 7.1.2 + TailwindCSS 4.1.12
Agent Types: Moderator Agent + Verifier Agent
Blockchain: DuckChain Integration with Wallet Support
Components: ConfigurationPanel, ChatFeed, ChatMessage, Modal, DuckChain Hooks
Status: Interactive Demo with Full Implementation


๐Ÿ›ก๏ธ Security & Limitations

This MVP prototype operates with the following characteristics:

  • Simulated Environment: All blockchain interactions are mocked for demonstration
  • In-Memory State: No persistent data storage, resets on page refresh
  • Agent Logic: "Wizard of Oz" approach with predefined rules and delays
  • Educational Purpose: Designed to demonstrate multi-agent collaboration concepts
  • Open Source: All code is transparent and auditable

๐ŸŽฏ About This MVP

QuackGuard demonstrates the potential of multi-agent moderation frameworks through an interactive prototype. Built as part of a bounty submission, this MVP showcases agent collaboration, configurable rules, and democratic governance concepts in a simulated Web3 environment.

Built with ๐Ÿฆ† for the future of decentralized moderation
"Demonstrating Multi-Agent Collaboration"


    โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก
    END DEMO // QUACKGUARD MVP READY FOR TESTING
    โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก๐Ÿฆ†โšก

๐Ÿงพ DATs + LazAI/Alith Integration Plan

About

Protect your DAO from spam, scams, and toxicity with QuackShield, an AI-powered moderation agent that's transparent and community-aligned. #AI #Web3 #DuckChain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published