flow
Having recently revisited the foundation of user-facing software in the form of iroh and tauri, and as we’re still waiting for the first full prototype to be delivered, let’s revisit the core user flows around little cloud. The user gets the delivery, and is prompted to install an app on their preferred platform. The app will next guide them in setting up little cloud, potentially including an Ikea-style assembly step. Then, power it on, connect it to the home router. The app should automatically detect a fresh little cloud on the LAN via mDNS. Next, it asks the user to give their little cloud a name. Then, they’re asked to create an account, maybe with a nickname and a procedural avatar, DiceBear-style. Then, the client device they’re interacting with little cloud from would be the first one linked to their account.
Let’s make some assumptions explicit. Every client device is owned by exactly one user, but a user may have multiple client devices, such as a phone and a laptop. In addition, a WiFi network effectively coincides with one household. You need proximity and knowledge of the key to get inside. A “formation” of little clouds may be connected to the same router LAN when one’s worker slots are exhausted, but it actually operates as a single little cloud for all intents and purposes. Users pick a little cloud as their homebase, ideally the one located in their home, to act as their digital home of sorts. All users with a shared homebase are assumed to be friends.
Back to the flow. A user can link other client devices they use to their account through a “ticket” pattern similar to authenticating WhatsApp Web using a phone. Maybe this shows up in settings as (linked) devices. Users can add friends beyond the members of their households by meeting with a user with a different homebase and doing a similar QR-based peering, a bit like when scanning for a Revolut payment. Each shows up as a Facebook-style friend identified as something like Nickname from Homebase.
From there, users can interact across homebases directly through things like chat, but can also define groups of multiple users that span little clouds, such as for collaboratively editing a document. A group of users sharing a little cloud as a homebase also exists by default. You could have some settings like only be discoverable by friends of friends, not further. For all these flows and more, we’d probably rely on a mix of iroh packages including iroh-docs, iroh-gossip, iroh-blobs, iroh-irpc, etc.
wizard
Given the AI usage policy of “it’s fine for prototyping and learning, but it must be open weights,” I used DeepSeek Flash in OpenCode to just have a go at some UI to help me get a feel for how things could look, on low reasoning effort while at that. The extremely popular combination of shadcn/ui, react, and vite meant that it was cruising through.
First there’s an initial loading screen where it pretends to connect to your little cloud, then tells you that it seems offline. If you try again, it “works” and progresses to the next part of the mockup, which is this multi-stage setup wizard. The idea being that it greets you, then asks you to power it on, then to connect it to your home router, then to choose an identity for your (digital) home, then one for yourself, and you’re all set.
I played around with a couple DiceBear styles for the home and user identity, settled for the Glyph one for now, which looks like a user icon with a random glyph for the head, plus color. And the home’s identity involves a name and a color, which is used as a common background in the avatars of the users “resident there.” It later shows up in the main app as the accent, plus RGB fans on the physical device could also match that, to drive home the idea of a shared digital home backed by a physical device.
main
After completing the mock wizard setup, you’re met with a mock screen from the app itself, which is organized in a standard way. We don’t want to splurge on “innovation coins” and diverge from the default on non-essential topics, got to pick our battles. Anyway, this translates to a primary sidebar, or “app rail”, which enumerates a few “apps” for quick access but has a more menu, as well. Then, I expect each app to have a sidebar of its own, making it the secondary one. This for navigation internal to it, conversations in a chat app, etc. There’s also a right sidebar for context-specific details. A search bar / command palette tops it off. In other words, extremely standard.
When the screen shrinks to the size of a phone, the app rail moves from the left to the bottom, and real estate there becomes even more contested. When it comes to the “apps” themselves, we can only see one of the sidebars or the main body at a given time, but we get buttons to move between those. I have a feeling that simply transitioning the UI to mobile when the window is small could reduce overall work in contrast to having a desktop-mobile split that cuts through all apps.
While sifting through the reference shad/cn “blocks” that compose components into higher-level screens, I realized that the choice of UI embeds the decision of how to made sense of apps and groups of people. You have the Slack paradigm, where you first enter a workspace and then reach apps, plus they have external channels. There’s the Discord paradigm, where besides workspaces you can have leaner chats with people directly. There’s the Google paradigm, where you mostly enter apps and from there add people in.
Here I thought you could have contacts / friends, then define groups in a dedicated place, and then from apps you can do things solo, add a person, or add a whole group, to get a group chat / group folder / etc. Basically, flatten apps and people and allow casual mixing, you’re not first entering a while workspace of people, you’re also not adding people in one by one. To be validated in user interviews among a gazillion other things.
sdk
Seeing how models cruise through dashboard-like UIs as if that’s their mother tongue, I thought maybe we could have a very opinionated and robust SDK / API for coherently and easily defining new “apps.” This SDK should be heavy-handed and constrain development such that the resulting apps are visually coherent, tap into heterogeneous hardware without having to know about it, and are natively aware of the social fabric of little clouds without having to know about peer-to-peer protocol shenanigans. Yes, it does remind be of how Kubernetes has a container storage interface and a container network interface, and so on. But, here we don’t want more than an option for each of these underlying capabilities, plus we want to expose handy abstractions around inference, search, p2p, shared auth, etc. Moving the 90% common trunk of apps into a controlled SDK would make it leaner to experiment with apps as the surface level. Here are some rough thoughts about this interface.
Each app is implemented in a folder of its own. That folder must contain a manifest file with a standardized name. That manifest file must contain the app’s name and icon, no description and fluff. Its icon will be used for instance in the app rail and elsewhere. It is not the app’s concern whether it’s picked as favorite / what it’s order is. The name will be used for instance on app rail hover or in the left sidebar title bar, as well as in search results.
In the app folder, we also have a standardized root file for the app’s logic. These weave logic with interface, so should be .tsx format. Many predefined components are made available to the app as inductive biases for a convergence on responsive UI. For instance: SidebarSection (title and children), SidebarItem (icon, title, optional number), SidebarItemUser / SidebarItemGroup (standardized avatar rendering from relevant object, optional number), SidebarItemButton (think quick actions), SidebarItemToggle (think calendars), SidebarItemCard (think file attachment), SidebarItemTable (think metadata). Apps can use official shadcn/ui components directly, too. But also: TopBar (think title and toggle groups as children), UserAvatar, GroupAvatar (both of which also bake in hover cards). And the core LeftSidebar (can be collapsed), Body, RightSidebar (can be closed), which also consolidate background colors but whose contents are app-owned. On mobile (small screen), just one of the two sidebars or the body is visible at a given time.
Besides this mostly declarative UI, the SDK should also consolidate UI/UX features imperatively. Apps should be able to register and deregister notifications, which show up as app rail bubbles and in some notification center, are consumed on respective target view, to which they should point as some location route. Apps should be able to register and deregister search result providers (e.g., messages, events, etc.), and leave basic search to the integrated search box. They should register visited places (e.g., channels, folders) to enable browsing history, based on a notion of location or route that can also be navigated() to and mounted. They should register widgets of a certain span in a grid that become available on distinct overview page. They should trigger a detailed view in the RightSidebar, which opens it if closed or changes the content if open.
The SDK should also seamlessly make available to apps key social objects, through methods such as getUser (name, glyph shape, home), getContacts (list of user references backed by the same or other homes), getGroups (list of lists of users), getHome (name, color). In general, IDs are random and hidden, for backend bookkeeping only. For future capabilities, there could be submodule namespaces like .storage, .social, .search, etc., whose API structured could be designed some other time. Firebase-like, but targeting little clouds instead of Google Cloud Platform. The linter could be configured to flag any divergence from the unifying SDK. Mock data initially. We should reuse existing libraries where possible, like for colors, DiceBear, etc. The SDK’s UI components should be in a folder of their own rather than in a unified file.
os
I sat with the above approach for a bit, but it didn’t feel quite right. In particular, going for a mega-app with internal apps pushes you to reinvent a bunch of app-related patterns. Notification lifecycles, widgets registered by apps, galleries of apps, search providers, permissions, share sheets, deeplink locations, etc. All of these app patterns are arguably problems that have already been solved at the operating system level. And so maybe we could solve the problem of how to structure the app gallery, notification system, home screen widgets, etc. by removing the problem, which is the best way to solve a problem.
If we leave all these responsibilities to the OS, we don’t have to reinvent the wheel and so our specific maintainability burden goes down. We just cover the atomic apps themselves, and stop worrying about cross-cutting infrastructure. Of course, we’d still want to induce coherence at the UI/UX level inside apps, so the whole approach to predefined layouts remain, as do social objects and abstracted capabilities. But there’s still less to worry about.
There could be some anchor app, some equivalent to Google Home, which helps you manage your little cloud, worker devices, account and such. Then separately there could be apps for social, office, media stuff. The question then becomes how to group what functionality into apps such that they’re not that many, plus how to propagate iroh-aware identity across apps. The latter maybe through some deeplinks from other apps to the anchor one on log in, because it’s non-trivial to share creds between apps across all major platforms uniformly.


