Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:13
    draeder updated the wiki
  • May 27 08:52
    amark commented #1217
  • May 27 02:44
    Jack-Works commented #1217
  • May 27 02:40
    Jack-Works commented #1217
  • May 27 00:32
    amark commented #1217
  • May 26 22:03
    amark commented #1217
  • May 25 22:00
    bmatusiak commented #1239
  • May 25 17:25

    amark on master

    fix(npm): change glob preventin… (compare)

  • May 25 17:25
    amark closed #1241
  • May 25 17:25
    amark commented #1241
  • May 25 17:21
    amark commented #1239
  • May 25 13:30
    bmatusiak commented #1240
  • May 25 13:13
    bmatusiak commented #1240
  • May 25 13:13
    bmatusiak commented #1240
  • May 25 13:11
    bmatusiak commented #1240
  • May 25 13:10
    bmatusiak commented #1240
  • May 25 13:08
    bmatusiak commented #1240
  • May 25 13:05
    bmatusiak commented #1240
  • May 25 13:03
    bmatusiak commented #1240
  • May 25 12:42
    mmalmi updated the wiki
Mark Nadal
@amark
lines 69 ~ 95 is for when somebody saves data to the network, it tries to only relay it to people who are subscribed to common soul, and debounce (but that might be causing the delays :( so need to PANIC test this... https://github.com/amark/gun/blob/master/test/panic/load.js , https://github.com/gundb/panic-server )
cryptoboid
@cryptoboid
Hi! I've been trying out GUN but I've run into a problem: has anyone tried to use it with SvelteKit? Because currently it's not working for me
6 replies
achilles
@achilldotes_twitter

I have been thinking about the idea of automatically creating an account on first visit. I think it is something integral to DAPPs, but at the same time, I think slightly more credentials might be necessary for certain projects. I am thinking in particularly about email authentication. Would it be possible to use SEA to grab user emails and enforce account verification by email? I've taken a first glance at SEA but my biggest concern seems that it would be difficult to add this.

One other concern I have is that it's mentioned in the gundb docs that "It is unsafe to use usernames as links". Why? If a user can already see another username, why can't we have the username appear as example.com/username? Is this sort of option pre-built into SEA? If I can have email authentication, then I would feel more comfortable with allowing accounts to have the advantage of having example.com/username.

Just trying to get a good idea of how things work.
Thank you for taking the time to read this!

libensveto
@libensveto_twitter
@achilldotes_twitter iris does this, a name prompt is asked on first visit, it generates keys like example.com/pub . no email or passwords required, worth checking out
Ruslan Jankurazov
@ruslanjan
How to do text search. Like when user types it searches for results. I could do lex tree but docs says deeply nested things cause undefined behavour ornis it no longer true.
And it hard to keep public index correct
GiuseppeLantieri
@GiuseppeLantieri
Hello every one, i have some trouble with the heroku peers of my app, I have always get status 400
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
Your own peers or someone elses peers on Heroku?
GiuseppeLantieri
@GiuseppeLantieri
My own peers, now all it's working but sometimes if i open the console i see the error
I dunno if is a real problem or is just something that can appen
Lorenzo Mangani @qxip
@lmangani:matrix.org
[m]
Most likely hitting an heroku limit? check the service faq
Clients that break these limits in requests will see their request fail with a 400 Bad Request response.
Wasis Haryo Sasoko
@yokowasis
Anyone have any idea on how to send message to other people using iris-lib ? I can't find anything on the docs. The example is when you have the full key pair. What if you only have pub and epub. How to send message to other people ?
Wasis Haryo Sasoko
@yokowasis
NVM. Got it
achilles
@achilldotes_twitter
@libensveto_twitter I meant if it's possible to do example.com/user instead of example.com/pub
rococtz
@rococtz:matrix.org
[m]
@ruslanjan: You have to manually create a text index. In MongoDB or SQL, this is done automatically for you (if you specify you want it indexed), but in Gun you create the index yourself:
gun.get('thatIndex').get(item.name).put(refToItem);
and then you use the LEX queries
Ruslan Jankurazov
@ruslanjan
So i just do this ‘gun.get(index).put({text: dataRef})’. I will try
@rococtz:matrix.org
Mark Nadal
@amark
@cryptoboid :wave: hiiii! :) :clap: @mundane_pftts:matrix.org ! Did that work?
@achilldotes_twitter only a server can generate emails so you'd need a backend :( :( :( tho in past we've talked about adding an email gateway to the relays that has a rate limited notification API, would you be interested in helping build this? I'll screencall and show you the code & algorithm to start. Elsewise on page load just check localStorage for account else generate await SEA.pair() to create new! Then you can SEA.secret( share their email with some admin account you run. Usernames are not secure cause there is no centralized enforcement of who owns the username, this is p2p/offline/local-first remember!
@ruslanjan 3 years ago @robertheessels built a full text search demo, but it probably would need to be rebuilt - you up for that? Its fun! :clap: @rococtz:matrix.org Bunch of phonetic word vector indices! I'll screencall and help work you thru it.
@GiuseppeLantieri :clap: @lmangani:matrix.org . Maybe try to redeploy? (If you can tell me the crash error, that'd help)
@yokowasis yo @mmalmi <-- Iris-lib Q for you!
@rococtz:matrix.org AXE screencall today work for you?
Mark Nadal
@amark
@cryptoboid can you update the docs section with this info? https://github.com/amark/gun/wiki/Svelte
1 reply
mochic
@mochic
New to gunjs just curious if there's an easy workflow for being able to get the latest record from a set
Mark Nadal
@amark
@mochic :wave: !! If you want to get latest value, probably want .put( instead. If you want like the "last chat message in chat history" tho where you still need to use .set( then you could always have a special .get('chat').get('last').put(gunRefToLastSentMsg) property you index to and read from.
mochic
@mochic
@amark thanks for your quick response! trying to get a feed of latest active chats so it's not directly applicable but I can probably use your advice to try to figure out what I must be overlooking
Mark Nadal
@amark
@mochic :+1: cool, see if it works else instantly complain :) and we'll figure out something else that works.
rococtz
@rococtz:matrix.org
[m]
@amark: I had a look at the docs and code for AXE, but unfortunately it's beyond my abilities. It requires full time involvement and I am afraid it's not possible for me at this point. I am afraid I will have to limit myself to helping around in the chat and answer questions and continue to play with Gun as someone who consumes Gun for the moment
Mark Nadal
@amark
@rococtz:matrix.org awwe :) well thanks for being so amazing helping, it has made a big impact already! Honestly, helping/replying often takes more time than coding itself! So its very appreciated :)
Wasis Haryo Sasoko
@yokowasis

@amark regarding my PR on Github. I feel like the example/http.js is still the best way to quickly, and error-proof, deploy a relay server. I mean all you need to do is npm start. It's not about whether axe is bugged or not. But some people / company prefer, their relay is not becoming part of the AXE network.

That's my reason. Perhaps, while we're at it, it would be great to also to make the multicast port changeable via environment. It's always good to have more option.

Mark Nadal
@amark
@yokowasis excellent! Yes the PR is good idea just wanted to move the code into the appropriate self-contained adapter, and similarly for multicast in gun/lib/multicast. the http.js npm start calls those adapters, so don't fear, edits there to use env configs will be part of the default check.
Radu
@rococtz
@amark I have just created this indexed text search as an example for @ruslanjan
If you are happy with the code, I can update the AWESOME list in the wiki
https://codesandbox.io/s/react-playground-forked-lyn1g
1 reply
Mark Nadal
@amark
@rococtz woooooah!!! Yes please do.
wow that was so fast that you built it!
is it much harder to split on word (or n-grams) and index each word?
Screen Shot 2021-10-16 at 6.38.50 PM.png
^ I was wanting to find "cute Fox"
since * LEX is prefix based it correctly found fast cheetah
Radu
@rococtz
so you want to search for "f" and you want "cute fox" to appear?
that's only because I have no idea how to use LEX! :) Do you have an example of "includes" as opposed to "prefix"?
Mark Nadal
@amark
but if split each value['fast','cheetah'] and ['cute','fox'] indexed each word, then 'fox' would also show in the index too
Radu
@rococtz
oh right, good idea
I will try it now
Mark Nadal
@amark
LEX had a spec for "includes" in it but when I actually implemented it in RAD I tossed it out because it'd require non O(1) lookup time
and you know how important O(1) perf is to me
I argued we could create an "includes" operation later on top
by doing just this, then indexing the values as their own
and re-running LEX (the more limited version) on that
so while a little more work on top, it only needs to be done once as a framework, and then we get for free all the same O(1) perf that the system forces.
Wasis Haryo Sasoko
@yokowasis
image.png
any idea why this happened ?
Radu
@rococtz
yes