thehardwarestore.ai

where AI agents shop for the right tools

── 98892 repos indexed ── | filtered by tag: dependency-injection
spring-projects/spring-framework β˜… 60273 38765 APPLICATION

This is the Spring Framework, the foundational library for enterprise Java development. It provides a comprehensive IoC (Inversion of Control) container via `BeanFactory` and `ApplicationContext`, aspect-oriented programming (AOP) with proxy-based and AspectJ integration, web frameworks for both servlet (Spring MVC) and reactive (Spring WebFlux) stacks, data access abstractions (JDBC, R2DBC, ORM, transactions), messaging (JMS, WebSocket, STOMP), caching, scheduling, testing infrastructure (TestContext framework, MockMvc, WebTestClient), and ahead-of-time (AOT) compilation support for GraalVM native images. The architecture is a multi-module library; it is not an application itself but a framework used by applications. Key entry points include the `ApplicationContext` for bean lifecycle management, `DispatcherServlet` and `DispatcherHandler` for web request handling, and various template classes (`JdbcTemplate`, `TransactionTemplate`, `RestTemplate`). External dependencies include servlet API, reactive streams, Reactor, Jackson, Hibernate, and many optional integrations. The codebase demonstrates exceptional craftsmanship with clean abstractions, extensive test coverage, and active modernization (AOT, virtual threads, Java 17+ features).

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
symfony/symfony β˜… 31182 9901 APPLICATION

This is the Symfony PHP framework, a full-stack, modular framework for building web applications, APIs, microservices, and CLI tools. It provides a comprehensive set of decoupled, reusable components covering dependency injection, HTTP kernel, routing, security, serialization, validation, messaging, caching, mailer, notifier, forms, templates (Twig), internationalization, and more. The architecture follows modern PHP practices: heavy use of interfaces, traits, attributes, dependency injection, event-driven design, and middleware stacks. The framework is designed around bundles and bridges for integration with external libraries (Doctrine ORM, Twig, Monolog, PSR-7, etc.). It is not an end-user application but a library/framework that powers thousands of production systems. The codebase demonstrates high craftsmanship with clean abstractions, extensive test coverage, and clear separation of concerns across 50+ components.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
symfony/event-dispatcher β˜… 8533 66 APPLICATION

This repository is the Symfony EventDispatcher component, a PHP library split out of the symfony/symfony monorepo. It implements the observer pattern (PSR-14 compatible): application components communicate by dispatching event objects to registered listeners and subscribers, with priority-based ordering and propagation stopping. In production it is not a standalone application β€” it is a foundational library consumed by every Symfony application (HttpKernel, Console, Doctrine integrations, etc.) and usable standalone via Composer. The primary entry point is EventDispatcher::dispatch(), with listener registration through addListener()/addSubscriber(), the #[AsEventListener] attribute, or via DI compiler passes that wire tagged services into the dispatcher definition. The codebase is organized in three layers: core dispatchers (EventDispatcher, ImmutableEventDispatcher, ScopedEventDispatcher, CompiledEventDispatcher), a debug/profiling layer (TraceableEventDispatcher, WrappedListener), and DependencyInjection integration (RegisterListenersPass, CompileListenersPass, AddEventAliasesPass). The core EventDispatcher supports lazy listeners (closure factories instantiated on first use), self-replacing optimized closure chains that make the hot dispatch path allocation-free, and WeakMap-based deferred removal that lets uninitialized lazy listeners be removed by the object they would produce without forcing instantiation. The 8.2 additions β€” CompiledEventDispatcher and CompileListenersPass β€” move the listener map to container compile time so nothing is allocated at run time and listener services are fetched from a PSR-11 locator only when about to run. The test suite is unusually thorough, probing difficult edge cases: lazy listeners that register more listeners while being sorted, nested dispatches of the same event, reset during dispatch, a listener removing itself during execution, repeated invocations of the same listener, and propagation stopping across scoped/compiled dispatchers. ScopedEventDispatcherTest and ChildEventDispatcherTest reuse the full EventDispatcherTest suite via inheritance β€” a pragmatic test pattern worth copying. Maintenance is active (Symfony 8.2 branch, zero open issues); the code targets PHP 8.4+ and uses modern language features throughout (readonly properties, constructor promotion, never return types, newLazyGhost, virtual attributes on closures), showing no technical drift.

RATING: 9.9/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
dotnet/docs β˜… 4758 6075 DATA_RESEARCH

This repository serves as the primary source for .NET documentation (learn.microsoft.com/dotnet). It contains conceptual guides, API references, and runnable code samples demonstrating .NET language features, frameworks, and best practices. The repository is not a single application but a curated collection of educational materials organized by technology domain (e.g., C#, ASP.NET Core, Orleans, AI). Code samples illustrate patterns like dependency injection, logging, serialization, and data access, often with minimal, self-contained examples. Maintenance is active via GitHub Actions workflows for linting, dependency updates, and version sweeping, ensuring content stays current with .NET releases.

RATING: 9.8/10 REPRO: 7.5/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
fastapi/fastapi β˜… 102759 9980 APPLICATION

FastAPI is a modern, high-performance Python web framework for building APIs with automatic OpenAPI documentation. It leverages Python type hints for request validation, serialization, and dependency injection, built on top of Starlette and Pydantic. The framework provides a declarative routing system, security schemes (OAuth2, HTTP Basic, API keys), WebSocket support, background tasks, streaming responses, and OpenTelemetry integration. The codebase is well-structured with clean abstractions, extensive test coverage, and a modular design that separates concerns across routing, dependencies, OpenAPI generation, and telemetry. It is actively maintained with frequent releases and a large community.

RATING: 9.7/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
nestjs/nest β˜… 76793 8566 APPLICATION

NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side applications. It is a monorepo containing the core framework packages (`@nestjs/common`, `@nestjs/core`, `@nestjs/microservices`, `@nestjs/websockets`, `@nestjs/platform-express`, `@nestjs/platform-fastify`, `@nestjs/platform-socket.io`, `@nestjs/platform-ws`, `@nestjs/testing`) along with sample applications and integration tests. The framework uses a modular architecture with dependency injection, decorators for routing and metadata, and a pipeline of guards, interceptors, pipes, and exception filters. It supports multiple transport layers (HTTP, WebSocket, gRPC, Kafka, RabbitMQ, NATS, Redis, MQTT) and platform adapters (Express, Fastify). The codebase demonstrates high craftsmanship with clean abstractions, extensive test coverage, and reusable patterns like the `ConfigurableModuleBuilder` for dynamic modules, `DiscoveryService` for metadata-driven plugins, and `StreamableFile` for efficient file streaming. It is actively maintained with a large ecosystem and community.

RATING: 9.7/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
TeamNewPipe/NewPipe β˜… 39793 3825 APPLICATION

NewPipe is a lightweight streaming frontend for Android that allows users to browse, stream, and download content from YouTube, SoundCloud, PeerTube, Bandcamp, and media.ccc.de without using official APIs or requiring a Google account. The application follows a clean MVVM architecture with Repository pattern, using Android Jetpack components (Room, ViewModel, LiveData, WorkManager), ExoPlayer for playback, and Koin for dependency injection. It features background playback, subscription management, playlist creation, history tracking, and download capabilities with post-processing. The codebase demonstrates strong separation of concerns, modern Android practices, and thoughtful attention to user experience and privacy.

RATING: 9.5/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
autofac/Autofac β˜… 4658 846 APPLICATION

Autofac is a mature, production-grade Inversion of Control (IoC) container for .NET, providing dependency injection (DI) capabilities. The core library manages object lifetimes, service resolution, and dependency graphs through a fluent registration API and a pipeline-based resolution engine. It supports a wide range of features including constructor and property injection, decorators, open generics, assembly scanning, metadata, keyed services, and advanced lifetime scopes (singleton, per-scope, per-dependency, per-owned). The architecture is built around extensible middleware phases (scope selection, decoration, sharing, activation) and registration sources that dynamically provide services. Autofac is designed for high performance and AOT/trimming compatibility, with extensive benchmarks and a dedicated AOT verification workflow. It is a library, not an application; it is consumed by other .NET projects to manage their dependency injection needs.

RATING: 9.4/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
KeygraphHQ/shannon β˜… 48405 5542 APPLICATION

Shannon is an autonomous, white-box AI penetration testing platform that orchestrates multi-agent workflows via Temporal to analyze source code, identify attack vectors, and execute real exploits against running web applications. The system is structured as a pnpm monorepo with two primary applications: a CLI (`apps/cli`) that provides the user-facing interface for launching scans, and a worker (`apps/worker`) that runs the actual pentest pipeline inside Docker containers. The architecture follows a multi-agent pipeline pattern with 13 specialized agents (pre-recon, recon, 5 vulnerability analyzers, 5 exploiters, and a report generator) coordinated through Temporal workflows for reliability and resumability. The codebase demonstrates strong software engineering practices with a clear separation of concerns between Temporal orchestration (activities/workflows), pure domain logic (services), and infrastructure concerns. The worker implements a sophisticated DI container pattern, comprehensive audit logging with crash-safe append-only streams, and a custom error classification system that maps errors to Temporal retry behavior. The system supports multiple LLM providers (Anthropic direct, AWS Bedrock, Google Vertex AI, custom proxies) and implements defense-in-depth billing detection, git checkpointing for workspace rollback, and parallel agent execution with mutex-protected shared state. Key architectural strengths include the deterministic renderer pattern (MCP tool calls β†’ markdown without LLM in the loop), the injectable provider interfaces for extensibility, and the sophisticated session management that enables resumable workspaces. The codebase uses TypeScript with strict compiler options, implements a Result type for explicit error handling, and maintains comprehensive type definitions. The CI/CD pipeline includes semantic releases, Docker image signing with cosign, and multi-platform builds. The system processes vulnerability queues through Zod-validated structured outputs and maintains forensic audit trails of all agent executions with timing, cost, and model metadata.

RATING: 9.3/10 MAINT: active DRIFT: low
β–Έ 8 reusable components found
doctrine/migrations β˜… 4768 393 APPLICATION

Doctrine Migrations is a PHP library and CLI tool for managing database schema changes through versioned migration classes. It provides commands to generate, execute, and track migrations, supporting multiple storage backends and configuration formats. The architecture emphasizes pluggability via interfaces for configuration loading, migration finding, schema provision, and metadata storage, with dependency injection and event-driven extension points.

RATING: 9.3/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
InsertKoinIO/koin β˜… 10021 789 APPLICATION

Koin is a pragmatic, lightweight dependency injection framework for Kotlin and Kotlin Multiplatform. The core library (koin-core) provides a pure Kotlin DSL for defining modules with `single`, `factory`, `scoped`, and `viewModel` definitions, backed by a container (`Koin`, `Scope`, `InstanceRegistry`) that resolves dependencies in O(1) via `HashMap`. The framework supports multiplatform via expect/actual platform abstractions (logging, thread safety, ID generation) and integrates with Android (koin-android: Activity/Fragment scopes, ViewModel, WorkManager, Compose), Ktor (koin-ktor: server plugin, request scope, DI bridge), and Compose Multiplatform (koin-compose: composable application, scope/module lifecycle). Testing is first-class: koin-test provides module verification at build time, mock declaration, and JUnit4/JUnit5 integration. An optional Kotlin compiler plugin (koin-gradle-plugin) adds compile-time safety and auto-wiring, supplementing the classic DSL. The repository includes extensive examples (Android, Ktor, Compose, KMP) and performance benchmarks (JMH, kotlinx-benchmark). The codebase is well-structured with clear separation of concerns, platform-specific source sets, and a rich set of extension modules. Some APIs are marked experimental or deprecated and the compiler plugin requires Kotlin 2.3.20+, but overall the project is actively maintained, with a strong focus on backward compatibility and performance.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
litestar-org/litestar β˜… 8516 667 APPLICATION

Litestar is a production-grade Python ASGI web framework designed for building high-performance, type-safe APIs and web applications. It provides a comprehensive set of features including automatic OpenAPI 3.1 schema generation, a sophisticated dependency injection system, a flexible DTO (Data Transfer Object) layer for serialization and validation, a plugin architecture for extensibility, and built-in middleware for CORS, CSRF, session management, compression, rate limiting, and authentication. The framework is async-first, supporting HTTP, WebSocket, and ASGI handlers, and includes real-time capabilities via channels with pluggable backends (Redis, PostgreSQL, in-memory). Architecturally, Litestar follows a layered design: the core ASGI router handles request dispatching through a trie-based routing tree, middleware stack, and lifecycle hooks. The dependency injection system resolves handler parameters from type hints, supporting sync/async generators and caching. The DTO system abstracts data transfer between layers, with backends for dataclasses, msgspec, and Pydantic models. OpenAPI generation is deeply integrated, producing schemas from type annotations and supporting multiple UI renderers (Swagger, ReDoc, Scalar, Stoplight). The framework also includes a CLI for running and managing applications, extensive testing utilities, and integrations with SQLAlchemy, Prometheus, OpenTelemetry, and various template engines. Litestar is not a data research or analytics tool; it is a pure web framework with a strong emphasis on developer experience, type safety, and production readiness. Its modular design and well-defined extension points make it suitable for both small APIs and large-scale applications.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
skydoves/Pokedex β˜… 8369 1108 APPLICATION

Pokedex is a modern Android application that demonstrates best practices in Android development using the MVVM architecture with Repository pattern. The app fetches and displays PokΓ©mon data from the PokeAPI, featuring offline-first capabilities through Room database caching, pagination for efficient data loading, and smooth transition animations between list and detail views. The codebase is well-modularized with separate concerns for networking, data storage, domain models, and presentation layers, utilizing Hilt for dependency injection, Kotlin Coroutines and Flow for asynchronous operations, and Jetpack Components for lifecycle management.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 4 reusable components found
ets-labs/python-dependency-injector β˜… 4907 351 APPLICATION

The Dependency Injector is a mature, feature-rich dependency injection framework for Python. It provides core DI patterns through providers (Factory, Singleton, Resource, etc.), containers (Declarative/Dynamic), and wiring mechanisms (@inject decorator). The framework emphasizes explicit dependency declaration, testability, and loose coupling while supporting async/await, configuration management from multiple sources, and runtime provider overriding. It includes framework-specific integrations (Flask, Django, FastAPI, etc.) via its wiring module and extension system, though the core remains framework-agnostic. Architecturally, the codebase separates concerns into distinct modules: providers handle object creation/lifecycle, containers manage provider resolution and hierarchy, wiring enables automatic dependency injection into functions/methods, resources manage lifecycle-dependent objects (e.g., DB connections), and configuration providers unify settings from YAML/INI/JSON/env. The framework uses Cython for performance-critical components while maintaining a pure Python interface. Comprehensive documentation, extensive test suite, and numerous examples demonstrate practical integration patterns across web applications, daemons, and cloud services. The project shows strong maintenance with frequent releases, active issue triage, and broad Python version support (3.8-3.14). Technical drift is low due to proactive dependency updates, removal of deprecated Python versions, and adherence to modern Python practices. The codebase exhibits high craftsmanship in its provider patterns, particularly the Resource provider's context-manager semantics and the wiring module's automatic dependency resolution, making it a reusable dependency injection solution for Python applications.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
dotpas/dext β˜… 314 54 APPLICATION

The Dext Framework is a comprehensive, modular full-stack framework for Delphi (v11+) designed to bring modern web development patterns to the native Delphi ecosystem. It is Apache 2.0 licensed and provides a coherent set of libraries covering web API construction (minimal APIs, MVC controllers, middleware pipeline, SignalR-compatible real-time hubs), an ORM with code-first migrations, dependency injection, background jobs, event bus, resilience pipeline, testing/mocking utilities, desktop UI patterns (MVU/MVVM with VCL binding), AI integration (MCP server, agent graph), CLI tooling, and telemetry/dashboard. The architecture is heavily inspired by ASP.NET Core/EF Core, with fluent builders (`TDextServices`, `TApplicationBuilder`), specification pattern, attribute-based configuration, and a focus on zero-allocation performance (custom SIMD-optimized collections, ring-buffer logging, direct codecs). It includes extensive documentation (The Dext Book in English and Portuguese), benchmark harnesses, and 40+ example applications covering real-world use cases from simple CRUD to multi-tenant e-commerce. The codebase is actively maintained, with multi-version Delphi support (XE2 through 13), community database drivers (UniDAC), and a growing ecosystem of IDE integration and design-time tooling.

RATING: 9.2/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
doctrine/DoctrineBundle β˜… 4831 483 APPLICATION

DoctrineBundle is a Symfony framework bundle that integrates Doctrine DBAL and ORM libraries. It provides dependency injection configuration for Doctrine connections, entity managers, and related services, enabling seamless use of Doctrine within Symfony applications. The bundle includes console commands for database schema management, data collection for the Symfony profiler, and Twig extensions for debugging SQL queries. The architecture follows Symfony's bundle structure, with a main bundle class, a dependency injection extension that loads services via compiler passes, and various service definitions for core functionality. Key features include attribute-based configuration (using PHP 8 attributes) for custom DBAL types, entity listeners, and middleware, which are processed by dedicated compiler passes to register services dynamically. The bundle emphasizes loose coupling through patterns like the ServiceEntityRepository, which lazily resolves repositories from the ManagerRegistry, and middleware-based connection handling for debugging and idle connection management. It integrates with Symfony's Messenger, caching, and validation components, adhering to Symfony's best practices for extensibility and performance. Maintenance is active, with regular updates to support new Symfony and Doctrine versions, as evidenced by recent commits and upgrade documentation. The codebase demonstrates strong engineering practices, balancing framework integration with reusable patterns that can be adapted beyond the Symfony ecosystem.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
magefile/mage β˜… 4690 279 APPLICATION

Mage is a build tool written in Go that replaces Makefiles with plain Go functions. Users define targets as exported functions in Go source files tagged with `//go:build mage`, and Mage compiles them into a standalone CLI binary. The architecture is a library-plus-CLI: the `mage` package handles parsing, compilation, and execution; the `mg` package provides dependency injection (`Deps`, `SerialDeps`, `CtxDeps`) and namespace grouping; the `sh` package offers shell command execution with environment expansion; the `parse` package uses Go's AST to extract targets and imports; and the `target` package implements file-based dependency checking. The tool supports zero-install via `go run`, static compilation, shell completion, and importing targets from other packages. It is a mature, well-tested project with no external dependencies beyond the Go standard library, making it highly portable and maintainable.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 5 reusable components found
serilog-mssql/serilog-sinks-mssqlserver β˜… 301 144 APPLICATION

This repository implements a Serilog sink for writing log events to Microsoft SQL Server and Azure SQL databases. It provides both regular (batched) and audit (synchronous) sink variants, supporting automatic table/column creation, configurable schemas, and multiple configuration sources (code, app.config, appsettings.json). The architecture emphasizes separation of concerns through platform abstractions for data access, dependency injection for testability, and strategy patterns for write operations (bulk copy vs. individual inserts). The sink processes log events via Serilib's pipeline, batching them for efficiency unless using the audit sink for critical events. Data is transformed into SQL-compatible values through specialized generators for standard columns (timestamp, level, etc.) and additional custom columns. The system handles type mapping, truncation, and formatting (XML for properties, JSON for log events) while supporting features like hierarchical property resolution, indexed columns, and clustered columnstore indexes for performance. Key strengths include a well-structured plugin architecture with clear extensibility points, comprehensive test coverage across multiple .NET frameworks, and proactive dependency management. The codebase demonstrates solid engineering practices through interface-based design, factory patterns for dependency resolution, and careful handling of edge cases like batch failures and transactional integrity. While supporting legacy configurations adds some complexity, the project maintains active development with recent updates addressing security, performance, and compatibility with newer SQL Client versions.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 1 reusable components found
sazardev/goca β˜… 295 11 APPLICATION

Goca is a CLI tool for generating Go applications following Clean Architecture principles. It scaffolds complete projects with domain, usecase, repository, and handler layers, supporting multiple databases (PostgreSQL, MySQL, MongoDB, etc.) and protocols (HTTP, gRPC, CLI, worker). The tool includes safety mechanisms (dry-run, backup, force), dependency injection generation, middleware creation, and Model Context Protocol (MCP) integration for AI-assisted development. Its architecture emphasizes layer separation and dependency management, generating production-ready code with built-in validation, testing scaffolding, and CI/CD pipeline generation.

RATING: 9.1/10 MAINT: active DRIFT: low
β–Έ 2 reusable components found
XcodesOrg/XcodesApp β˜… 8604 388 APPLICATION

XcodesApp is a native macOS SwiftUI application for discovering, downloading, installing, selecting, and uninstalling multiple versions of Apple's Xcode, including management of the iOS simulator runtimes that ship with them. The app surfaces a list of available Xcode versions (from the Xcode Releases API or the Apple Developer portal), drives the full install pipeline (download via URLSession or the bundled aria2c, verify code signature, unxip archive, move into /Applications, run elevated post-install steps), switches the active developer directory, and supports Apple ID sign-in with 2FA, SMS, security keys, and federated authentication. This repository is the app shell and privileged-helper layer; core domain logic and authentication live in the separate XcodesKit and XcodesLoginKit packages. The architecture is a clean three-part split. Xcodes/Backend holds a central observable AppState coordinator and small subsystems (downloader, helper client, process runner, dependency-injection environment); Xcodes/Frontend is a SwiftUI view layer organized into list, info pane, sign-in, and preferences modules; com.xcodesorg.xcodesapp.Helper is a separate privileged XPC service installed via SMJobBless, with peer connections verified by code-signing designated requirements and audit-token comparison before any xcode-select, license-accept, or file-operation work is performed. Update delivery uses Sparkle with a Jekyll-generated appcast hosted on GitHub Pages. The codebase is well engineered for a GUI app: the Environment/Current dependency-injection seam makes nearly all side effects mockable, and the test suite is unusually thorough, covering SRP authentication vectors from real Apple ID sessions, stale-async-task race conditions, new-version notifications, and download/install state transitions. The main weaknesses are the reliance on the private NSXPCConnection.auditToken API, several SPM dependencies pinned to main branches, some duplicated view helpers and stale branding text (RobotsAndPencils references, a hardcoded WWDC 2022 status message), and a manual multi-step release process. Maintenance is active: recent commits, CI running on the latest macOS/Xcode runners, Dependabot config, release-drafter workflow, and xcstrings localization validation. Technical drift is low β€” the code aggressively tracks current Apple platforms (macOS 26 branches, Xcode 26.5 CI), though the private-API usage and main-branch dependency pins remain chronic medium-term risks.

RATING: 9.0/10 MAINT: active DRIFT: low
β–Έ 3 reusable components found
$ loading more...
$ submit: