Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:32
    amark updated the wiki
  • 01:29
    amark updated the wiki
  • Feb 24 21:40
    amark commented #1052
  • Feb 23 09:21
    mimiza commented #1021
  • Feb 23 06:42
    i001962 commented #1052
  • Feb 23 05:24
    YangHanlin edited #1055
  • Feb 23 02:09
    amark commented #1056
  • Feb 23 01:52
    amark commented #1054
  • Feb 23 01:51
    amark commented #1054
  • Feb 23 01:48
    amark commented #1052
  • Feb 22 21:28
    sirpy assigned #1056
  • Feb 22 21:28
    sirpy opened #1056
  • Feb 21 11:42
    R0quef0rt updated the wiki
  • Feb 20 15:05
    YangHanlin commented #1055
  • Feb 20 14:56
    YangHanlin commented #1041
  • Feb 20 14:55
    YangHanlin opened #1055
  • Feb 19 23:41

    amark on manhattan

    self check not needed? (compare)

  • Feb 19 21:01
    amark commented #1053
  • Feb 19 20:49
    amark closed #1040
  • Feb 19 20:49
    amark commented #1040
gunchatbridge
@gunchatbridge
[D] Davay: why no peerList option in options? ))
[D] GiraffeKey: There should be a "peers" option but I am probably gonna add relay discovery and bootstrap nodes
[D] GiraffeKey: So that might get depricated
[D] GiraffeKey: It's in version 0.1.X so I probably shouldn't be encouraging people to use it yet
gunchatbridge
@gunchatbridge
[D] Davay: It looks promising. Hope it'll evolve in a rather convenient abstraction layer to work with )
gunchatbridge
@gunchatbridge
[D] c1ph3r:
[D] Dyno: Welcome <@176465778726404097>!!! GUN (https://github.com/amark/gun) is a P2P protocol for syncing data used by 8M+ people monthly across Internet Archive, HackerNoon, DTube (decentralized youtube), Notabug (p2p reddit), & more. Please try the 5min tutorial (https://gun.eco/docs/Todo-Dapp) to get started!
gunchatbridge
@gunchatbridge

[D] alexz: If in my message forum app im making with gun, i need to check if 24 hours have passed since a post was made, in order to change a state on the user, would it be best to do that by just saving the post time when i save my post with set(), and then iterate through all the posts and check elapsed time, OR,

should i save the post with a set() and a time() and check with time? OR

should i only save the post with time() and get all the post data (text, author) from that without having to save it with set() also?

gunchatbridge
@gunchatbridge
[D] marknadal: <@!453231170486796288> <@!516339189323792394> <@!176465778726404097> 👋 👋 👋 WELCOME WELCOME WELCOME!!!
<@!797929649467686953> did you see my earlier response? I was asking for some more details, couldn't quite figure out what you meant.
<@!624103263482150912> <@!535370860521979914> when GUN syncs accounts, it does not do it based on alias - so it is perfectly safe to have multiple accounts with same name or alias, without the accounts getting confused.
<@!636489182214357002> getting better! 😄
<@!621087760496853023> there are still some fixes in your RAD code for RAD-serialized data (not JSON) I'm wanting to check.
<@!320307597670350848> that's the beauty, they're all equal. But if you are the source of your own data, that probably means there is higher chance you have it than others.
Yeah, unfortunately WebRTC doesn't work that way 😦 the goal with the DHT tho is to have this tho, & rotating so you don't become dependent on any single one.
GUN does already do peer discovery, based on data subscriptions. In that sense, the peers you list are bootstrapping peers. It is just that currently not all of the bootstrapping peers are connected to each other - which is what the DHT will do. <@!636489182214357002> isn't that an issue in 2020, not 2019?
Yay more Griffin! 🙂
see <@!437811788122161152> 's post recently to access the peer list.
<@!516339189323792394> which example (?)
<@!261538043834531861> what go1dfish did for his p2p reddit forum clone is save the posts in daily or hourly buckets so like ...get('2021/01/09:1:30 or so, now there is only X number of posts per day or hour to check, rather than iterating over everything.
gunchatbridge
@gunchatbridge
[D] marknadal: <@!320307597670350848> <@!636489182214357002> for example, this differentiates several of the pieces https://gun.eco/docs/Service-Discovery and that is the base layer of DAM which is much more efficient than most other systems which are flood-based. Then you'll see it lets us layer AXE on top, which does additional optimizations that already work, like pub/sub etc., as to why 2 relays chew thru bandwidth I'm not sure yet :/ I think it is because browsers will also act as relays, so there is some edge case where 2 relays that don't know of each other, that get automatically discovered via a browser, causes this edge case that needs to be fixed. It doesn't mean GUN's DAM/AXE modules lack peer discovery or service discovery or pubsub. However, the DHT doesn't exist yet (tho some code exists and has a PANIC test passing, but not used in-production yet).
[D] Jimmy Jones: hey all, long time. i am finishing up a project and when I finish I plan to revisit gundb. recent events have made it clear we need a new way forward.
gunchatbridge
@gunchatbridge
[D] Agrintina:
[D] Dyno: Welcome <@794644383772835850>!!! GUN (https://github.com/amark/gun) is a P2P protocol for syncing data used by 8M+ people monthly across Internet Archive, HackerNoon, DTube (decentralized youtube), Notabug (p2p reddit), & more. Please try the 5min tutorial (https://gun.eco/docs/Todo-Dapp) to get started!
[D] Agrintina: http://hentaiher.ga - hentai game - 18+ - free
[D] marknadal: Gonna delete this. Outright spam advert.
gunchatbridge
@gunchatbridge
[D] Agrintina: http://hentaiher.ga - hentai game - 18+ - free
[D] Agrintina: http://hentaiher.ga - hentai game - 18+ - free
[D] RayBaud2600:
[D] Dyno: Welcome <@798342314837540894>!!! GUN (https://github.com/amark/gun) is a P2P protocol for syncing data used by 8M+ people monthly across Internet Archive, HackerNoon, DTube (decentralized youtube), Notabug (p2p reddit), & more. Please try the 5min tutorial (https://gun.eco/docs/Todo-Dapp) to get started!
gunchatbridge
@gunchatbridge

[D] Adnan: <@!178314946201780224> sorry I missed your earlier response.

I am getting issue on receiving data on in active browser tab.

If I open page on two different tabs then only active tab is getting broadcast data.

Inactive tab only gets data if I move to it within couple of seconds otherwise it would miss the broadcast.

Mike
@MikePadge
I pop in once a year to check in and say hey, gunjs is super important, you all are doing heroes work.... that being said last time I popped in it looked like the chat group had migrated elswhere... I see the bridge, but where do it lead?
GerhardMes
@GerhardMes
just wanted to say hey. Just starting to get into gun.
Mark Nadal
@amark
@MikePadge @GerhardMes HI!!!!!! :) Looks like discord<->gitter bridge down again, so I didn't see your message. Sorry. If you want to join discord then try http://chat.gun.eco :) and <3 <3 <3 thanks for the comments, it is actually extremely encouraging to hear after 2020.
@GerhardMes w00h00! How can we help? (beware the chat bridge might be spotty)
RICHΛRD ΛNΛYΛ
@richardanaya
Hey all :) working on a cool project today https://github.com/richardanaya/gundb_webrtc
What's the best way to know when GunDB is fully ready to use?
I'm hitting slow downs and "No ACK yet"
  • know when GunDB peers are ready to use
Eistee
@Eistee82
how to use gun in angular?
RICHΛRD ΛNΛYΛ
@richardanaya
hey all, what's the easiest way to shutdown an instance of gundb?
RICHΛRD ΛNΛYΛ
@richardanaya
is it as simple as this.gun.off() ?
Mark Nadal
@amark
@richardanaya @Eistee82 yo! I hope we got you settled on discord, the replies to these there? Angular has been... a while, there are a several examples out there but from years ago, maybe tell me if you have any issues? https://github.com/CaliStyle/ng-gun
CSharpner
@CSharpner_gitlab

Hello! I'm going through the tutorial here: https://gun.eco/docs/Todo-Dapp And it's not fully working. A couple problems:

  1. Clicking the "edit on CodePen" button doesn't get a proper copy of the source code. All the quotation marks are missing from the entire thing, so nothing works.
  2. If I copy from the https://gun.eco/docs/Todo-Dapp page INTO the CodePen page, I get better results, but not fully working results.

When I save it to a file on my PC and run it in a browser, nothing works. Would be good in your docs to say you have to run it in at least 2 browser tabs simultaneously before anything does anything.

When I do that, I can "sign up" and "sign in", but the syncing only works between two tabs of the same browser. It never syncs between browser types nor even between regular browser tabs and private browser tabs and never across multiple machines. I'm at my wits end. Not sure where to go from here.

Any help would be greatly appreciated.

BTW, created this centralized site: https://DecentralizationCentral.com and will be converting it to fully decentralized. The decentralized database is the final hurdle to overcome to complete that task.

I should mention that I am completely and totally lost on whatever the hell NodeJS is. I just don't get it and don't understand the use of it on a decentralized app when the users will 100% not be using it, so I can't understand why I'd need it while developing the app. My extremely vague understanding is it's something that installs in some secret location on my developer machine and provides server side running of JavaScript? If at all possible, I'd prefer to never have to touch it for any reason. I just want to write a simple HTML file with a few lines of JS to create my POC for GunDB. If I can get that working, then I'm golden! ;)

Mark Nadal
@amark
@CSharpner_gitlab hey! Sorry I didn't see this sooner.
Oh my! Thank you, some of these I was aware of but others totally unaware, like (1) & (2) thank you!
We hit 30M monthly users in 2020 and things started crashing like crazy and I rushed to make as many experimental edits as I could and in that process I broke several things & left the ecosystem a mess. Usually it should "just work" across any machine with simple HTML. :( So the only options right now is either run your own "relay peer" (this is what the NodeJS thing is, it is server-side javascript that acts as a fallback if p2p connections fail - which, in the browser, with WebRTC, is 40% of the time. These relays do not need to be centralized) and several here (well, most of the community is on Discord now, you OK with joining that? http://chat.gun.eco ) can help you with that. The other option is to wait a few months for me to get the new version out, which I don't recommend waiting for.
uxchc
@xuhcc:zerohut.org
[m]
If you really care about decentralization, privacy and openness, don't use discord. Gitter is much better because it is now a part of matrix ecosystem https://matrix.org/blog/2020/12/07/gitter-now-speaks-matrix
CSharpner
@CSharpner_gitlab
Thanks Mark!
Mark Nadal
@amark
@xuhcc:zerohut.org :thumbsup: I liked gitter over discord, but the community disagreed with me, created the discord without me, and pretty much moved over voluntarily, so I followed.
sorleone
@sorleone
hello
how can I use gun to share a information between people in a decentralized way?
Also, if you would connect the app to a GUN server and also open the app in different computers (connecting to that same server), all data would be continuously synced.
this is from the tutorial and it seems very centralized to me
David M.
@davidmanzanares
Hi, I would like to know more about how gun's p2p works. I assume that data is only distributed to interested parties, right? I guess that only routing information is distributed without application action, right? I've also read that gun's p2p forms a "full mesh network". I would have assumed a Kademlia-style DHT network. When using gun, do you join a single network, or each application has its own network?
Mark Nadal
@amark
@sorleone did you read the part about adding WebRTC, but that it fails a lot? You can have N number of relay fallbacks, to keep it decentralized and reliable.
@davidmanzanares right now you join your own relays and browser auto-discover each other. However, in the future, the default is set to turn on that all peers form a larger DHT. You'll have to opt out, not in.
both :) please if you can join the http://chat.gun.eco discord - most people are there now, I rarely check here.
David M.
@davidmanzanares
thanks!
Richard Forrester
@RichardForrester
Hi, I'm just learning about GunDB and digging into the theory a little; apologies if this is already asked and answered, but I couldn't find anything on point. I was wondering if Gun, or any other distributed graph database system, optionally allows vertices and edges to specify a location for writes so that writes could be distributed across the entire network while maintaining atomicity for transactions that would otherwise require a single master writer.
Mark Nadal
@amark
@RichardForrester I do not recommend using GUN for banking based data. If that isn't the use case for your transactions, there are several better options inside of GUN without the need for special shard rules: (1) just serialize your edit as a JSON string and it will be saved all-or-nothing as an atomic value (2) save your edits concurrently but have a "done" flag that you flip bit (or better version ID) at the end while enforcing a schema. Could discuss other options, but no, there is no easy way currently to control for peer location.
Also, if possible! Please join the discord now? :) Most people moved over to it, even tho I liked gitter. http://chat.gun.eco
lanmower
@lanmower
hi there :)
Mark Nadal
@amark
@lanmower :confetti_ball: :confetti_ball: :confetti_ball: !
how are you?