qmetrics.net

Fantasy

High-performance C# game server framework with zero reflection

Fantasy is a C# framework for large online game backends and related networked apps. It combines ECS design, multi-protocol networking, service discovery, and distributed routing.

Overview

Fantasy is built as a zero-reflection, high-performance C# stack for game servers, with documentation noting it can extend to non-game business backends. It targets MMORPGs, real-time battles, card games, open worlds, and H5 titles that need reliable networking and horizontal scale.

Networking spans TCP, KCP, WebSocket, and HTTP so clients can range from Unity builds to Unity WebGL and server-to-server links. An ECS-oriented structure is used for gameplay logic, alongside Roaming routing so clients need not know destination server addresses and gates forward by message type.

A built-in Control Center and service discovery layer registers scenes, heartbeats, and topology instead of fixed server lists. Namespaces and world groups isolate environments, while routing can use random selection or Rendezvous Hash when nodes are added or removed.

Server runtimes are supported on Windows Server, Linux (including Docker and Kubernetes), and macOS for development. Unity clients from a stated minimum version are supported on desktop and mobile, with WebSocket for WebGL. Optional MongoDB backs persistence, and a Fantasy CLI scaffolds projects and components.

Key features

  • Zero-reflection Native AOT oriented design
  • TCP, KCP, WebSocket, and HTTP protocols
  • ECS-based game logic structure
  • Control Center with service discovery
  • Roaming automatic server routing
  • Distributed world and scene management
  • Unity client integration
  • Official Fantasy CLI scaffolding

Use cases

  • MMORPG distributed game backends
  • Low-latency real-time PvP servers
  • H5 and WebSocket mini-games
  • Open-world scene and entity systems
  • High-concurrency sharded game worlds

Tags

Similar software

Bevy Engine

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

★ 50k⟳ yesterdayApache-2.0
Open Source Alternative to:Unity

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

★ 40.8k⟳ 3 months agoMIT

raylib

Minimal C library for games and graphical programs

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

★ 35.8k⟳ todayZlib
Frameworks & PlatformsDesktop/CLI app

Matter.js

JavaScript two-dimensional rigid body physics engine

Matter.js simulates 2D rigid-body physics for browser games and interactive pages. It runs in modern browsers and Node.js with canvas rendering and touch-friendly controls.

★ 18.7k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

wgpu

Cross-platform safe Rust graphics API

wgpu implements the WebGPU-style API in Rust for native and WebAssembly targets. It backs Firefox, Servo, and Deno WebGPU integration and maps to Vulkan, Metal, D3D12, and GLES.

★ 18.7k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app

GLFW

Cross-platform windowing library for OpenGL and Vulkan

GLFW is a C library that creates windows, graphics contexts, and surfaces while handling input and events. It targets OpenGL, OpenGL ES, and Vulkan on desktop and Unix-like systems.

★ 15.5k⟳ 3 months agoZlib
Frameworks & PlatformsDesktop/CLI app