Questions tagged [gundb]

github link: https://github.com/amark/gun

31 questions
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
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
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

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

How far does the Offline-first feature of gunJS go ?

I would like to know how the data is persisted(saved) on the device, does it survive a reboot ? or a restart of the browser ?
Xsmael
  • 3,624
  • 7
  • 44
  • 60
3
votes
0 answers

Tutorial/example on setting up authentication for users and groups

As of today I've fired up the GunDB example setup and must say I am impressed! User authentication However, in order to fully use it for my app I would really like to have an example on how to setup user authentication with certificates. It would be…
Stefan Leever
  • 672
  • 5
  • 10
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
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
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
1
2 3