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
19
votes
1 answer

what is the difference between orbitdb (based on IPFS) and gun ?

I'm looking for a decentralized database for my Dapp. I found two helpful solutions orbitdb and gun but I couldn't realize the main difference and which one is more suitable for a social-media-like application that use ethereum smart contract.
maroodb
  • 1,026
  • 2
  • 16
  • 28
17
votes
2 answers

how to store image / video file using gundb?

I know the traditional way is to store image/video file in one place and then just save the reference index into db's table. Now I am learning about gundb, I can store key-value json type data very easily, but since it is decentralized, if I wanna…
Retric
  • 263
  • 2
  • 8
12
votes
1 answer

Specific questions about gunDB as a standalone DB for a Cordova project

I just found out about gunDB and the concept seems very interesting and I'd like to find out more about it before starting to evaluate it further. If I wanted to build a chat app like the tutorial but implement chat rooms. Would there be a way for…
Eric
  • 151
  • 1
  • 5
9
votes
1 answer

GunDB user authentication and data storage among users

I have been following your project for quite some time now and am intrigued by the functionality of gunDB where it doesn't require a database in between and keeps security in check. However, I've got some questions about GunDB which I've been…
Stefan Leever
  • 672
  • 5
  • 10
9
votes
1 answer

How to delete data in gun DB?

I have been developing some things and you know during early prototyping types and tables change quickly... it would be nice to cleanup the old data and start again in certain meshes. For now I was using the example HTTP server so I deleted…
J Decker
  • 537
  • 5
  • 9
8
votes
3 answers

private write and public read in gundb

I want to create a microblog where everyone can read all posts, but just owner can delete or edit the posts. In gundb without sea everyone can edit or delete posts, in sea( gun.user()) I have to share public key, in sea how I get all user's post and…
youfosk
  • 83
  • 4
7
votes
1 answer

GunDB Storage & Superpeer Options

GunDB Basics / Storage + Superpeer Hi folks, I'm on my fourth day of GunDB exploration and while reading the docs and various other tutorials, there's one thing that's uncertain at this point: Storage & whether or not I need a Superpeer? Haven't…
evdama
  • 2,166
  • 1
  • 16
  • 17
6
votes
1 answer

How to isolate a Gunjs database?

I've been trying out GunJs for a couple of days now and I'm really enjoying it. As a starter project I've followed the Fireship chat dapp video aimed at building your own chat. Here's the issue, now that I've finished the tutorial I would like to…
Fredaroo
  • 325
  • 3
  • 14
6
votes
1 answer

How to use a Gun Server as a relay only?

Is there a way to setup the GUN-server as a relay only? In other words, is there a way to ensure data is shared peer-to-peer only? The server only acts a signal (STUN like) server. In the few tests I've done I can't seem to see the data go P2P,…
Jbjet777
  • 61
  • 3
5
votes
1 answer

How Gun Manages Users in A Sometimes-Disconnected P2P Network

Please help me understand how Gun manages users in a sometimes-disconnected P2P network. Let's say there are two Gun instances, I1 and I2, that are configured to be peers, and also let's assume user "doe" did not exist beforehand on either I1 or I2.…
Yasuro
  • 51
  • 2
5
votes
1 answer

Keeping a Gun DB user authenticated during a session

I am trailing the Gun/SEA authentication system for a distributed/serverless application. This app is saving session information to local storage when a Gun user is authenticated. One problem I am having is when the page is refreshed or a new tab is…
Matt Grant
  • 51
  • 4
5
votes
1 answer

Is Gun.js "safe" on the client?

I'm playing with gun.js and I'm loving it so far. Is it's safe to us gun on the client (especially for .put() calls etc.)? If I was building a react+redux app and my gun.put() calls came from thunks for example, is that safe? Or is it better to do…
Alex Price
  • 91
  • 7
5
votes
1 answer

How to get key from GunDb node

I've started using GunDB and I'm really enjoying it. I easily create complicated relationships without many problems associated with relational or document databases. Unfortunately, I am having problems with a seemingly simple problem. I've created…
user12700
  • 63
  • 4
4
votes
1 answer

Is GUN a good option for big data?

I have a data that is more than 1 million records. What kind of performance can I get with GUN? Where can I see benchmark? How much data can GUN store?
Ivan Kalashnik
  • 411
  • 7
  • 12
4
votes
0 answers

How can I restrict data stored on GUN.js browser peers to data they subscribe to ONLY?

I'm new to GUN and it looks very promising for the project I'm working on. One thing I haven't been able to make happen is restricting data on a browser peer to just data that it requests or subscribes to with on(). The following example is my very…
json
  • 41
  • 4
1
2 3
9 10