Skip to content

Serverz

serverz.tribewarez.com

A server hub and gateway for the TribeWarez ecosystem. Serverz provides a terminal-style landing page with wallet connection, X Connect OAuth, and Solana token reward claims.

Features

Wallet Connection

Supports MetaMask / EVM wallet connection with a fallback mock connection for testing. After connecting, users see the connected view with ecosystem links and status.

X Connect + Token Claim

Integrated X (Twitter) OAuth flow:

  1. Click Connect X to start the OAuth handshake
  2. Authorize the TribeWarez app on X
  3. Connect a Solana wallet
  4. Claim 1000 NMTC + 1000 PTtC (one-time per X account)

Claimed user IDs are tracked server-side to prevent duplicate claims.

Terminal UI

CRT-style retro interface with:

  • Grain overlay and scanline effects
  • Neon accent colors
  • Typing animation in the header
  • Dark theme throughout

Ecosystem Navigation

Links to all TribeWarez products:

  • Hub (hub.tribewarez.com)
  • Mystic Numbers (mystic.tribewarez.com)
  • Terminal (terminal.tribewarez.com)
  • DeFi Portal (defi.tribewarez.com)
  • Social channels (X, Telegram)
  • Pump.fun token pages

Tech Stack

LayerTechnology
FrameworkNext.js 16, React 19
UITailwind CSS, Radix UI, Lucide icons
FormsReact Hook Form, Zod
BlockchainSolana web3.js, SPL Token, bs58
RuntimeBun

API Routes

Server-side API routes handle the X OAuth flow:

RoutePurpose
GET /api/x-auth/authorizeRedirects to X OAuth consent screen
GET /api/x-auth/callbackProcesses OAuth callback, stores tokens
POST /api/x-auth/claimSends NMTC + PTtC to user's Solana wallet
POST /api/x-auth/webhookX webhook CRC verification handler

Key Components

ComponentPurpose
app/page.tsxMain hub page, connect/disconnect logic
terminal-header.tsxHeader with typing animation and connect button
disconnected-view.tsxPre-connect state with branding
connected-view.tsxPost-connect state with ecosystem links

Docker

Built with a Bun-based Dockerfile. Exposed internally and routed via VIRTUAL_HOST=serverz.tribewarez.com.

TribeWarez Blockchain Ecosystem