{"by":"adrai","descendants":15,"id":44889874,"kids":[44898937,44897760,44898983,44900006,44898749],"score":43,"text":"Hi HN,<p>I&#x27;m Adriano, one of the makers of Vaultrice. I&#x27;m excited (and a little nervous!) to share what we&#x27;ve been building.<p>For years, we found ourselves in a frustrating loop: whenever we needed a simple real-time feature—like a &quot;who&#x27;s online&quot; list, a collaborative app, or just sharing state between a marketing site and our main app — we&#x27;d end up spending days setting up the same stack or discarded to do it. Setting it up, it always involved wiring together a database, a WebSocket server, an API, and managing the connection state. It felt like massive overkill for what we were trying to achieve.<p>We wanted a tool that felt as simple to use as the browser&#x27;s `localStorage` API but worked across domains and devices, with real-time sync and security built-in.<p>So, we built Vaultrice.<p>It’s a key-value data store built on top of Cloudflare&#x27;s Durable Objects, which gives you a strongly consistent backend for each data object. You interact with it through our TS&#x2F;JS SDK, which comes in two flavors:<p>1.  `NonLocalStorage`: A low-level client with a `localStorage`-like API (`setItem`, `getItem`, etc.) plus real-time events and presence (`.on()`, `.join()`).<p>2.  `SyncObject`: A higher-level, reactive JavaScript Proxy. You just change a property on an object (`doc.title = &#x27;New Title&#x27;`), and it automatically syncs to all other connected clients.<p>The goal is to let you build the real-time features you want in minutes, not days. We&#x27;ve also put a lot of thought into a layered security model, allowing you to go from simple API key restrictions all the way to server-signed object IDs and client-side E2EE.<p>We’ve just launched and would be grateful for any feedback from the HN community. What do you think of the API design? Are there use cases we haven&#x27;t considered? Any thoughts on the security model?<p>We&#x27;ll be here (or via email (support@vaultrice.com)) to answer any questions. Thanks for checking it out!","time":1755099424,"title":"Show HN: Vaultrice – A real-time key-value store with a localStorage API","type":"story","url":"https://www.vaultrice.com/"}