Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 03:41
    mimiza edited #1028
  • 03:40
    mimiza commented #1028
  • Nov 26 09:22
    GildedHonour edited #1031
  • Nov 26 09:21
    GildedHonour edited #1031
  • Nov 26 09:19
    GildedHonour opened #1031
  • Nov 25 15:06
    capitalistdog commented #1030
  • Nov 25 14:26
    GildedHonour edited #1030
  • Nov 25 14:25
    GildedHonour edited #1030
  • Nov 25 14:25
    GildedHonour edited #1030
  • Nov 25 14:23
    GildedHonour edited #1030
  • Nov 25 14:21
    GildedHonour opened #1030
  • Nov 25 06:54
    sirpy commented #1005
  • Nov 25 06:42
    sirpy commented #714
  • Nov 25 06:41
    sirpy commented #714
  • Nov 25 06:37
    yasurok commented #714
  • Nov 25 03:31
    yasurok commented #714
  • Nov 25 03:25
    yasurok commented #714
  • Nov 24 23:22
    amark commented #714
  • Nov 24 17:28
    yasurok commented #714
  • Nov 24 17:18
    yasurok commented #714
Clément Lakhal
@clemlak
Hey guys! I'm working on a new project and I'm trying to see if Gun is the best solution for me
Is there a way to have a "append only" option?
I want people to be able to add data freely, even run nodes, but I want to prevent them from deleting the entire DB
gunchatbridge
@gunchatbridge
[D] Clément:
[D] Dyno: Welcome <@433587399130611712>!!! 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] Dletta: @clemlak it's not built in to be append only, but it can be done. This feature recently went into beta it's called 'content addressing' where data becomes immutable
gunchatbridge
@gunchatbridge
[D] fade: @ clemlak I believe someone created an append-only plugin ( https://github.com/GoodDollar/gun-appendOnly looks like it, I didn't test it or anyhting though)
gunchatbridge
@gunchatbridge
[D] Dletta: good catch <@!407622013835018251> You can trust GoodDollar, they are using it in production @clemlak
gunchatbridge
@gunchatbridge
[D] sirpy: <@407622013835018251> actually append only is not in production and it's not compatible with 2020
gunchatbridge
@gunchatbridge
[D] fade: Interesting, good to know!
gunchatbridge
@gunchatbridge
[D] blevvys: https://gun.eco/docs/Todo-Dapp is throwing Bad Path
/boomboom/v2/index.html any ideas?
gunchatbridge
@gunchatbridge
[D] sirpy: <@!407622013835018251> it shouldnt be hard to verify its working and make changes, be happy to help out if you want to make a PR
Clément Lakhal
@clemlak
Thanks guys, I'll have a look at it!
gunchatbridge
@gunchatbridge
[D] krs:
[D] Dyno: Welcome <@764899664750968852>!!! 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] krs: Hi all, I'm starting to play with the gun js. I do not know if I understand correctly, but does each gun client have a full copy of the database?
[D] krs: I have a data structure divided into organizations, I would not want every customer to synchronize data that they do not need. I hope you understand what I mean 🙂
gunchatbridge
@gunchatbridge
[D] gajahmandra: No, client only get what they subscribe or request
gunchatbridge
@gunchatbridge
[D] zensin: <@612728945313316904> I did it
[D] Dletta: Gun native?
[D] Dletta: <@590347867588263939> ?
[D] bios:
[D] Dyno: Welcome <@392331376189505537>!!! 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] zensin: <@612728945313316904> not that yet. Pretty sure I finally solved the NAT problem
[D] Dletta: !!!!!
[D] zensin: will DM
[D] Dletta: Awesome
gunchatbridge
@gunchatbridge
[D] shhdddhr: hey fellaz, where can I find any documentation on gun.user.alive() ? thx
gunchatbridge
@gunchatbridge
[D] Dletta: Not sure there is <@692665586504695848>
[D] Dletta: I don’t remember seeing it core
gunchatbridge
@gunchatbridge
[D] shhdddhr: thanks <@!612728945313316904> , hmm. Does anyone knows where can I find the code for the social network tutorial - here is the link https://www.youtube.com/watch?v=xFR8cx7jB1c?
[D] Dletta: You can look at <@178314946201780224> gists or maybe it’s in example folder
gunchatbridge
@gunchatbridge
[D] marknadal: @clemlak <@!692665586504695848> <@!764899664750968852> <@!438478591978766337> <@!407622013835018251> <@!761440487747878912> <@!403448701529358336> get your Qs answered? I was gone camping with my kids. <@!612728945313316904> is awesome helping meanwhile! <3 @Clément#5266 <@!392331376189505537> <@!712218405960155139> <@!403448701529358336> <@!578301164194627585> WELCOME WELCOME WELCOME!!!
<@!127573853625909249> nice VR demos!!!
<@!438478591978766337> be willing to submit a bug report with a test we can replicate?
<@!728802691232301078> can you take a screenshot for <@!127573853625909249> of which docs page?
https://gun.eco/docs/Content-Addressing
<@!345831006609080320> 👋 how are you doing!? :)
<@!590347867588263939> please share NAT solution! 😄
[D] marknadal: bleh, this is gonna be a stressful next 2 weeks:
  • Need to do investor update.
  • Testing in-production changes.
  • Working on API unit tests.
  • Bunch of legal stuff.
    All of these require immense concentration, and I'm bad at task swapping, so don't expect much from me :(
    <@!491228220520136704> <@!327202141552771072> <@!335604734046109697> things still skating by for your in-prod stuff? Hopefully no new major disasters, hopefully just waiting on my slow butt getting things fixed?
gunchatbridge
@gunchatbridge
[D] fade: <@178314946201780224> not mine! (regarding the cost/weight of listeners), if you (or anyone) has any input ^^, hope your had fun camping!
privateidentity
@privateidentity
the link for the whitepaper on this page is broken https://gun.eco/docs/AXE#whitepaper
Kunai Master
@kunaimaster_gitlab
guys please can anybody explain how much actual is info from here: https://gun.eco/docs/Bounty ?
considering link above points to PDF file containing an info about the deadline, which is outdated for more than a year: https://era.eco/2019/grant.pdf
that's why i'm asking: i am fanatic Node.js dark side ninja, who changes the world every day, to ensure decentralizing it will save our freedom in future, and i got the noticement abt $2k bounty for tests written in my lovely JS.
is this still actual? how much time is needed for Mark to check out my tests and pay $250 if first one will suit him enough?
is there possibility for me to recieve reward in litecoins without of any uncovering finance operations if my test is ok?
how long to wait i have to between test[s] code uploading, and rewarding decision, regarding uploaded test, being done?
Josh Benner
@libreninja
Hi. I'm trying to build a login/signup page in react. I'm getting a gun.user is not a function error. Are there any examples for authorizing users in react?
Josh Benner
@libreninja
import React, { useState } from "react";
import Gun from "gun/gun";
import SEA from "gun/sea";
let gun = Gun();

export default function Login() {
    const [state, setState] = useState({ email: "", password: ""});

    const login = (e) => {
        e.preventDefault();
        let user = gun.user();
        let result = user.auth(state.email, state.password);
    }
    ...
}
Josh Benner
@libreninja
@amark ?
Marek Kapusta
@sigrun_gitlab
Hi there! Got a big favor to ask - I'm building a hybrid app (Capacitor.js/Vue.js/iOS/Android) to help keep the emergency contacts and safety alerts for the in Poland (abortion laws, country leaders calling to defend churches, and so on). The thing needs to be set up fast, really fast, so it'd be great if you could describe me the best architecture for:
  • hybrid mobile app,
  • ACL with three roles,
  • some ephemeric contact data that should disappear as fast as they come,
  • some static content that might as well be public (currently stored in Strapi+PGSQL on Heroku) - that's immutable
  • users must be accepted by already trusted ones to access sensible data.
    Got the general idea of Gun, and it's great, but there's not much free time for me here to dig deeper :( Kudos for any help <3
Mark Nadal
@amark
Oh no! There has been chats here I've missed. I'm so sorry - the gitter<->discord bridge often breaks, so please use http://chat.gun.eco if you can.
@privateidentity thanks for the Wayback Machine link.
@libreninja could you try to use a regular script tag and see if it works? IDK why import wouldn't pull in SEA correctly - somebody else who is more React/ES6 savvy should probably answer (I don't use either).
@sigrun_gitlab maybe @mmalmi 's Iris, which is built on GUN, can help you get started faster?
I won't be available much the next few days - dealing with government stuff of my own, bleh :P :(.
andrizmitnick
@andrizmitnick
exit
Mark Nadal
@amark
@andrizmitnick (?)
Bernard Jiang
@bernardjiang_gitlab
@libreninja, I got user.auth() working in my app. My guess is that the gun in "let user = gun.user();" is not initialized in the anonymous function. It's related to react rather than gun. You can try to move this line to right below "let gun = Gun();", then figure out a way to use "user" in login(), "this.user" is my way to wrap it in a class.
Hi @amark and all, what the replacement for gun.on( 'auth', ack => console.log('Authentication was successful: ', ack)) ?
Bernard Jiang
@bernardjiang_gitlab
I got user.auth(username, password, cb) working. But I don't like the callback hell that is 4 layers deep. I am trying to convert to xstream through a gun.on() that is supposed to be triggered upon successful user Authentication. But no response at all while I can still see callback is working.
Mark Nadal
@amark
@bernardjiang_gitlab thanks for helping :)
you could try wrapping on('auth' with a promise (?)