Kestrun

1.0.0-beta3

Kestrun is a cross-platform web server for ASP.NET Core. It is designed to be fast and lightweight, making it suitable for serving dynamic web applications and APIs.

Minimum PowerShell version

7.4

This is a prerelease version of Kestrun.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Kestrun -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Kestrun -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Copyright © 2025–2026 Kestrun Contributors. All rights reserved.

Package Details

Author(s)

  • Kestrun Contributors

Tags

powershell web server http https listener rest api websites powershell-core windows unix linux macos cross-platform file-monitoring multithreaded schedule middleware session authentication authorisation arm swagger openapi webserver secrets fim

Functions

Add-KrAddCallbacksAutomation Add-KrAntiforgeryMiddleware Add-KrAntiforgeryTokenRoute Add-KrApiDocumentationRoute Add-KrApiKeyAuthentication Add-KrBasicAuthentication Add-KrCacheMiddleware Add-KrCacheResponse Add-KrClaimPolicy Add-KrCommonAccessLogMiddleware Add-KrCompressionMiddleware Add-KrCookiesAuthentication Add-KrCorsPolicy Add-KrDistributedRedisCache Add-KrDistributedSqlServerCache Add-KrEndpoint Add-KrEnrichEnvironment Add-KrEnrichErrorRecord Add-KrEnrichExceptionDetail Add-KrEnrichFromLogContext Add-KrEnrichProcessId Add-KrEnrichProcessName Add-KrEnrichProperty Add-KrFaviconMiddleware Add-KrFileServerMiddleware Add-KrForwardedHeader Add-KrGitHubAuthentication Add-KrHealthEndpoint Add-KrHealthHttpProbe Add-KrHealthProbe Add-KrHealthProcessProbe Add-KrHostFiltering Add-KrHsts Add-KrHtmlTemplateRoute Add-KrHttpsRedirection Add-KrJWTAudience Add-KrJWTBearerAuthentication Add-KrJWTClaim Add-KrJWTHeader Add-KrJWTIssuer Add-KrJWTSubject Add-KrListenUnixSocket Add-KrMapRoute Add-KrNamedPipeListener Add-KrOAuth2Authentication Add-KrOpenApiComponent Add-KrOpenApiContact Add-KrOpenApiExternalDoc Add-KrOpenApiInfo Add-KrOpenApiInline Add-KrOpenApiLicense Add-KrOpenApiRoute Add-KrOpenApiServer Add-KrOpenApiTag Add-KrOpenIdConnectAuthentication Add-KrPowerShellRazorPagesRuntime Add-KrRazorPageService Add-KrRouteGroup Add-KrScheduling Add-KrScriptBlock Add-KrSession Add-KrSignalRHubMiddleware Add-KrSinkConsole Add-KrSinkEventLog Add-KrSinkFile Add-KrSinkHttp Add-KrSinkPowerShell Add-KrSinkSyslogLocal Add-KrSinkSyslogTcp Add-KrSinkSyslogUdp Add-KrSseBroadcastMiddleware Add-KrStaticFilesMiddleware Add-KrTasksService Add-KrUserClaim Add-KrWindowsAuthentication Build-KrClaimPolicy Build-KrJWT Build-KrOpenApiDocument Clear-KrEnvironmentOverride Clear-KrSession Close-KrLogger ConvertFrom-KrJwkJsonToCertificate ConvertFrom-KrYaml ConvertTo-KrBase64Url ConvertTo-KrJwkJson ConvertTo-KrYaml Copy-KrJWTTokenBuilder Enable-KrConfiguration Enable-KrExceptionHandling Enable-KrStatusCodePage Expand-KrObject Export-KrCertificate Export-KrOpenApiDocument Get-KrBuiltTargetFrameworkVersion Get-KrCertificatePurpose Get-KrDefaultLogger Get-KrEnvironment Get-KrFeatureSupport Get-KrJwkThumbprint Get-KrJWTInfo Get-KrJWTToken Get-KrJWTValidationParameter Get-KrLoggerLevelSwitch Get-KrOpenApiDocument Get-KrRequestBody Get-KrRequestCookie Get-KrRequestForm Get-KrRequestHeader Get-KrRequestQuery Get-KrRequestRouteParam Get-KrRoot Get-KrScheduleReport Get-KrScheduleSnapshot Get-KrServer Get-KrSessionByte Get-KrSessionInt32 Get-KrSessionString Get-KrSharedState Get-KrSignalRConnectedClient Get-KrSinkJsonFormatter Get-KrSseConnectedClientCount Get-KrTask Get-KrTaskResult Get-KrTaskState Get-KrVersion Import-KrCertificate Initialize-KrRoot Invoke-KrChallenge Invoke-KrCookieSignIn Invoke-KrCookieSignOut Invoke-KrWebRequest Limit-KrJWTNotBefore Limit-KrJWTValidity New-KrCertificateRequest New-KrClaimPolicy New-KrCookieBuilder New-KrCorsPolicyBuilder New-KrJWTBuilder New-KrLogger New-KrMapRouteOption New-KrOpenApiExample New-KrOpenApiExternalDoc New-KrOpenApiHeader New-KrOpenApiLink New-KrOpenApiServer New-KrOpenApiServerVariable New-KrPrivateKeyJwt New-KrProbeResult New-KrSelfSignedCertificate New-KrServer New-KrTask NoDefault Protect-KrJWT Protect-KrJWTPayload Push-KrLogContextProperty Register-KrLogger Register-KrSchedule Remove-KrServer Remove-KrSession Remove-KrSharedState Remove-KrTask Resolve-KrPath Resume-KrSchedule Send-KrSignalREvent Send-KrSignalRGroupMessage Send-KrSignalRLog Send-KrSseBroadcastEvent Set-KrCorsCredential Set-KrCorsExposedHeader Set-KrCorsHeader Set-KrCorsMethod Set-KrCorsOrigin Set-KrCorsPreflightMaxAge Set-KrDefaultLogger Set-KrEnvironment Set-KrLoggerLevel Set-KrLoggerLevelSwitch Set-KrPythonRuntime Set-KrServerHttpsOptions Set-KrServerLimit Set-KrServerNamedPipeOptions Set-KrServerOptions Set-KrSessionByte Set-KrSessionInt32 Set-KrSessionString Set-KrSharedState Set-KrTaskName Start-KrServer Start-KrSseResponse Start-KrTask Stop-KrServer Stop-KrTask Suspend-KrSchedule Test-KrCacheRevalidation Test-KrCapability Test-KrCertificate Test-KrDebugContext Test-KrJWT Test-KrLogger Test-KrOpenApiDocument Test-KrRoute Update-KrJWT Update-KrSynchronizedCounter Write-KrBinaryResponse Write-KrBsonResponse Write-KrCborResponse Write-KrCsvResponse Write-KrErrorResponse Write-KrFileResponse Write-KrFormUrlEncodedResponse Write-KrHtmlResponse Write-KrJsonResponse Write-KrLog Write-KrRedirectResponse Write-KrResponse Write-KrSseEvent Write-KrStatusResponse Write-KrStreamResponse Write-KrTextResponse Write-KrXmlResponse Write-KrYamlResponse

PSEditions

Core

Dependencies

This module has no dependencies.

FileList

  • Kestrun.nuspec
  • Public-Route.ps1
  • lib\net8.0\Cronos.dll
  • lib\net9.0\Microsoft.Identity.Client.Extensions.Msal.dll
  • lib\net9.0\Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.dll
  • THIRD-PARTY-NOTICES.md
  • lib\net8.0\Microsoft.IdentityModel.Tokens.dll
  • lib\net9.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
  • lib\net9.0\Microsoft.Extensions.DependencyModel.dll
  • README.md
  • lib\net8.0\MongoDB.Bson.dll
  • lib\net9.0\System.ClientModel.dll
  • lib\net9.0\Microsoft.AspNetCore.Razor.Language.dll
  • LICENSE.txt
  • lib\net8.0\URIUtility.dll
  • lib\net9.0\Serilog.Formatting.Compact.dll
  • lib\net9.0\Kestrun.pdb
  • Private.ps1
  • lib\net8.0\System.Composition.Hosting.dll
  • lib\net9.0\Serilog.Exceptions.dll
  • lib\net9.0\ClearScript.V8.dll
  • Kestrun.psd1
  • lib\net8.0\ClearScript.Core.dll
  • lib\net9.0\Numbers.dll
  • lib\net9.0\Serilog.Sinks.EventLog.dll
  • Kestrun.psm1
  • lib\net8.0\YamlDotNet.dll
  • lib\net9.0\Serilog.Sinks.File.dll
  • lib\net9.0\Microsoft.Data.SqlClient.dll
  • lib\net8.0\Kestrun.xml
  • lib\net9.0\Serilog.Sinks.PeriodicBatching.dll
  • lib\net9.0\Microsoft.IdentityModel.Logging.dll
  • Public-Definition.ps1
  • lib\net8.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll
  • lib\net9.0\Serilog.dll
  • lib\net9.0\Python.Runtime.dll
  • en-US\Kestrun-help.xml
  • lib\net8.0\Microsoft.IdentityModel.Abstractions.dll
  • lib\net9.0\Serilog.AspNetCore.dll
  • lib\net9.0\Serilog.Extensions.Hosting.dll
  • Formats\Kestrun.Tasks.format.ps1xml
  • lib\net8.0\Microsoft.Extensions.Caching.StackExchangeRedis.dll
  • lib\net9.0\Microsoft.AspNetCore.Authentication.OpenIdConnect.dll
  • lib\net9.0\Serilog.Sinks.Debug.dll
  • lib\net8.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll
  • lib\net8.0\Microsoft.Extensions.Caching.SqlServer.dll
  • lib\net9.0\System.Composition.Runtime.dll
  • lib\net9.0\Pipelines.Sockets.Unofficial.dll
  • lib\net8.0\Kestrun.Annotations.pdb
  • lib\net8.0\Microsoft.AspNetCore.Authentication.Certificate.dll
  • lib\net9.0\Kestrun.staticwebassets.endpoints.json
  • lib\net9.0\Azure.Identity.dll
  • lib\net8.0\System.Composition.TypedParts.dll
  • lib\net8.0\ClearScript.V8.ICUData.dll
  • lib\net9.0\Serilog.Extensions.Logging.dll
  • lib\net9.0\Kestrun.dll
  • lib\net8.0\CBOR.dll
  • lib\net8.0\CsvHelper.dll
  • lib\net9.0\Serilog.Settings.Configuration.dll
  • lib\net9.0\Serilog.Sinks.Console.dll
  • lib\net8.0\Microsoft.AspNetCore.Authentication.Negotiate.dll
  • lib\net8.0\System.IdentityModel.Tokens.Jwt.dll
  • lib\net9.0\Microsoft.CodeAnalysis.Razor.dll
  • lib\net9.0\System.Composition.Convention.dll
  • lib\net8.0\Kestrun.deps.json
  • lib\net8.0\BouncyCastle.Cryptography.dll
  • lib\net9.0\Azure.Core.dll
  • lib\net9.0\Serilog.Sinks.Syslog.dll
  • lib\net8.0\Microsoft.Identity.Client.Extensions.Msal.dll
  • lib\net8.0\Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.dll
  • lib\net9.0\System.Composition.AttributedModel.dll
  • lib\net9.0\System.Private.Windows.Core.dll
  • lib\net8.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
  • lib\net8.0\Microsoft.Extensions.DependencyModel.dll
  • lib\net9.0\Microsoft.Identity.Client.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.VisualBasic.dll
  • lib\net8.0\System.ClientModel.dll
  • lib\net8.0\Microsoft.AspNetCore.Razor.Language.dll
  • lib\net9.0\Microsoft.OpenApi.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.Workspaces.dll
  • lib\net8.0\Serilog.Formatting.Compact.dll
  • lib\net8.0\Kestrun.pdb
  • lib\net9.0\Serilog.Enrichers.Environment.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.dll
  • lib\net8.0\Serilog.Exceptions.dll
  • lib\net8.0\ClearScript.V8.dll
  • lib\net9.0\System.Memory.Data.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.CSharp.Workspaces.dll
  • lib\net8.0\Numbers.dll
  • lib\net8.0\Serilog.Sinks.EventLog.dll
  • lib\net9.0\Serilog.Sinks.Http.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.CSharp.Scripting.dll
  • lib\net8.0\Serilog.Sinks.File.dll
  • lib\net8.0\Microsoft.Data.SqlClient.dll
  • lib\net9.0\StackExchange.Redis.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.CSharp.dll
  • lib\net8.0\Serilog.Sinks.PeriodicBatching.dll
  • lib\net8.0\Microsoft.IdentityModel.Logging.dll
  • lib\net9.0\Microsoft.IdentityModel.JsonWebTokens.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
  • lib\net8.0\Serilog.dll
  • lib\net8.0\Python.Runtime.dll
  • lib\net9.0\Microsoft.IdentityModel.Protocols.dll
  • lib\Microsoft.CodeAnalysis\4.14.0\Microsoft.CodeAnalysis.Scripting.dll
  • lib\net8.0\Serilog.AspNetCore.dll
  • lib\net8.0\Serilog.Extensions.Hosting.dll
  • lib\net9.0\Cronos.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.VisualBasic.dll
  • lib\net8.0\Microsoft.AspNetCore.Authentication.OpenIdConnect.dll
  • lib\net8.0\Serilog.Sinks.Debug.dll
  • lib\net9.0\Microsoft.IdentityModel.Tokens.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.Workspaces.dll
  • lib\net8.0\System.Composition.Runtime.dll
  • lib\net8.0\Pipelines.Sockets.Unofficial.dll
  • lib\net9.0\MongoDB.Bson.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.dll
  • lib\net8.0\Kestrun.staticwebassets.endpoints.json
  • lib\net8.0\Azure.Identity.dll
  • lib\net9.0\URIUtility.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.CSharp.Workspaces.dll
  • lib\net8.0\Serilog.Extensions.Logging.dll
  • lib\net8.0\Kestrun.dll
  • lib\net9.0\System.Composition.Hosting.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.CSharp.Scripting.dll
  • lib\net8.0\Serilog.Settings.Configuration.dll
  • lib\net8.0\Serilog.Sinks.Console.dll
  • lib\net9.0\ClearScript.Core.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.CSharp.dll
  • lib\net8.0\Microsoft.CodeAnalysis.Razor.dll
  • lib\net8.0\System.Composition.Convention.dll
  • lib\net9.0\YamlDotNet.dll
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
  • lib\net8.0\Azure.Core.dll
  • lib\net8.0\Serilog.Sinks.Syslog.dll
  • lib\net9.0\Kestrun.xml
  • lib\Microsoft.CodeAnalysis\4.11.0\Microsoft.CodeAnalysis.Scripting.dll
  • lib\net8.0\System.Composition.AttributedModel.dll
  • lib\assemblies\Kestrun.Annotations.dll
  • lib\net9.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.VisualBasic.dll
  • lib\net8.0\Microsoft.Identity.Client.dll
  • lib\net9.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.dll
  • lib\net9.0\Microsoft.IdentityModel.Abstractions.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.Workspaces.dll
  • lib\net8.0\Microsoft.OpenApi.dll
  • lib\net9.0\Microsoft.Extensions.Primitives.dll
  • lib\net9.0\Microsoft.Extensions.Caching.StackExchangeRedis.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.dll
  • lib\net8.0\Serilog.Enrichers.Environment.dll
  • lib\net9.0\Kestrun.Annotations.pdb
  • lib\net9.0\Microsoft.Extensions.Caching.SqlServer.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.CSharp.Workspaces.dll
  • lib\net8.0\System.Memory.Data.dll
  • lib\net9.0\System.Composition.TypedParts.dll
  • lib\net9.0\Microsoft.AspNetCore.Authentication.Certificate.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.CSharp.Scripting.dll
  • lib\net8.0\Serilog.Sinks.Http.dll
  • lib\net9.0\CBOR.dll
  • lib\net9.0\ClearScript.V8.ICUData.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.CSharp.dll
  • lib\net8.0\StackExchange.Redis.dll
  • lib\net9.0\Microsoft.AspNetCore.Authentication.Negotiate.dll
  • lib\net9.0\CsvHelper.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
  • lib\net8.0\Microsoft.IdentityModel.JsonWebTokens.dll
  • lib\net9.0\Kestrun.deps.json
  • lib\net9.0\System.IdentityModel.Tokens.Jwt.dll
  • lib\Microsoft.CodeAnalysis\4.9.2\Microsoft.CodeAnalysis.Scripting.dll
  • lib\net8.0\Microsoft.IdentityModel.Protocols.dll
  • lib\net9.0\Microsoft.Extensions.Configuration.Abstractions.dll
  • lib\net9.0\BouncyCastle.Cryptography.dll

Version History

Version Downloads Last updated
1.0.0-beta3 (current version) 2 1/12/2026
1.0.0-beta2 3 12/15/2025
1.0.0-beta1 3 10/18/2025
1.0.0-alpha4 3 10/6/2025
1.0.0-alpha3 4 9/16/2025
1.0.0-alpha2 5 9/5/2025
Show more