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
- Host: GitHub
- URL: https://github.com/extrys/injekko
- Owner: Extrys
- Created: 2024-10-16T01:47:59.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-27T17:35:31.000Z (2 months ago)
- Last Synced: 2025-03-27T18:33:04.964Z (2 months ago)
- Language: C#
- Homepage:
- Size: 508 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.