Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Deniz
@KerimD
Why does db.get('courses').map().once(...) loop 2 times with only 1 item in the set? Can I prevent it from doing that? (PS: I am not updating the node from within it)
Connor Davis
@connor-davis
I agree with you on that statement @amark LoneWolf Started off with react and it just didn't work out well for me, and then I moved to SolidJs and now it works really well with gun
Also @amark In terms of the way that peers work, does gun like switch between peers everytime it wants to send out data or do all peers get the same data? Because my concern always has been about how much storage will be available and what happens when a peer gets full
Robin Bron
@finwo
@amark There's nothing more inconsistent than "the browser". That's why standards have been developed for loading things which chrome-like browsers follow and polyfills/shims for them for cross-browser compatibility.
Emad Kheir
@Emad-salah
Hey @amark, I've updated PR #1170 as requested, let me know if anything else needs fixing!
Mac16661
@Mac16661
@amark I found the bug I was trying to console log ack.sea.
Connor Davis
@connor-davis
LoneWolf now has messaging!
localhost_3000_ (1).png
And All the jazzz
Connor Davis
@connor-davis

LoneWolf | Messenger | 2021 https://lonewolf-web.web.app/

It is ready to test if you wanna test it with me 😁 and you can add me as a friend using @cnnrdvs

2 replies
Manwë
@Manwe-777
@connor-davis sent you a friends request! One issue tho, messages should be encrypted, as it is now (even if we are not firends) I can see all your conversations
Connor Davis
@connor-davis
Yeah
I know eventually they will, just taking it 1 day at a time
Um
Can you send me your username
Manwë
@Manwe-777
:D
Connor Davis
@connor-davis
I accepted and I think there is a bug
else just send me another so I can see in the console
Mac16661
@Mac16661
how can I get data posted in user graph ?
Manwë
@Manwe-777
lets see (im Manwë btw, the ë works on Gun but UIs might need to handle it)
Connor Davis
@connor-davis
Ok we are now friends
Refresh your browser quick
Theres a bug where it doesnt autogenerate certificates for messaging
I sent you a message :)
Manwë
@Manwe-777
oh yeah got the certs error haha
andre-dietrich
@andre-dietrich
Hi everyone ... I am testing GunDB as a backend for creating Classrooms with LiaScript (an interpreter for interactive Markdown)... It works pretty well... Is there a free gunServer somewhere, that can be accessed by anyone? I was trying heroku in the free version, but this will not wake up the server, I had to do it manually ...
Mac16661
@Mac16661
You can create you own node server for gun peer within 3 lines of code
andre-dietrich
@andre-dietrich
Thx, I know... I was just curious, if there are some public servers, that can be used by anyone for small amounts of data ...
1 reply
davay
@davay42
i use glitch.com for that. Server on a free tier wakes up in a couple of seconds - ok for testing purposes
lain
@lain:iwakura.xyz
[m]
does content addressing not work for objects?
it works for string and numbers, but when i try with an object i get Data hash not same as hash!
rococtz
@rococtz:matrix.org
[m]
lain: You can try to stringify object
Or if it's a gun object that you try to hash, you only need to hash its soul (which looks like an id, it's a string)
1 reply
soury boy
@kislball
Hello! I'm looking into using Gun for my side project, it looks really well! Since secret/trust/grant methods are deprecated, I was trying to understand their inner workings. But I still don't get it. Can someone explain how only granted pub keys can read/write data?
rococtz
@rococtz:matrix.org
[m]
@kislball: public space - everyone can read, everyone can write
user space ( gun.user().get('...').put(...) ) - everyone can read, only the owner can write. The owner can use SEA.certify to grant others write access to his user space (under certain parts or to certain people)
but in gun there is no such thing as restrict read. everyone can read everything. if you are worried about people reading your private data, then you have to encrypt (using SEA.encrypt) and this way they can still read it, but it won't mean anything to them
certify is easy to use. You just assume nobody can write anywhere. Then you generate a certificate saying "Bob can write under /messages" or "Anyone can write under /messages/{someGuysPublicKey} "
People will have to use that certificate when they try to write under your user graph
soury boy
@kislball
Thanks, now that makes sense for me. I dunno how can I write policies. As I found out, it uses LEX but there is no docs about it. Are there any?
rogowski
@rogowski
rococtz
@rococtz:matrix.org
[m]
@kislball: there are plenty of example in here: https://gun.eco/docs/SEA.certify
lain
@lain:iwakura.xyz
[m]
if i use .map().once(...) is there a way to know when its done?
after its iterated through all the items
WILL
@WillWang002_twitter
How many people can you support in chat function use GunDB?
Jake
@wayjake
My question is when you call .once() how do we better understand what requests are being made under thr hood? Ie) is it fetching from peers vs. local cache?
Arex360
@Arex360
How much data a single node (relay) can store as max heap size of json is 1 GB in node js
If my machine host data more than 1 GB, will it cause problem?
lain
@lain:iwakura.xyz
[m]
hmmm im trying to use .unset() but it doesnt seem to work, am i doing something wrong here? its not removing the node from the set
i imported the script for it
Mark Nadal
@amark
@azdez:matrix.org hmm.
@KerimD map().once( should only give you the item once. You might have added it twice? Most ask about .on( which is chatty, but .once( isn't. You sure?
@connor-davis :+1: :fire: . Tho might need to re-do it again for SecureRender :/ unless somebody wants to donate webworker<->DOM support.
data is sent to each connected peer, which dedup against each other using DAM.
@finwo while browsers are finicky, W3C is a whole lot more stable than Webpack.
@Emad-salah oh great!
@Mac16661 :sweat_smile: phew!
await user ?
@andre-dietrich :clap: @rogowski ! :+1: @Mac16661 , @davay42 .
@lain:iwakura.xyz :+1: @rococtz:matrix.org . I'd like to figure out better frozen object behavior than strings :/, tho I guess they're not concurrent so don't really need the CRDTs.
@kislball have you seen https://gun.eco/docs/Cartoon-Cryptography (?). :clap: @rococtz:matrix.org .
@lain:iwakura.xyz there may always be future values, so "done" doesn't make sense. If you mean "now" then you can list.once(cb the data and in the callback get each sub-item, then you'll know the assumed current total (p2p availability disclaimers aside).
@WillWang002_twitter live concurrent users has more to do with relay performance (AXE) than GUN data/records. AXE is very experimental still.
@Arex360 argh, tell me about it, JS limits been hurting me. Data on disk =/= data in-memory tho. Data on disk can be much larger. Tho I don't think I upgraded latest to include the old memory eviction yet. Wanna help?
@lain:iwakura.xyz -> @azdez:matrix.org (?)
@wayjake it does all 3, it tries to wait in some conditions for the others to reply before calling, but not guaranteed.