beakerbrowser / fritter

A peer-to-peer social feed app. (proof of concept)
dat://fritter.hashbase.io
MIT License
364 stars 36 forks source link

Offline users profiles #46

Open arni077 opened 6 years ago

arni077 commented 6 years ago

User profiles on the p2p Web are a bit different than user profiles on the traditional Web. Instead of being stored in a server-side database, they're simply websites! This means you can look at all the files that comprise a profile only if that user is online?how fritter display posts from users which are offline?

fsteff commented 6 years ago

Technically a profile is not a website, it's just a bunch of json files. Everyone that downloads these files becomes a peer that others can get the data from. Also, these files are cached so you can use them without an internet connection. To make sure your profile is always available to others you can use hashbase.

rjcorwin commented 6 years ago

Also, these files are cached so you can use them without an internet connection.

Does that happen automatically when you add someone? Similar to "hosting forever" when you browse a dat site.

pfrazee commented 6 years ago

@fsteff is correct. You keep dat sites in your cache. @rjsteinert currently the policy is that each dat (and their downloaded files) stays in your cache until the dat hasnt been loaded for 2 weeks. Fritter doesn't currently do "hosting forever" to the ones you follow but we added an API recently that would enable that (https://beakerbrowser.com/docs/apis/experimental-library)

arni077 commented 6 years ago

@pfrazee how fritter displays posts from offline users?

pfrazee commented 6 years ago

@arni077 If it's the first time you're seeing their profile, you do need somebody to be online and sharing the profile data. After that, you'll have the data saved.

rjcorwin commented 6 years ago

Fritter doesn't currently do "hosting forever" to the ones you follow but we added an API recently that would enable that (https://beakerbrowser.com/docs/apis/experimental-library)

w00t!