Skip to content

MoonletLabs/sui-bridge

Repository files navigation

Sui Bridge Analytics

Overview

The Sui Bridge Analytics Dashboard is a web application designed to provide comprehensive analytics on the Sui Bridge ecosystem. It visualizes data related to inflows, outflows, volume, and stocks of bridged assets. The dashboard leverages the open-source Sui Bridge indexer to gather and display data in an intuitive and user-friendly way.

Project URL

Preview Dashboard Analytics

Screenshots

image

image

image

image

image

Getting Started

Prerequisites

  • Node.js 20.x
  • Yarn (v1.22 or later)

Installation

  1. Clone the repository
    git clone https://github.com/MoonletLabs/sui-bridge.git
    cd sui-bridge
  2. Install dependencies
    yarn install

Running the Development Server

Start a local development server on http://localhost:8083:

yarn dev

Building for Production

Create an optimized production build:

yarn build

Run the built app locally:

yarn start

Environment Variables

The API routes require access to a PostgreSQL database. Create a .env file or export the following variables in your shell before running the server:

SUI_BRIDGE_POSTGRES_URL=<database connection string>
SUI_BRIDGE_TESTNET_POSTGRES_URL=<testnet connection string>

These values are read in src/pages/api/secrets.ts.

Contributing

We welcome contributions! Please feel free to submit issues or pull requests.

About

Sui Bridge Analytics

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages