# Blazored/LocalStorage

A library to provide access to local storage in Blazor applications

Repository: https://github.com/Blazored/LocalStorage
Canonical: https://ross.abutalabs.com/products/localstorage
Homepage: https://blazored.github.io/LocalStorage/
Language: C#
License: MIT
License Family: permissive
Topics: blazor, blazored, localstorage, csharp, blazor-interop, nuget, blazor-webassembly, blazor-server, blazor-applications, hacktoberfest
Archived: true
Last push: 2024-10-09T01:35:08+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2773, "days_push": 694, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1325, forks 135 (observed 2026-08-28T04:04:22.653520+00:00)

## What it is
A C# library giving Blazor applications access to the browser's localStorage APIs, with automatic JSON serialization and deserialization of values. It supports both Blazor WebAssembly and Blazor Server and integrates via dependency injection.

## Use cases
- persist app state in the browser across page reloads in Blazor
- save user preferences to local storage in a Blazor app
- store and retrieve typed objects in localStorage from C#
- access browser localStorage from Blazor WebAssembly
- cache data client-side in a Blazor Server application

## When to choose
- you're building a Blazor WebAssembly or Blazor Server app and need typed localStorage access
- you want automatic JSON serialization/deserialization when saving objects
- you prefer DI-friendly, well-maintained wrappers over raw JS interop

## When to avoid
- you're not using Blazor (e.g. plain ASP.NET or JavaScript apps)
- you need large amounts of storage or IndexedDB capabilities
- you need server-side persistent storage rather than browser-local data

## Facets
- artifact type: library
- maturity: active
- function: serialization, json
- domain: web-development, frontend, developer-tools
- platform: browser, dotnet, cross-platform
- tags: blazor, localstorage, csharp, blazor-webassembly, blazor-server, browser-storage, nuget, web-server

## Member repositories
- Blazored/LocalStorage (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.653520+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:46:25.077307+00:00, confidence not recorded.
  - readme: https://github.com/Blazored/LocalStorage (fetched 2026-08-28T04:04:22.653520+00:00, sha 81bb34d28824)
  - homepage: https://blazored.github.io/LocalStorage/ (fetched 2026-08-29T12:05:21.135232+00:00, sha dc0a1af02fc9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
