https://github.com/soenneker/soenneker.blazor.utils.localstorage
A Blazor local storage interop and utility library
https://github.com/soenneker/soenneker.blazor.utils.localstorage
blazor blazorlibrary browser csharp dotnet interop js local localstorage localstorageutil storage utils
Last synced: 24 days ago
JSON representation
A Blazor local storage interop and utility library
- Host: GitHub
- URL: https://github.com/soenneker/soenneker.blazor.utils.localstorage
- Owner: soenneker
- License: mit
- Created: 2026-03-22T21:29:36.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-06-05T16:24:12.000Z (26 days ago)
- Last Synced: 2026-06-05T18:38:58.779Z (25 days ago)
- Topics: blazor, blazorlibrary, browser, csharp, dotnet, interop, js, local, localstorage, localstorageutil, storage, utils
- Language: CSS
- Homepage: https://soenneker.com
- Size: 340 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
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.localstorage/)
[](https://github.com/soenneker/soenneker.blazor.utils.localstorage/actions/workflows/publish-package.yml)
[](https://www.nuget.org/packages/soenneker.blazor.utils.localstorage/)
[](https://soenneker.github.io/soenneker.blazor.utils.localstorage)
[](https://github.com/soenneker/soenneker.blazor.utils.localstorage/actions/workflows/codeql.yml)
#  Soenneker.Blazor.Utils.LocalStorage
### A Blazor local storage interop and utility library
## Installation
```bash
dotnet add package Soenneker.Blazor.Utils.LocalStorage
```
## Setup
Register services in `Program.cs`:
```csharp
builder.Services.AddLocalStorageUtilAsScoped();
```
Inject the higher-level utility where you need it:
```csharp
@inject ILocalStorageUtil LocalStorage
```
## Usage
Initialize the package once before first use:
```csharp
await LocalStorage.Initialize();
```