Giter Site home page Giter Site logo

brightid / brightid-explorer Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 4.0 2.75 MB

Enables users to see their own and friends' positions in the BrightID graph

Home Page: https://explorer.brightid.org

HTML 7.83% JavaScript 20.54% CSS 35.00% Python 6.56% SCSS 30.07%

brightid-explorer's Introduction

BrightID graph explorer

https://explorer.brightid.org

BrightID graph explorer enables users to see their own/friends position in BrightID graph.

It is a pure html/js web app without any server side code that uses different APIs to show BrightID graph to users. It uses:

  • the officially hosted brightid graph from https://storage.googleapis.com/brightid-backups/brightid.json to render graph
  • profile service from http://node.brightid.org/profile/ when users share their connection codes to load users brightid, name and profile picture
  • brightid api from http://node.brightid.org/brightid/v4/users/{brightid} to fetch list of connections and groups for the user
  • backup service from https://recovery.brightid.org/backups/{key1}/{key2} to load connections and groups names and photos from encrypted backup data

To avoid CORS related issues, the server that host explorer should use nginx as reverse proxy to access required apis on the same domain that index.html file is hosted. The following section can be added to the server configuration to achieve this.

location /backups/ {
        proxy_pass https://storage.googleapis.com/brightid-backups/;
}

location /storage/ {
        proxy_pass https://recovery.brightid.org/backups/;
}

location /profile/ {
        proxy_pass http://node.brightid.org/profile/;
}

location /api/ {
        proxy_pass http://node.brightid.org/brightid/;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.