Strawhats.Framework.Templates 0.6.0

dotnet new install Strawhats.Framework.Templates@0.6.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

Strawhats.Framework.Templates

dotnet new templates for Strawhats.Framework.

Install

dotnet new install Strawhats.Framework.Templates

Templates

Backends

Short name Description
strawhats-api A clean-architecture API with built-in authentication: register/login/refresh, self-issued JWTs, EF Core identity persistence, and protected endpoints.
strawhats-microservice A clean-architecture service: CQRS, EF Core, a transactional outbox, JWT bearer auth, and service-to-service client-credentials.
strawhats-authserver An OAuth2/OIDC authorization server: discovery, JWKS, token, introspection, revocation, an HTML login, and EF Core stores.

UIs — choose Blazor or Angular

The UI templates come in matching Blazor and Angular flavors; pick the one your team prefers. They are standalone clients with no Strawhats.Framework package dependency.

Talks to… Blazor (.NET) Angular (TypeScript) How it authenticates
a Strawhats API strawhats-blazor strawhats-angular Owns the login form; HTTP + JWT bearer.
an auth server strawhats-blazor-oidc strawhats-angular-oidc Delegates login to the auth server over OpenID Connect.

(strawhats-blazor-oidc is a server-side BFF holding tokens server-side; strawhats-angular-oidc is a browser SPA using authorization_code + PKCE with a public client.)

Usage

# Backends
dotnet new strawhats-api          -n Acme.Accounts
dotnet new strawhats-microservice -n Acme.Orders
dotnet new strawhats-authserver   -n Acme.Identity

# UI for an API (choose one). Defaults match the strawhats-api port.
dotnet new strawhats-blazor       -n Acme.Portal --api-url http://localhost:5080   # +--wasm for WebAssembly
dotnet new strawhats-angular      -n acme-portal --api-url http://localhost:5080

# UI that logs in via the auth server (choose one). Defaults match the authserver's seeded clients.
dotnet new strawhats-blazor-oidc  -n Acme.Portal  --authority https://localhost:5001
dotnet new strawhats-angular-oidc -n acme-portal  --authority https://localhost:5001

Angular templates produce an npm project — use a lowercase/kebab -n name and run npm install.

The backends generate a solution layered per the framework's architecture that builds and tests out of the box and pins the matching Strawhats.Framework.* packages.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.6.0 216 7/17/2026
0.5.1 195 7/10/2026
0.5.0 200 7/10/2026
0.4.0 194 7/9/2026
0.3.3 236 6/19/2026
0.3.2 313 6/17/2026
0.3.1 230 6/17/2026
0.3.0 227 6/16/2026