FUNZ Studio

System Infrastructure & VPS Settings

Real-time server diagnostics for NestJS Fastify backend, PostgreSQL 16 database, Redis pub/sub, MinIO media CDN, and WebSocket live sync.

NestJS Fastify API
Port 4001

High-throughput backend service providing REST endpoints, JWT authorization, and batch level coordinates.

URL: http://localhost:4001
Docs: http://localhost:4001/docs
PostgreSQL 16 Database
Active

Relational storage with Prisma ORM for 318 learning objectives, 7-level ladders, element coordinates, and user roles.

DB Name: funz_studio
Schema: public
WebSocket Gateway
ws://:4001/ws

Zero-latency live sync dispatching GAME_UPDATED events to connected Flutter mobile devices and web instances.

Pub/Sub: Redis 7.0
Event: GAME_UPDATED
MinIO S3 Media Storage
Bucket: funz-assets

Self-hosted object storage with presigned upload URLs and public CDN access for audio voiceovers and game sprites.

Subfolders: audio_voiceover, sounds
Subfolders: images, backgrounds
Flutter Remote Engine
Hive Cache + OTA

Flutter RemoteGameConfigService connects via WebSocket, invalidates Hive cache on changes, and runs games without git modifications.

Contract: /export-flutter
Cache: Hive Box
Security & RBAC
JWT Enabled

Role-Based Access Control enforcing Super Admin, Developer, and Content Editor privileges across CMS operations.

CORS: Strict Origin
Auth: Bearer JWT Token