/ai3-info

Simple website giving current network details on Autonomys Network Blockchain

Primary LanguageTypeScriptMIT LicenseMIT

AI3 Info - Autonomys Network Explorer

Vercel Deploy

🌐 Live Demo: https://www.ai3.info

A modern web application that provides real-time insights into the Autonomys Network through an interactive 3D interface. Built with Next.js, React Three Fiber, and powered by the Auto SDK.

Overview

AI3 Info is a network explorer and visualization tool that allows users to:

  • View real-time network statistics across different Autonomys networks (Mainnet, Taurus, Gemini 3H)
  • Explore network status in an engaging 3D environment with interactive visualizations
  • Monitor space pledged on the Autonomys Network through immersive 3D representations
  • Track consensus metrics and network health with dynamic visual feedback

Built With

Features

  • Multi-Network Support: Switch between different Autonomys networks (Mainnet, Testnet-Taurus, Testnet-Gemini 3H)
  • Real-Time Updates: Live network statistics and metrics
  • Interactive 3D Visualization:
    • Immersive exploration of network data
    • Dynamic camera controls and animations
    • Responsive 3D elements that react to network changes
    • Custom shaders and effects for enhanced visuals
  • Responsive Design: Optimized for both desktop and mobile devices
  • Auto SDK Integration: Direct connection to Autonomys Network functionality

Getting Started

Prerequisites

  • Node.js 18+
  • Deno 2
  • Yarn or npm
  • WebGL-compatible browser

Installation

  1. Clone the repository:
git clone https://github.com/marc-aurele-besner/ai3-info.git
cd ai3-info
  1. Install dependencies:
deno install
# or
yarn install
# or
npm install
  1. Start the development server:
deno task dev

yarn dev
# or
npm run dev

Visit http://localhost:3000 to see the application.

Technology Stack Details

React Three Fiber Integration

The project uses React Three Fiber for declarative 3D rendering:

import { Canvas } from "@react-three/fiber";
import { OrbitControls, Environment } from "@react-three/drei";

function Scene() {
  return (
    <Canvas>
      <OrbitControls />
      <Environment preset="city" />
      <NetworkVisualization />
    </Canvas>
  );
}

Drei Helpers

We utilize various Drei helpers for enhanced 3D functionality:

  • OrbitControls for camera manipulation
  • Text3D for 3D text rendering
  • Environment for scene lighting
  • Effects for post-processing
  • Custom materials and shaders

Auto SDK Integration

This project uses the @autonomys/auto-sdk for blockchain interactions:

import { activateWallet } from "@autonomys/auto-utils";
import { spacePledged } from "@autonomys/auto-consensus";

const networkStats = async () => {
  const { api } = await activateWallet({
    networkId: "mainnet",
  });
  // Fetch network statistics
  const spacePledged = await spacePledged(api);
  console.log(spacePledged);
};

Project Structure

ai3-info/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/          # Next.js pages and routing
β”‚   β”œβ”€β”€ components/   # React components
β”‚   β”‚   β”œβ”€β”€ 3d/      # Three.js/R3F components
β”‚   β”‚   β”œβ”€β”€ ui/      # User interface components
β”‚   β”‚   └── network/ # Network-related components
β”‚   β”œβ”€β”€ utils/        # Utility functions
β”‚   └── styles/       # Global styles and Tailwind
β”œβ”€β”€ public/           # Static assets
β”‚   β”œβ”€β”€ models/      # 3D models and textures
β”‚   └── images/      # Images and icons
└── ...config files

Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.

Deployment

This project is deployed on Vercel and can be accessed at ai3.info.

For manual deployment:

yarn build
yarn start

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Links