Universal Key-Value Store for .NET 8, MAUI, and Blazor.
A truly universal persistence library for the .NET ecosystem. Whether you are building a cross-platform mobile app with MAUI, a web app with Blazor WASM, or a microservice, PolyKV works everywhere.
One API, Everywhere. This library is part of the PolyKV ecosystem. Use the same consistent API across 12+ languages.
-
👾 MAUI Ready First-class support for Android, iOS, macOS, and Windows targets via MAUI.
-
🌐 Blazor Compatible Running in the browser? PolyKV transparently bridges to
localStoragevia JS Interop. -
⚡️ JSON Core Uses
System.Text.Jsonfor high-performance, allocation-free serialization.
dotnet add package PolyKVusing PolyKV;
public class Program
{
public static void Main(string[] args)
{
// Init
var kv = new PolyKV("MySuperApp");
// 1. Save
kv.SetString("language", "en-US");
kv.SetNumber("retries", 3);
// 2. Read
string lang = kv.GetString("language");
Console.WriteLine($"Lang: {lang}");
// 3. Update
kv.SetNumber("retries", 5);
// 4. Delete
kv.Remove("language");
// 5. Clear All
kv.Clear();
}
}- Mobile: Uses
Context.FilesDir(Android) andNSUserDefaults(iOS). - Desktop: Uses
%APPDATA%(Windows) and~/.config(Mac/Linux).
| Language | Verified Runtime (✅) | Build Only (🛠) |
|---|---|---|
| TypeScript | CLI (Node.js), Browser, React Native (iOS/Android) | - |
| Dart | Flutter (iOS/Android/macOS), CLI | - |
| Go | macOS, Linux, Windows, iOS, Android, CLI | - |
| Rust | macOS, iOS, Android, CLI | Linux, Windows |
| Swift | iOS, macOS, CLI | - |
| C++ | macOS, iOS, Android, CLI | - |
| Python | CLI, Web, Android | - |
| Kotlin | CLI, Web, Android | - |
| C# | CLI | Android, Windows |
| Java | CLI, Android | - |
| Ruby | CLI | - |
| PHP | CLI | - |
✅ Runtime Verified: Full CRUD operations verified via automated tests on actual devices/simulators.
MIT