Local Desktop Gun Relay (Windows, Linux, MAC) - amark/gun GitHub Wiki

A Gun Relay Server executable for Desktop

https://github.com/worldpeaceenginelabs/ELECTRON-GUN

SETUP

  • npm install
  • add your peers in server.js
  • npm exec electron-packager . (the dot means "in the actual folder", without further arguments electron-packager compiles for the actual OS you are using to compile)

CHECK IF IT WORKS

image image

Use cases

Decentralized Subscription Service (decentralized database/storage server)

Repository with tutorial: https://github.com/worldpeaceenginelabs/FORM-GUN

You can use it to collect data 24/7 with your desktop relay from a subscribe form, or customer/user chat, or whichever datasource, which is on your static website on a CDN.
Without the need for any DynDNS service or centralized back-ends! Without the need to stay 24/7 online with your desktop!

!!!Heroku becomes unnecessary or fallback if you use Decentralized-STUN-Service. But this concept is for showing how to decentralize your back-end with gun for something simple like <input>!!!

image

Decentralized STUN Service (decentralized database/storage server with STUN)

Run your own IP Lookup server (or multiple) if you like https://github.com/mpolden/echoip
A simple service for looking up your IP address. This is the code that powers https://ifconfig.co/

Gun + Public IP Version image

Gun + Public IP + Decentralized File Version image

Decentralized CDN Service

Peer-CDN https://rafallorenz.com/peer-cdn/docs/installation.html
Serve your website/apps build files from your gun nodes and peers.
The source-code of your website/app in this example comes from the desktop relay, but can come from anywhere you like.

image

Gun emailserver

A Gun based email server on your desktop. by by classic email provider! (take a look on Cloudflare Email Routing https://developers.cloudflare.com/email-routing/ to improve further)

Make your desktop gun server available from the outside (centralized way, for fallback or scaling eventually)

https://www.noip.com/integrate/request (free user account neccessary)

Contribute

feel free to add more use cases...

⚠️ **GitHub.com Fallback** ⚠️