hobokenchicken 20d1f216a0 fix: update anchor to 0.30.1 and fix breaking changes
- anchor-lang: 0.29.0 -> 0.30.1
- anchor-spl: 0.29.0 -> 0.30.1
- solana-program: 1.16.20 -> 2.x (inferred from anchor-spl)
- Fix token_prog -> token_program naming
- Fix ctx.bumps access for Anchor 0.30.x API
- Update declare_id! with new vanity address

Build now passes successfully.
2026-04-14 15:29:55 -04:00
2026-04-14 13:42:35 -04:00

CoopCredits ($COOP) Media Rewards Ecosystem

A complete Solana-based rewards system integrated with Plex, Tautulli, and Overseer.

System Architecture

┌─────────────────────────────────────────────────────────────────────────────┐
│                           coop.hobokenchicken.com                           │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐  ┌─────────────────┐  │
│  │   Next.js    │  │   Express    │  │  PostgreSQL  │  │  Solana Devnet  │  │
│  │   Frontend   │◄─┤    API       │◄─┤   Database   │◄─┤   $COOP SPL     │  │
│  │              │  │              │  │              │  │    Token        │  │
│  └──────────────┘  └──────────────┘  └──────────────┘  └─────────────────┘  │
│         ▲                 ▲                                                    │
│         │                 │                                                    │
│    Plex OAuth      Tautulli Webhooks                                           │
│         │                 │                                                    │
│         ▼                 ▼                                                    │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐                         │
│  │ Plex Server  │  │  Tautulli    │  │  Overseer    │                         │
│  │  (Content)   │  │ (Analytics)  │  │  (Requests)  │                         │
│  └──────────────┘  └──────────────┘  └──────────────┘                         │
└─────────────────────────────────────────────────────────────────────────────┘

Quick Start

# 1. Clone and install dependencies
cd coop-credits
npm install

# 2. Set up environment
cp backend/.env.example backend/.env
# Edit backend/.env with your values

# 3. Start with Docker Compose
docker-compose up -d

# 4. Deploy Solana program
cd anchor-program
anchor deploy

# 5. Seed initial data
npm run db:seed

Project Structure

coop-credits/
├── anchor-program/     # Solana Anchor program for $COOP token
├── backend/           # Express API server
├── frontend/          # Next.js dashboard
├── shared/            # Shared types and utilities
├── docker/            # Docker configurations
├── deployment/        # Deployment scripts
└── docker-compose.yml # Full stack orchestration

User Flow

  1. Login → User visits coop.hobokenchicken.com, authenticates with Plex
  2. Wallet → Auto-created Solana wallet or connect existing
  3. Watch → Viewing on Plex → Tautulli triggers → $COOP minted
  4. Earn → Real-time balance updates on dashboard
  5. Spend → Request content on Overseer → $COOP deducted
  6. History → Full transaction history visible on dashboard

Admin Features

  • System overview and analytics
  • User management and balance adjustments
  • Minting rate controls
  • Spending controls and promotions
  • Emergency pause and recovery

Environment Variables

See backend/.env.example and frontend/.env.local.example for full configuration.

S
Description
Watch-to-earn credits for your Plex server. Earn by watching, spend on content requests. Self-hosted economics for media nerds.
Readme 1.6 MiB
Languages
TypeScript 75.2%
Shell 19.8%
Rust 2.6%
CSS 1.3%
Dockerfile 0.9%
Other 0.2%