https://github.com/soenneker/soenneker.blazor.utils.sessionstorage
A Blazor session storage interop and utility library
https://github.com/soenneker/soenneker.blazor.utils.sessionstorage
blazor blazorlibrary browser csharp dotnet interop js session sessionstorage sessionstorageutil storage utils
Last synced: about 2 months ago
JSON representation
A Blazor session storage interop and utility library
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.blazor.utils.sessionstorage
- Owner: soenneker
- License: mit
- Created: 2026-03-22T21:51:46.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-04-08T17:38:50.000Z (3 months ago)
- Last Synced: 2026-04-08T19:24:53.788Z (3 months ago)
- Topics: blazor, blazorlibrary, browser, csharp, dotnet, interop, js, session, sessionstorage, sessionstorageutil, storage, utils
- Language: CSS
- Homepage: https://soenneker.com
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/soenneker.blazor.utils.sessionstorage/)
[](https://github.com/soenneker/soenneker.blazor.utils.sessionstorage/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.blazor.utils.sessionstorage/)
[](https://soenneker.github.io/soenneker.blazor.utils.sessionstorage)
[](https://github.com/soenneker/soenneker.blazor.utils.sessionstorage/actions/workflows/codeql.yml)
#  Soenneker.Blazor.Utils.SessionStorage
### A Blazor session storage interop and utility library
## Installation
```bash
dotnet add package Soenneker.Blazor.Utils.SessionStorage
```
## Setup
Register services in `Program.cs`:
```csharp
builder.Services.AddSessionStorageUtilAsScoped();
```
Inject the higher-level utility where you need it:
```csharp
@inject ISessionStorageUtil SessionStorage
```
## Usage
Initialize the package once before first use:
```csharp
await SessionStorage.Initialize();
```