Questions tagged [gun]

GUN (a.k.a GUNdb, GUNjs) is a real-time, distributed, offline-first, graph database engine.

GUN (Graph. Universe. Node.) is a JavaScript database that is like an Open Source Firebase. If you need help or if you are stuck on a bug, problem, or are confused - just give us a shout by posting your question.

Project site: gundb.io
Source code at: github.com/amark/gun
Chat room: gitter.im/amark/gun

150 questions
3
votes
3 answers

Whats the difference between nomsdb and gundb

As far as I understand those two database seem to follow almost the same principles. Both support offline scenarios, are decentralised and have a flexible datamodel. The only real difference I see is that noms implements some of the ideas from git…
Tim de Putter
  • 281
  • 1
  • 2
  • 10
3
votes
3 answers

Running gunjs with Reactjs and webpack throws Reference Error in console

I am trying to install gun.js and run it inside a Reactjs webpack bundled app var path = require('path'), webpack = require('webpack'); module.exports = { devtool: 'source-map', target: 'node', node: { fs: 'empty' }, …
kristian nissen
  • 2,809
  • 5
  • 44
  • 68
3
votes
1 answer

Confused about keys in gun DB

var stallone = {stallone:{first:'Sylvester',last:'Stallone',gender:'male'}}; var gibson = {gibson:{first:'Mel',last:'Gibson',gender:'male'}}; var movies =…
2
votes
0 answers

Unable to call function from `injectJavascript` in a react native webview

I am experiencing issues regarding using the injectJavascript method to inject and call a function from the WebView component from the library: react-native-web-view. I am doing this to workaround the limitations of GUN.js. Instead of running the…
Alvin CHENG
  • 374
  • 2
  • 16
2
votes
0 answers

How does Gun js connect with peers on a deployed app?

I am new to using Gun js and am currently getting familiar with it. There is a great tutorial on YouTube by fireship: https://www.youtube.com/watch?v=J5x3OMXjgMc About building a simple chat app. My simple/stupid question is that how can a deployed…
Abdul Muiz
  • 21
  • 1
2
votes
1 answer

GunDB SEA let other user write to user space

I need to exchange private data in user space. because gun.grant and gun.trust is deprecated, I followed this example: https://gun.eco/docs/SEA#quickstart
Chito Adinugraha
  • 1,220
  • 2
  • 15
  • 21
2
votes
1 answer

Authentication and authorization with Gun.js the tradicional way with Social logins? Gun.io

How can I set up authentication and authorization layers with Gun.js the tradicional way, for example with social logins with (Google, LinkedIn) or AWS cognito, Auth0,our my own RBAC server?
2
votes
2 answers

How do I protect an express / gun.js server?

How do I protect this gun server? I only want traffic from one domain with many sub-domains. In my use-case, I made a game for my kids on iPad. When they played for the first time - I realized it would be better if some of the game controls could…
Tarek Adam
  • 3,387
  • 3
  • 27
  • 52
2
votes
2 answers

How to upload and download media files using GUNDB?

I'm trying to use GUN to create a File sharing platform. I read the tutorial and API but I couldn't find a general way to upload/download a file. I hear that there is a limitation of 5Mb of localStorage in GUN, if I want to upload a large file, I…
jerryZhang
  • 51
  • 3
2
votes
3 answers

How to put data in gundb at server side as a peer

I thought gun instance in the server was also one of the peers. But when I put data on the server, the peer can't get the data. Here is my simple test code. global.gun.get('servertest').put('yes'); // at server…
huhsame
  • 73
  • 1
  • 9
2
votes
2 answers

How to get peer list from gundb server

I'd like to get peers' data who are connected with gunDB. Although I tried to create and manage my own peer list from wire. But I think if gunDB already has the peer list, using it would be better than mine. So could you please advise how I can get…
huhsame
  • 73
  • 1
  • 9
2
votes
1 answer

Erlang Ranch Websocket Client fails to detect dropped Internet connection

I've written a very standard websocket client using Gun. It works as expected, connects, sends and receives messages, etc. Everything is very normal. However, I discovered that it doesn't detect a broken internet connection. If I unplug the…
Bob Dobbs
  • 43
  • 4
2
votes
1 answer

How to get the decrypt data from other user using GunDB

I gave a try to .secret() and .trust() of gun.user though, there are unexpected results. How could I get the data from other users in order to access control in the application? as well as I need to know how to decrypt data without the error…
huhsame
  • 73
  • 1
  • 9
2
votes
1 answer

Callback of gundb.once is called with errormessage: Error: No ACK received yet

I tried out gundb in node.js. Calling once after calling get two times results in an error. I did the following in the node console: var Gun = require("gun/gun"); var gundb =…
Timbow
  • 23
  • 3
2
votes
1 answer

Password reset recovery in GUN

I look at the SEA API as well as the Gun User Management module, but could not find any provision for recovering or resetting user password. there would be instances where the recall flag would not be set to true. how does one go about this in the…
Ivan Kalashnik
  • 411
  • 7
  • 12
1 2
3
9 10