earthstar-project / earthstar-foyer Goto Github PK
View Code? Open in Web Editor NEWA guestbook style web application using Earthstar
Home Page: https://earthstar-foyer.netlify.app/
License: GNU Affero General Public License v3.0
A guestbook style web application using Earthstar
Home Page: https://earthstar-foyer.netlify.app/
License: GNU Affero General Public License v3.0
Maybe store the user keypairs encrypted with a password that users have to enter every time they load the app.
Note we're switching terminology here - we call them Users even though Earthstar calls them Authors.
Users should be able to
I'm not sure where to keep track of this. Options:
earthstar
IStorage, have any writes happened since the last sync? The Syncer class would keep track of this, and store it in IStorage config storage. Which would have to be implemented for StorageMemory.When Foyer is open in two tabs at the same time, both are writing to LocalStorage but neither is reading from it. This causes Problems.
We only load from LocalStorage to memory at startup and from that point we only write from memory to LocalStorage. Instead we need to keep LocalStorage and memory in sync with each other bidirectionally. It's like LocalStorage is a mini pub.
Luckily Earthstar data is easy to sync like this, but we may need to store each document as a separate LocalStorage item. However we also have some metadata that will be trickier to sync (list of workspaces and pub configuration).
Notes:
onChange
event we can use.Temporary workarounds:
When creating a new user, make it work like this:
This way password managers will detect the login event and save your password for you.
Sometimes it's not refreshed properly. Not quite sure how to reproduce.
Make sure to clear the localStorage of a workspace's data, when the user removes the workspace.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.