{"id":29738672,"url":"https://github.com/alexanderlarsen/saneject","last_synced_at":"2026-04-16T08:01:49.972Z","repository":{"id":303302890,"uuid":"1014460785","full_name":"alexanderlarsen/Saneject","owner":"alexanderlarsen","description":"Dependency injection the Unity way","archived":false,"fork":false,"pushed_at":"2026-04-12T09:41:48.000Z","size":13410,"stargazers_count":63,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T10:23:16.656Z","etag":null,"topics":["dependency-injection","di","saneject","serialized-interfaces","unity","unity-editor","unity-inspector","unity-tools","unity3d"],"latest_commit_sha":null,"homepage":"https://alexanderlarsen.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexanderlarsen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-05T19:15:11.000Z","updated_at":"2026-04-06T08:44:53.000Z","dependencies_parsed_at":"2025-12-09T09:05:55.347Z","dependency_job_id":null,"html_url":"https://github.com/alexanderlarsen/Saneject","commit_stats":null,"previous_names":["alexanderlarsen/saneject"],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/alexanderlarsen/Saneject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderlarsen%2FSaneject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderlarsen%2FSaneject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderlarsen%2FSaneject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderlarsen%2FSaneject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderlarsen","download_url":"https://codeload.github.com/alexanderlarsen/Saneject/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderlarsen%2FSaneject/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31876852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependency-injection","di","saneject","serialized-interfaces","unity","unity-editor","unity-inspector","unity-tools","unity3d"],"created_at":"2025-07-25T19:01:34.314Z","updated_at":"2026-04-16T08:01:49.963Z","avatar_url":"https://github.com/alexanderlarsen.png","language":"C#","readme":"\u003cp\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"Docs/images/logo-light.webp\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"Docs/images/logo-dark.webp\"\u003e\n      \u003cimg src=\"Docs/images/logo-light.webp\" alt=\"Saneject logo\" width=\"260\"\u003e\n    \u003c/picture\u003e\n\u003c/p\u003e\n\n![Unity](https://img.shields.io/badge/Unity-2022.3.12+-ff8383)\n[![Tests](https://img.shields.io/github/actions/workflow/status/alexanderlarsen/Saneject/tests.yml?label=Tests)](https://github.com/alexanderlarsen/Saneject/actions/workflows/tests.yml)\n[![Release](https://img.shields.io/github/v/release/alexanderlarsen/Saneject?include_prereleases\u0026color=blue\u0026label=Release)](https://github.com/alexanderlarsen/Saneject/releases)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow)](LICENSE)\n\nDependency injection the Unity way.\n\nInject dependencies in the Unity Editor, not Play Mode, by writing them directly into serialized fields at edit-time using familiar DI APIs, so everything stays visible in the Inspector, including interfaces.\n\nNo runtime container. No startup cost. No hidden wiring. No weird lifecycles. Just simple, deterministic edit-time DI that works with Unity, not around it.\n\n## Mental model\n\n1. Mark your fields, properties and methods with `[Inject]`.\n2. Create a `Scope` that binds dependencies for `[Inject]` members, and add it to a scene or prefab.\n3. Click **Inject** in the Unity Editor.\n4. Dependencies are injected into serialized fields.\n5. Start the game and enjoy fast startup with Unity’s normal lifecycle.\n\n## Slide overview\n\nA quick visual tour of how Saneject works, how editor-time DI differs from runtime DI, its core features, benefits, APIs, and examples.\n\n[Open the full slide overview](https://saneject.dev/slides)\n\n[![Preview of the Saneject slide overview](Docs/images/slides/slides-preview.webp)](https://saneject.dev/slides)\n\n## Main features\n\n| Feature                              | Description                                                                                                                       |\n|--------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| Editor-time injection                | Resolve dependencies in the editor and store them as normal serialized references.                                                |\n| Inspector-visible wiring             | Keep dependencies, including interfaces, visible and editable in the Inspector instead of hiding them behind a runtime container. |\n| Fluent binding API                   | Declare bindings in `Scope` components with familiar DI-style syntax.                                                             |\n| Serialized interfaces                | Use `[SerializeInterface]` for interface fields, arrays, and lists without wrapper classes.                                       |\n| Scene, prefab, and context awareness | Control what gets injected where and how cross-context resolution behaves.                                                        |\n| Runtime proxy bridging               | Handle references Unity cannot serialize directly across scene and prefab boundaries.                                             |\n| Low runtime overhead                 | No runtime container, no reflection-based startup pass, and no extra lifecycle layer.                                             |\n| Built-in tooling                     | Use injection menus, batch injection, logging, validation, settings, analyzers, and more directly in the Unity Editor.            |\n\nFor more features, see [Feature overview](https://saneject.dev/docs/getting-started/feature-overview).\n\n## Try Saneject now\n\nAdd this URL to Unity Package Manager (Unity 2022.3.12 or newer):\n\n```text\nhttps://github.com/alexanderlarsen/Saneject.git?path=UnityProject/Saneject/Assets/Plugins/Saneject\n```\n\nOr download the [latest release](https://github.com/alexanderlarsen/Saneject/releases) and import the `Saneject` folder into your Unity project.\n\nThen jump to [Quick start](https://saneject.dev/docs/getting-started/quick-start).\n\n## Feedback appreciated\n\nIf you try Saneject and something works well, feels unclear, or seems broken, I would love to hear about it.\n\n- If you find a bug, please open an [Issue](https://github.com/alexanderlarsen/Saneject/issues).\n- If you want to share feedback, ideas, or first impressions, drop a note in [Discussions](https://github.com/alexanderlarsen/Saneject/discussions).\n\n## Links\n\n- [Docs](https://saneject.dev/docs/getting-started/introduction)\n- [API](https://saneject.dev/api/Plugins.Saneject.Editor.Inspectors.SanejectInspector)\n- [Releases](https://github.com/alexanderlarsen/Saneject/releases)\n- [MIT license](https://github.com/alexanderlarsen/Saneject/blob/main/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderlarsen%2Fsaneject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderlarsen%2Fsaneject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderlarsen%2Fsaneject/lists"}