Skip to content

mrnetwork0001/Archon

Repository files navigation

Archon

AI-Consensus Community Intelligence Archive - Powered by GenLayer


Intelligent Contract: 0xbE639561789a89D3bbd3cf75fe02ee8E5BDA37Fe

Archon is a decentralized community intelligence platform where anyone can submit raw community content (X Space transcripts, Discord recaps, meeting notes, blog posts) to a GenLayer Intelligent Contract. The contract uses AI consensus via the Equivalence Principle to independently extract and verify key takeaways across multiple validators. Only when validators semantically agree on the analysis is it accepted and stored permanently onchain.


Deployed Contract

Field Value
Contract Address 0xbE639561789a89D3bbd3cf75fe02ee8E5BDA37Fe
Network GenLayer Studionet (Chain ID: 61999)
RPC https://studio.genlayer.com/api
Explorer explorer-studio.genlayer.com

Features

  • AI-Powered Analysis - Submit raw content and get structured intelligence: executive summaries, key alpha points, technical updates, sentiment analysis, and topic classification
  • Equivalence Principle Consensus - Multiple AI validators independently analyze content and must semantically agree before results are stored on-chain
  • On-Chain Archive - All verified intelligence is permanently stored on the GenLayer blockchain
  • Premium UI - Dark-mode glassmorphism design with mesh gradient backgrounds, animated gradient text, and smooth micro-animations
  • Demo Mode - Toggle between live blockchain and pre-loaded sample data for instant demonstration
  • Search & Filter - Find archives by keyword, source type, or sentiment
  • Slide-in Detail Panel - Block-explorer-style deep dive into each archive's full analysis
  • MetaMask Integration - Connect wallet and submit transactions to GenLayer Bradbury Testnet

Architecture

┌─────────────────────────────────────────────────────────┐
│                    Frontend (React + Vite)               │
│  ┌──────────┐ ┌──────────┐ ┌────────────┐ ┌──────────┐ │
│  │  Header   │ │ StatsBar │ │ SubmitForm │ │ Archive  │ │
│  │          │ │          │ │            │ │  Grid    │ │
│  └──────────┘ └──────────┘ └────────────┘ └──────────┘ │
│                        │                                 │
│                 useArchon Hook                           │
│                        │                                 │
│              GenLayer RPC Service                        │
└────────────────────────┼────────────────────────────────┘
                         │
                    JSON-RPC / gen_call
                         │
┌────────────────────────┼────────────────────────────────┐
│           GenLayer Bradbury Testnet                      │
│                                                          │
│  ┌─────────────────────────────────────────────────┐    │
│  │         Archon Intelligent Contract              │    │
│  │                                                   │    │
│  │  submit_content() ──→ Equivalence Principle      │    │
│  │    │                    │                          │    │
│  │    │              ┌─────┴──────┐                  │    │
│  │    │         Validator 1  Validator 2  ...        │    │
│  │    │              │            │                   │    │
│  │    │         AI Analysis  AI Analysis             │    │
│  │    │              │            │                   │    │
│  │    │         Semantic Comparison                   │    │
│  │    │              │                                │    │
│  │    └──→ Consensus Reached ──→ Store On-Chain     │    │
│  │                                                   │    │
│  │  get_all_archives() ──→ Read state               │    │
│  │  get_archive(id) ──→ Read single                 │    │
│  │  get_archive_count() ──→ Read count              │    │
│  └─────────────────────────────────────────────────┘    │
└──────────────────────────────────────────────────────────┘

How the Equivalence Principle Works

GenLayer's Equivalence Principle is the consensus mechanism that makes Archon possible:

  1. Content Submission - A user submits raw community content (e.g., an X Space transcript)
  2. Multi-Validator Processing - Multiple independent validator nodes each run their own LLM to analyze the content
  3. Independent Extraction - Each validator independently extracts: summary, key alpha points, technical updates, sentiment, and topics
  4. Semantic Comparison - Instead of requiring byte-level matching, validators compare results using gl.eq_principle_prompt_comparative - a semantic equivalence check
  5. Consensus or Rejection - Only when validators semantically agree on the analysis is it accepted and stored on-chain
  6. Permanent Storage - The verified analysis is permanently recorded in the contract state

This ensures that AI-generated summaries are validated, consistent, and trustworthy - not just a single LLM's hallucination.


Tech Stack

Layer Technology
Frontend React 19 + Vite
Styling Vanilla CSS (glassmorphism, custom properties)
Typography Inter + JetBrains Mono (Google Fonts)
Smart Contract GenLayer Intelligent Contract (Python)
Consensus GenLayer Equivalence Principle
Network GenLayer Bradbury Testnet (Chain ID: 4221)
RPC GenLayer JSON-RPC (gen_call)
Wallet MetaMask
Deployment Vercel

Getting Started

Prerequisites

  • Node.js 18+
  • npm or yarn
  • MetaMask browser extension (for live mode)

Installation

# Clone the repository
git clone https://github.com/your-username/archon.git
cd archon

# Install dependencies
npm install

# Start development server
npm run dev

The app will be available at http://localhost:5173/

Demo Mode

The app starts in Demo Mode by default, showing 5 pre-loaded sample archives so you can explore the full UI without a deployed contract. Toggle it off in the header to switch to live blockchain mode.


Project Structure

archon/
├── contracts/
│   └── alpha_vault.py          # GenLayer Intelligent Contract
├── src/
│   ├── config/
│   │   └── contract.js         # Contract address & chain config
│   ├── services/
│   │   ├── genlayer.js         # JSON-RPC service for contract calls
│   │   └── demoData.js         # Sample archives for demo mode
│   ├── hooks/
│   │   └── useArchon.js        # React hook for all state management
│   ├── components/
│   │   ├── Header.jsx/css      # Branding, wallet, demo toggle
│   │   ├── StatsBar.jsx/css    # Animated stat counters
│   │   ├── SubmitForm.jsx/css  # Content submission form
│   │   ├── ArchiveGrid.jsx/css # Archive browser with filters
│   │   └── ArchiveDetail.jsx/css # Slide-in detail panel
│   ├── App.jsx                 # Root component
│   ├── App.css                 # Layout styles
│   ├── index.css               # Design system & global styles
│   └── main.jsx                # Entry point
├── vercel.json                 # Deployment config with RPC proxy
├── vite.config.js              # Dev server + proxy config
└── README.md

Contract Deployment

The Intelligent Contract is at contracts/alpha_vault.py. To deploy:

  1. Open GenLayer Studio
  2. Import alpha_vault.py
  3. Deploy to Bradbury Testnet
  4. Copy the deployed contract address
  5. Update src/config/contract.js with the new address

Deployment (Vercel)

# Build for production
npm run build

# Deploy to Vercel
npx vercel --prod

The vercel.json includes RPC proxy rewrites to avoid CORS issues in production.


About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors