Live data from Hacker News

I wrote a static web page and accidentally started a community (2023)

localfirstweb.dev

131–136 of 136 posts

Re: I wrote a static web page and accidentally started a community (2023)

#131

Earlier quoted context omitted.

Look up CloudKit[1], many of these questions have been answered for Apple-native apps, but perhaps it's not obvious how to translate that to the web-world, or how to keep the object storage decentralised (but self-hosted shouldn't be a problem). I'm also firmly in the native app camp. And again, Apple did this right. The web interface to iCloud works great from both Firefox and Chromium, even on OpenBSD, even with E2…

> I'm also firmly in the native app camp. Then you are answering the wrong question. I want a "web native" answer and proposed a simple modification of existing Web APIs. As a mixed iOS/Windows/Linux user, I have selfish reasons to want a cross-device solution that works at the Firefox standardized level. Even outside of the selfish reason, the kinds of "apps" I've been building that could use simple device-to-device…

> Then you are answering the wrong question. I want a "web native" answer and proposed a simple modification of existing Web APIs.

I don't see why this mechanism shouldn't be available both on the web and in native apps. The libraries would just implement the same protocol spec, use equivalent APIs. Just like with WebRTC, RSS, iCal, etc. And again, ideally with P2P capability.

> [...] that works at the Firefox standardized level.

What about a W3C standard? Chrome hijacked the process by implementing whatever-the-hell they like and forcing it upon Firefox & Safari through sheer market share. It would be good to reinforce the idea that vendor-specific "standards" are a no-no.

It also just doesn't work the other way: Firefox tried the same thing with DNT, nobody respected it.

> Piggybacking on Passkey roaming standards may be a possibility here [...]

WebAuthn sounds good, that kinda covers the TPM/SEP requirement. Native apps already normalised using webviews for auth. I wonder if there's a reasonable way to cover headless devices as well, but self-hosted/P2P apps like Syncthing also usually have a web UI.

> [...] again selfishly at least.

No problem with being "selfish". Every solution should start with answering a need.

Re: I wrote a static web page and accidentally started a community (2023)

#132

Earlier quoted context omitted.

still a WIP but I will write it up properly soon.

Can this be a self-contained alarm and journaling app for cellphones? Because I can't think of a way to do that without serviceworkers. I mean a way that doesn't involve the end user reading a paragraph of instructions, based on their "OS". Anyhow, sorry, I just can't tell what it does from the confines of that demo and a cellphone browser...

No I think you need service workers for notifications. You could do journalling but it's emits a file when saving by default. Index dB works so maybe that's a possability

Re: I wrote a static web page and accidentally started a community (2023)

#133
post #57

Another aspect of local-first I'm exploring is trying to combine it with the ability to make the backend sync server available for local self-hosting as well. In our case we're building a local-first multiplayer "IDE for tasks and notes" [1] where the syncing or "cloud" component adds features like real-time collaboration, permission controls and so on. Local-first ensures the principles mentioned in the article like…

> To really add longevity to software, I think it would be cool if it would also be possible to guarantee the _service_ part also remains available. In our set up we'll allow users to "eject" at any time by saving a .zip of all their data and simply downloading a single executable (like "server.exe" or "server.bin"). The idea is you can then easily switch to the self-hosting backend hosted on your computer or a server if you want

Too few people are taking advantage of Redbean https://redbean.dev/> and what it can do. Look into it.

Re: I wrote a static web page and accidentally started a community (2023)

#134

Earlier quoted context omitted.

But then I want my non-technical users to experience the same benefits. So I guess I’m building an app with a web server included.

I don't know why don't we have something like Java but for Javascript. Then we don't need Electron anymore.

Huh?

Re: I wrote a static web page and accidentally started a community (2023)

#135
post #86
post #15

Earlier quoted context omitted.

how do you say, implement full-text search in a local first manner? How about vector search? (don't even know if it's a thing yet, sounds possible these days). Imagine saving a local copy of a docs site (a sizable set of pages) and have search and stuff working perfectly

stuff like https://lunrjs.com/ works

Can it index images by semantic, that is what vector search can do

Re: I wrote a static web page and accidentally started a community (2023)

#136

Earlier quoted context omitted.

> I’ve decided that the advantages of storing my bookmarks locally far outweigh the chance that I'll want to access them from a different device or collaborate with someone else on them. Yes, it means I've created something of a 'silo', but I'm starting to think that's not a bad thing. Why don't you store those bookmarks as markdown files and then upload them to a private repo you can read on other devices and even y…

Aren't GitHub private repos frees now?

yes there are ;-)
Post reply on HN