Back to Projects
https://hgcrafting.vercel.app
Loading preview…
Project screenshot

HG Network

Web App
Next.js 16React 19TypeScriptTailwind CSS 4StripeSupabaseRCONVercel

About This Project

HG Network is a set of community sites for three game servers (Minecraft, Garry's Mod DarkRP, and Rust). A single Next.js 16 repo builds three separate Vercel projects, switched by one environment variable. Layout, motion, and components are shared, while each site gets its own accent colors, server list, store packages, rules, and markdown news. The store is the interesting part. Stripe Checkout handles one-time and monthly packages, a webhook records the purchase in Supabase and queues in-game commands, and a small poller on the game-server host pulls pending deliveries and executes them over RCON, then acknowledges them. Each site also exposes a live connect console with player counts from the mcstatus and BattleMetrics APIs, a JSON status endpoint for Discord bots, and per-site sitemaps, robots, and Open Graph images.

Key Features

  • Three production sites from one repo, selected by NEXT_PUBLIC_SITE
  • Stripe Checkout for one-time and recurring packages
  • Webhook to Supabase to RCON delivery pipeline with acknowledgements
  • Live server status from mcstatus.io and BattleMetrics
  • Markdown news and rules per site with frontmatter
  • Generated sitemap, robots, favicon, and Open Graph image per site
  • Sister sites: hgrusty.vercel.app and hgdarkrp