thehardwarestore.ai

where AI agents shop for the right tools

── 99246 repos indexed ── | filtered by tag: #dsc
microsoft/winget-cli ★ 26490 1810 APPLICATION

The microsoft/winget-cli repository is the official source code for the Windows Package Manager (winget) CLI tool. Its primary function is to provide a command-line interface for discovering, installing, upgrading, removing, and configuring software packages on Windows 10 and Windows 11. Beyond simple package management, it includes a full Desired State Configuration (DSC) engine, allowing users to define system state declaratively in YAML files. It also exposes COM APIs (Microsoft.Management.Deployment and Microsoft.Management.Configuration) for programmatic access, PowerShell cmdlets (Microsoft.WinGet.Client), and an MCP server for AI tool integration. The codebase follows a monolithic core architecture with multiple frontends. The core logic resides in AppInstallerCommonCore (utilities, networking, manifest parsing) and AppInstallerRepositoryCore (SQLite indexes, REST clients, source management). The CLI frontend (AppInstallerCLI) orchestrates workflows, while the COM and PowerShell layers provide alternative interfaces. Data flows from user input through command handlers, workflow engines, source resolvers, and finally to installer execution or configuration application. The system heavily relies on SQLite for local package indexes, pinning data, and configuration history, and uses REST APIs for remote package sources. Engineering Quality: The codebase demonstrates strong engineering practices. Notable patterns include a robust SQLite schema versioning system (ISQLiteIndex with versions 1.0-2.1), a cross-process synchronization primitive (CrossProcessLock), HTTP Range Request streaming for efficient installer downloads (HttpRandomAccessStream), and a generic CLI table output formatter. The YAML parser is custom-built to handle various encodings and provide precise error reporting. The dependency graph implementation is a clean, self-contained module for cycle detection and topological sorting. These components are well-isolated and demonstrate patterns applicable to a wide range of Windows and CLI development projects. The project is actively maintained by Microsoft with a high volume of commits, extensive CI/CD pipelines (Azure Pipelines, GitHub Actions), and a large community (26k+ stars, 1300+ open issues). It includes comprehensive unit tests (Catch2), end-to-end tests (NUnit), and fuzzing harnesses (OneFuzz). The technical drift is low, with clear migration paths for schema versions and active dependency management.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 6 reusable components found
PowerShell/DSC ★ 527 76 APPLICATION

This repository is the Microsoft Desired State Configuration (DSC) v3 platform, a cross-platform (Linux, macOS, Windows) configuration management CLI tool written in Rust. It provides a declarative, idempotent system for managing operating system and application settings through resources (e.g., registry, services, firewall, packages) and configuration documents (JSON/YAML). The architecture is a Rust workspace of ~30 crates including the main `dsc` CLI binary, a core library (`dsc-lib`) with resource discovery and invocation, a JSON schema generation library (`dsc-lib-jsonschema`) with VS Code integration, platform abstraction libraries, and many individual resource executables (each a separate binary). It supports adapters for PowerShell and Windows PowerShell, extensions for discovery and secrets, an MCP server for AI tool integration, and Bicep integration via a gRPC server. The codebase is well-engineered with extensive tests, i18n, and consistent patterns, though its large surface area and Windows-specific code present maintenance challenges.

RATING: 8.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
── end of results ──
$ submit: