Introducing models 👯‍♀️ , a fast local-first nostr framework designed to make developers (and vibe-coders) happy.

Born out of the need for UI libraries to integrate data loading patterns nested deep in widgets, without being polluted with specific implementations.

It provides a high-level, domain-driven interface for working with the Nostr protocol. It abstracts away the complexity of raw Nostr events and provides type-safe, reactive access to relay data with built-in relationships and local storage. By default, models provides a 'dummy' implementation with an in-memory db and relay - great for fast prototyping.

My own real implementation is called Purplebase - backed by a sqlite running in an isolate, and an efficient websocket pool. It powers the upcoming agent-coding stack #purplestack

#devstr

https://github.com/purplebase/models

https://github.com/purplebase/models/blob/main/ARCHITECTURE.md

https://github.com/purplebase/purplebase/blob/master/ARCHITECTURE.md

Reply to this note

Please Login to reply.

Discussion

Can you explain like I am ten years old

It's explained for 10-year old *developers* 😅

This stuff will enable vibe coding Android (and MacOS, Linux, etc) apps like there's no tomorrow

So basically vibe coding for native development instead of web development?

For Flutter, yes