{"repo":"hadashiA/VitalRouter","free":true,"listed":false,"github":"https://github.com/hadashiA/VitalRouter","clone":"git clone https://github.com/hadashiA/VitalRouter.git","description":"A fast, zero-allocation, in-memory messaging library. Declarative async pipeline with source generator for Unity and .NET.","language":"C#","stars":361,"topics":["dependency-injection","eventbus","pubsub","unity","unity3d","mruby"],"license":"MIT","category":"game-templates","readme_excerpt":"VitalRouter VitalRouter is a high-performance, zero-allocation in-memory messaging library for C#. It is specifically designed for environments where performance and decoupling are critical, such as Unity games or complex .NET applications. By using simple attributes, you can implement asynchronous handlers, middleware (interceptors), and advanced sequence control. VitalRouter leverages Roslyn Source Generators to produce highly efficient code, promoting a clean, unidirectional control flow with minimal overhead. Documentation Visit vitalrouter.hadashikick.jp for the full documentation. Key Features - Zero Allocation : Optimized for high-frequency messaging without GC pressure. - Thread-Safe : Designed for safe use across multiple threads. - Unidirectional Flow : Promotes a predictable data flow through your application. - Declarative Routing : Use attributes like [Routes] and [Route] to define handlers. - Sequential Control : Declaratively queue, drop, or cancel overlapping async handlers — perfect for game cutscenes, dialogue, and tutorials. - Async Interceptor Pipeline : Build sophisticated message processing chains. - Versatile Compatibility : Works seamlessly in both Unity and standard .NET projects. - DI Integration : Native support for VContainer (Unity) and Microsoft.Extensions.DependencyInjection. --- Core Concepts VitalRouter follows a simple messaging flow. A Publisher sends a Command to a Router , which then dispatches it through optional Interceptors to one or mo","default_branch":null,"files":null,"tree":[],"storefront":"/r/hadashiA","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hadashiA/VitalRouter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}