Marcel Soubkovsky - Logo

Selected project

l-storage

Type-safe localStorage wrapper with built-in inspection.

Made browser state persistence easier to debug and validate.

Year

2025

Role

Library author

Focus

TypeScriptZodstate
l-storage npm library

Technologies & Tools

TypeScriptZod

Tasks

Full developmentDocumentation

The Problem

Local storage management is one of those things that sounds simple until you actually have to debug it. Where is this key being set? What's the current value? Is this data even valid anymore?

The Solution

l-storage is a type-safe localStorage wrapper that lets you view all your keys anywhere in the app. Need to access or change something? Click, done. It uses Zod for runtime validation and TypeScript for automatic type inference, so you get safety without the ceremony.

Why I Built It

I got tired of opening DevTools every time I needed to inspect localStorage. This library makes it visible and manageable from your app itself, not just the browser debugger.

Published

This is my second npm package. There's something satisfying about publishing something useful, writing the documentation, and knowing other developers might find it helpful too.