# Cysharp/MagicOnion

Unified Realtime/API framework for .NET platform and Unity.

Repository: https://github.com/Cysharp/MagicOnion
Canonical: https://ross.abutalabs.com/products/magiconion
Homepage: https://cysharp.github.io/MagicOnion/
Language: C#
License: MIT
License Family: permissive
Topics: unity, swagger, grpc, streaming, rpc, c-sharp
Last push: 2026-08-26T11:47:55+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 90, longevity 100
- inputs: {"age_days": 3553, "days_push": 7, "days_rel": 64, "gap_med": 22, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4441, forks 462 (observed 2026-08-28T04:08:49.413971+00:00)

## What it is
MagicOnion is a unified RPC and real-time communication framework for .NET and Unity, built on gRPC and MessagePack. It uses C# interfaces as protocol schemas instead of .proto files, supporting both API services and bi-directional StreamingHub real-time communication.

## Use cases
- build rpc services between .net microservices
- realtime multiplayer game server communication with unity
- replace wcf with a modern rpc framework
- bidirectional streaming like signalr or socket.io in c#
- share api contracts between c# client and server without proto files
- broadcast server data to multiple game clients

## When to choose
- your entire stack is C#/.NET or Unity and you want schema-free code sharing
- you need both REST-like APIs and real-time streaming in one framework
- you're building Unity multiplayer games needing efficient binary transport

## When to avoid
- you need cross-language clients (JavaScript, Python, etc.) since schemas are C# interfaces
- you already have .proto-based gRPC infrastructure
- you need plain HTTP/JSON APIs for third-party consumers

## Facets
- artifact type: framework
- maturity: active
- function: rpc, websocket, serialization, api-framework, http-server
- domain: backend, apis, microservices
- platform: dotnet, game-engine, cross-platform, windows
- tags: grpc, messagepack, streaminghub, realtime-communication, unity, c-sharp, code-first-schema, game-development, real-time, macos, android, ios

## Member repositories
- Cysharp/MagicOnion (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:49.413971+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:49.906098+00:00, confidence not recorded.
  - readme: https://github.com/Cysharp/MagicOnion (fetched 2026-08-28T04:08:49.413971+00:00, sha c97777747a07)
  - homepage: https://cysharp.github.io/MagicOnion/ (fetched 2026-08-29T09:07:55.734988+00:00, sha c2032c792ff2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
