An open API service indexing awesome lists of open source software.

https://github.com/extrys/injekko

Dependency injection framework for unity with no reflections by using Roslyn
https://github.com/extrys/injekko

Last synced: 2 months ago
JSON representation

Dependency injection framework for unity with no reflections by using Roslyn

Awesome Lists containing this project

README

        

# Injekko



**Injekko** is a dependency injection framework for Unity that avoids reflection entirely. Instead, it leverages **Roslyn** to analyze your code as you write it and automatically generate strongly-typed resolvers, compiled into a dynamic DLL. This results in **fast, safe, and highly efficient** injection, ideal for performance-critical environments like game development.

> ๐Ÿšง **Work in progress**: Injekko is still under active development. Core features are being implemented incrementally as part of a long-term vision.

## Features

- ๐Ÿ”ง Zero reflection โ€“ fully based on code generation.
- โšก Auto-generated resolvers at compile time using Roslyn.
- ๐ŸŽฎ Designed to integrate seamlessly with Unity workflows.
- ๐Ÿงฉ Supports a Service Locator pattern with multiple contexts (global, scene, object).
- ๐Ÿงช Includes a playground project to test generated bindings.
- ๐Ÿ”œ **Planned**: Future versions aim to be **engine-agnostic**, making Injekko usable beyond Unity.