Projects.

Libraries, tools, and experiments I've built and open-sourced. From Rust crates to .NET NuGet packages — built to solve real problems from production experience.

Open Source Libraries

🦀 axum-guard v0.4.2 Rust
Composable authentication and authorization middleware for Axum. JWT validation (HS256/RS256), RBAC role guards, and custom extractor guards — with zero macros, zero global state.
⭐ 312 ⬇ 8.4k/mo 🔒 MIT Rust 1.75+
cargo add axum-guard
JWT validation — HS256 & RS256, configurable expiry, custom claims struct
Role-based guards: Role<"admin"> and AnyRole extractors
Implement Guard trait for any custom auth logic
Optional Tower AuthLayer for global application
100% safe Rust — #![deny(unsafe_code)]
AxumJWTRBACTowerMiddleware
⚙️ mediator-kit v1.2.0 .NET
Lightweight CQRS mediator for .NET 8+. Removes the MediatR dependency while preserving a familiar handler API. No reflection at dispatch — source-generator friendly.
⭐ 187 ⬇ 5.1k/mo 🔒 MIT .NET 8+
dotnet add package AhsanMalik.MediatorKit
Zero external dependencies — only Microsoft.Extensions.* for DI
Separate ICommand / IQuery interfaces enforcing CQS at the type level
Composable IPipelineBehavior for validation, logging, caching
Source-generator friendly — no reflection at handler dispatch
Drop-in familiar API for MediatR users
CQRS.NET 8DIPipelineNuGet

Other Work

rust-otel-starter
Rust

Opinionated OpenTelemetry setup for Axum services. Plug-and-play tracing, metrics, and logging exporter configuration in one crate.

RustOpenTelemetryAxum GitHub →
dotnet-agent-playground
.NET

Sandbox for experimenting with Microsoft Agentic Framework patterns — multi-agent chains, tool registration, SurrealDB memory store.

C#AI AgentsSurrealDB GitHub →
axum-dioxus-fullstack
Rust

Template repo: Axum backend + Dioxus WASM frontend with shared domain types in a Cargo workspace. Full CI/CD with GitHub Actions.

RustDioxusWASM GitHub →
k8s-multi-env-scaffold
DevOps

Terraform + Helm + GitHub Actions scaffold for spinning up isolated Kubernetes environments per market/tenant. Used in the Domino's project.

TerraformHelmK8s GitHub →
surrealdb-dotnet-helpers
.NET

Extension methods and query builder helpers for the SurrealDB .NET client — makes writing typed SurrealQL queries from C# much more ergonomic.

C#SurrealDB GitHub →
polly-patterns
.NET

Collection of production-tested Polly v8 resilience configurations — retry, circuit breaker, hedging, and timeout patterns for flaky third-party APIs.

C#PollyResilience GitHub →

Notable Contributions

tokio-rs/axum

Contributed improved error response formatting for nested extractors and documentation improvements for the FromRequestParts trait.

PR #1842 · merged
launchbadge/sqlx

Bug fix for PostGIS geometry type deserialization with custom PgTypeInfo implementations — encountered while building the Matas fulfilment routing layer.

PR #2671 · merged
App-vNext/Polly

Added missing XML documentation for ResiliencePipeline v8 builder methods; improved IntelliSense experience in IDEs.

PR #2103 · merged
🐙

More on GitHub

All my open source work, experiments, and contributions live on GitHub. Stars, issues, and PRs always welcome.

Visit github.com/iamAhsanMalik