Back to Case Studies
Web Application

HGN Office

Unified Staff Management Platform

Completed in 2026

HGN OfficeHGN Office preview

Overview

A comprehensive staff management system built for HorizonGate Network, consolidating server monitoring, rank management, scheduling, Discord integration, and admin dashboards into one cohesive platform.

The Challenge

Managing multiple MySQL databases simultaneously within a single Next.js application while implementing Discord OAuth with role-based access control and dynamic permission resolution.

The Solution

Implemented separate connection pools for different data sources, integrated NextAuth for Discord OAuth, and built a 3D Minecraft skin viewer using the Mojang API and WebGL rendering pipeline.

Full Story

HGN Office is a unified staff management platform built for HorizonGate Network, a Minecraft server community. Rather than maintaining separate tools for different workflows, the goal was to consolidate everything — server monitoring, rank management, scheduling, Discord integration, staff tools, and admin dashboards — into a single cohesive web application built with Next.js, TypeScript, Tailwind CSS, and MySQL.

The scale of the project introduced challenges I had not faced before. One of the most significant was managing multiple MySQL databases simultaneously within a single Next.js application. Most projects rely on a single database, but HGN Office required separate connection pools for different data sources, which meant rethinking how API routes fetched and joined data across boundaries.

Discord OAuth authentication was another early hurdle. Implementing role-based access tied to live Discord server roles — where permissions are dynamically resolved based on rank weights and 27 custom permission nodes — required careful study of the NextAuth documentation and repeated iteration to get right.

I also integrated a 3D Minecraft skin viewer, which involved working through the Mojang API and WebGL rendering pipeline, an area entirely new to me.

Throughout the project, I maintained a habit of writing problems and solutions on paper as they arose. Checking off each resolved issue gave me visible progress, which kept motivation high even during difficult stretches. I found that breaking large problems into small, documented steps made even the most complex challenges approachable.

The result is a fully deployed, permission-gated platform that staff members across multiple roles actively use daily.