Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 03 04:33
    ndaidong closed #1292
  • Dec 01 16:01
    ameoba32 opened #1295
  • Dec 01 07:28

    amark on master

    toString must be stringy! (compare)

  • Dec 01 05:29
    amark commented #1287
  • Dec 01 05:21
    amark commented #1289
  • Dec 01 05:20
    amark commented #1293
  • Dec 01 05:12
    amark commented #1294
  • Nov 30 08:27
    soulofmischief commented #1294
  • Nov 28 23:07
    ViteOrder opened #1294
  • Nov 24 06:51
    expelledboy synchronize #1276
  • Nov 22 18:04
    BrendanDN commented #1290
  • Nov 22 18:04
    BrendanDN closed #1290
  • Nov 22 18:04
    BrendanDN commented #1290
  • Nov 22 17:59
    BrendanDN commented #1292
  • Nov 22 04:07
    ndaidong commented #1292
  • Nov 21 20:28
    verschmelzen opened #1293
  • Nov 21 19:44
    BrendanDN commented #1292
  • Nov 21 14:50
    ndaidong opened #1292
  • Nov 19 17:41
    estebanrfp commented #1080
  • Nov 18 21:26
    @rogowski banned @jesus:halogen.city
Jerushan
@jerushan06:matrix.org
[m]

Hello guys,
I would like to develop a Family tree project using Gun JS. I want to make sure these 3 things can be done.

  1. Privacy of non-connected nodes
  2. Privacy of a node
  3. Privacy of a piece of data in a single node

2 different family tree data need to be separate. Currently all data shows up in developer tools of a browser. Is there a way to keep some data secret from others?

I can’t have all data visible to every family members

3 replies
Sascha1337
@sascha1337
sup im new here
lets see how active this place is
1 reply
Tarek Besbes
@Tarbez

Hello everyone, I want to create a social network based on GunJs.
Where do I start? Is there any repo I can clone and start with it?

My first goal for now:
Sign-up/Login
Displayed the signed in user in another page
then basically in another page pull all the users (Username) that signed up.

3 replies
rococtz
@rococtz:matrix.org
[m]
verschmelzen
@verschmelzen:matrix.org
[m]
Hey! I am working on renegotiation in webrtc.js now. Is there an example of how to setup 2-way message only communication between peers?
1 reply

message only meaning data is not kept in the graph like done here

right now that works only one way (only peers that joined first can message like this to the other peer)

verschmelzen
@verschmelzen:matrix.org
[m]
I guess I can use .put({}, function (_data, _key, msg) {...}) and use msg instead of _data inside callback for that matter 🤔? But that would still keep the data on the nodes
Frudas
@frudas:matrix.org
[m]
Hi
i found a bug here
1 reply
line 205 -> setTimeout.each(l, function(id){ var it = s[id]; // TODO: .keys( is slow?
fix -> setTimeout(l, function(id) .........
im getting erros on console
@amark: /\
Frudas
@frudas:matrix.org
[m]
or
fix -> setTimeout.each(ack, function(id){ .......
Object.keys maybe is what is trying to iterate
Frudas
@frudas:matrix.org
[m]
in firefox
chrome too
RamiMetry
@RamiMetry
hello any working github code with react-native so I can clone and check
i need only react native not react js code
verschmelzen
@verschmelzen:matrix.org
[m]
Day number N of trying to implement renegotiation in webrtc.js. I am at the same place as before root.on('out', just does not fire an event when I try to use it. but in original webrtc.js code it is definetly used for messaging
verschmelzen
@verschmelzen:matrix.org
[m]

Briefly, I am doing something like this

side One

gun.get('+'+opt.pid).on(function(last, key, msg){
    if(opt.rtc.start > msg.put['>']){ return }
    root.on('out', {'@': ''+msg['#'], '#': root.ask(open), ok: {rtc: {id: opt.pid}}}); 
});

side Two

gun.get('+'+ack.ok.rtc.id).put(opt.pid, open); // put stuff in the same node and expect respone in callback

but side Two never gets my ACK

gun.get('+'+opt.pid) and gun.get('+'+ack.ok.rtc.id) are the same node
Is there any docs or examples on how this messaging works? I am working around in circles here
Bo
@worldpeaceenginelabs
@amark Hey there. I found this and it is possible a really good companion to Gun? https://github.com/fireship-io/flamethrower , a bit explained here https://youtu.be/SJeBRW1QQMA (in the video he explaines also how to single compile React, Vue, Angular, Svelte components to use in React, Vue, Svelte etc, and vice versa. The whole video is gold i think. But here is a even better explainer on how to cross use components in different frameworks https://youtu.be/RbTM785zhG4 btw: did you get Bun get to run with Gun?
‹› ‹(•_•)› ‹›
@computervillain_twitter
Has anyone watched this? What are your thoughts? I know the post-growth economy is something that Mark has a few thoughts on. https://www.youtube.com/watch?v=mT3P0YSNonE
rococtz
@rococtz:matrix.org
[m]
florausdt: Instead of helping 20 people earn 50k each, I want her to help me earn 50k, 20 times. Is that possible?
Mark Nadal
@amark
uggh, spammers. I don't like banning/blocking powers but gonna use it, hopefully at least for good.
not even sure how... gonna try typing random commands (then will catch up with chats later tonight)
how do I give you admin powers @rococtz:matrix.org ?
I tried to just add your non-matrix one, let me know if that worked. Will try matrix one now too.
didn't seem to work.
Mark Nadal
@amark
holy cow, who targeted the spammers at us via matrix?
c!
@im.maddie:matrix.org
[m]
just curious, since HAM does conflict res, does it store time data in a data node? i have an application that needs to prove the time something was created (a simple date object and even it's associated hash can easily be copied from another user's graph) and i reckon that info might be of use in this case
Mark Nadal
@amark
@voidwalker09:matrix.org cause then your keypair needs to be on that HTTP server :/ I mean if you own/control it, probably fine - but most people don't use their own HTTP servers?
@nour-dev :clap: @adam_blvck:matrix.org :clap: @draeder
@alen_george_gitlab check @bresnow 's work, he's got React / SSR + GUN working.
@ceniei:matrix.org :clap: @jabis . Also consider: I think useCallback gets called multiple times by React, which inside you then .on( which creates new subscription listeners each time - therefore accumulating more & more listeners over time.
@verschmelzen:matrix.org :+1: offline/local-first p2p!
@azdez:matrix.org RAD isn't upgraded to latest, and LEX queries were in beta... so they're probably not working well at all. Book is a much better approach & should clean a lot of things up, but I need help with it: any people willing to contribute tests?
@alen_george_gitlab :clap: @adam_blvck:matrix.org . Tho I also want to make sure it is not a bug in the YSON parser - can you paste sample JSON data that is erring into a GitHub issue so I can test it against YSON? What version of GUN did this happen in?
@RamiMetry :clap: @adam_blvck:matrix.org . I think Adam wrote a tutorial to help on this? What was that link? There is also https://github.com/aethiop/jot tutorial too - RN requires a bit of setup currently for it to work cause RN does weird magic to make native, so please try both of those & variations. Oh, and ah + @jabis had an important point.
@sascha1337 (?)
@lightningx10 correct, I'm pretty sure NTS not upgraded to latest so it is also not working.
@dev1n:matrix.org :clap: @rococtz:matrix.org :clap: @draeder @Lexi:matrix.org . Tho this maybe you want to kill the sockets instead: https://gun.eco/docs/DAM#removing-peers ?
@jerushan06:matrix.org :clap: @adam_blvck:matrix.org correct, encrypting the data keeps it secure & private. :) GUN can protect data better than centralized systems.
@sascha1337 :wave: :)
@Tarbez :clap: @Lexi:matrix.org :clap: @Lexi:matrix.org :clap: @Manwe-777 :clap: @rococtz:matrix.org . @connor-davis !
@verschmelzen:matrix.org @Lexi:matrix.org the new way ACKs to PUT are handled is how we're doing the 1-1 WebRTC handshaking. root.ask(function(ack){}) builds a TCP/HTTP-like req/res ontop of GUN's otherwise UDP-like messaging system. It doesn't do anything itself, it just returns an ID that it associates with your callback, message IDs on wire are like var msg = {'#': root.ask(cb), ...} which you root.on('out', msg) (be careful: you might need to in it versus out, it depends!) then another machine just has to ACK that msg ID, so you var reply = {'#': 'asdf', '@': msg['#'], ...}that gets sent out or in. You could keep chaining these, where the reply itself may want a reply so you do instead: var reply = {'#': root.ask(cb), '@': msg['#'], ...} and so on...
Everybody else, please IGNORE the above. Working at a wire protocol adapter level... is extremely easy to shoot yourself in the foot (every wire has to be connected properly, or it will disconnect everything else). For those who are deeply interested in building stuff like this (WebRTC adapters, SEA, etc.) I'm happy to jump on a call & teach you directly (jus tpromise you'll update docs).
@frudas:matrix.org tell me more about LogRocket interference??? Kinda heard of this once before, but the other person didn't clarify. Can you put an easy jsbin together for us to check? & link to it in github issue?
(anyone who adds a github issue, BTW, needs to tag me here. Github doesn't email me anymore.)
@worldpeaceenginelabs woah, this looks REALLY cool (fireship's new framewor... ahem, library!).
@computervillain_twitter well produced video but dissapointingly lacking meaning - it just talks about talking about things :( .
@im.maddie:matrix.org Gun.state.is(data_node, keyName) 1 of the few internal utilities I kept :P
1 reply
note it has no formal guarantees, its jut the UTC of when the write happened.
Bo
@worldpeaceenginelabs
@amark yes it does, and so easy to use 😍 1. what about Bun? did you manage to run Gun with it? 2. i think the cross-component thing fits awesome into the decentralization stack related to Gun, dont you think? decentralized database, decentralized frameworks... Decentralize!!! ✊ @draeder
Sascha1337
@sascha1337:matrix.org
[m]
wooooohoooohooooooo that post above! holy smokinggun!
c!
@im.maddie:matrix.org
[m]
@amark since it is a part of the node, though, if the UTC time were to be messed with is it safe to assume that it would trigger some mismatch alerts?
Frudas
@frudas:matrix.org
[m]
hi, on console is now showing " 0 length key!" in nodejs deployment
@amark: /\
what´s that
Sascha1337
@sascha1337:matrix.org
[m]
im gonna contribute to rod and gun and rs-gun
fam, what are the differences, problems with the RUST GUN
compared to the js
rococtz
@rococtz:matrix.org
[m]
@amark: sorry, I don't think I use the non-matrix account anymore. I am only using this one