Skip to content

JayWebtech/starknet-explorer-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Starknet Explorer

A beautiful, modern transaction explorer for Starknet that visualizes wallet transactions with stunning UI/UX. Built with Next.js, D3.js, and powered by CoinStats API.

Starknet Explorer Next.js TypeScript Tailwind CSS

โœจ Features

  • ๐ŸŽจ Beautiful Modern UI - Stunning gradient designs and smooth animations
  • ๐Ÿ“Š Real-time Starknet Stats - Live price, market cap, and performance data
  • ๐Ÿ” Interactive Transaction Graph - Visualize wallet transactions with D3.js
  • ๐ŸŽฎ Fun Loading Experience - "Catch Me If You Can" game during syncing
  • ๐Ÿ“ฑ Responsive Design - Works perfectly on all devices
  • ๐Ÿ”„ Smart Polling - Automatic wallet sync with status checking
  • ๐Ÿ“‹ Advanced Filtering - Filter by date, transaction hash, and more
  • ๐Ÿ“„ Pagination - Navigate through large transaction histories
  • ๐ŸŽฏ Direct Explorer Links - Click transactions to view on Starkscan

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm, yarn, pnpm, or bun

Installation

  1. Clone the repository

    git clone <repository-url>
    cd starknet-explorer-graph
  2. Install dependencies

    npm install
  3. Start the development server

    npm run dev
  4. Open your browser Navigate to http://localhost:3000

๐ŸŽฏ How It Works

1. Starknet Stats Display

  • Fetches real-time data from CoinStats API
  • Shows current price, market cap, volume, and price changes
  • Beautiful gradient cards with live updates

2. Wallet Search & Sync

  • Enter any valid Starknet wallet address
  • Automatic wallet sync with CoinStats API
  • Smart polling to check sync status
  • Fun "Catch Me If You Can" game during syncing

3. Transaction Visualization

  • Interactive D3.js graph showing transaction relationships
  • Zoom, pan, and click interactions
  • Color-coded nodes for different transaction types
  • Direct links to Starkscan explorer

4. Transaction List

  • Detailed transaction history with filtering
  • Pagination for large datasets
  • Profit/loss calculations and fee information
  • Advanced filtering by date range and transaction hash

๐Ÿ› ๏ธ Technology Stack

  • Frontend: Next.js 15, React 19, TypeScript
  • Styling: Tailwind CSS 4, Custom animations
  • Visualization: D3.js 7
  • API: CoinStats API for Starknet data
  • Deployment: Vercel-ready

๐Ÿ“Š API Integration

The app uses CoinStats API for comprehensive Starknet data:

  • Starknet Stats: /coins/starknet
  • Wallet Sync: /wallet/transactions (PATCH)
  • Sync Status: /wallet/status
  • Transactions: /wallet/transactions (GET)

๐ŸŽจ Design Features

  • Glass Morphism: Beautiful backdrop blur effects
  • Gradient Backgrounds: Purple to blue gradients throughout
  • Smooth Animations: CSS transitions and hover effects
  • Responsive Grid: Adaptive layouts for all screen sizes
  • Interactive Elements: Hover states and click animations

๐ŸŽฎ Interactive Elements

Catch Me If You Can Game

  • Appears during wallet syncing
  • Moving target that evades mouse cursor
  • Funny quotes that change every 3 seconds
  • Score tracking and pause/resume functionality

Transaction Graph

  • Hierarchical tree visualization
  • Zoom and pan controls
  • Click nodes to open in Starkscan
  • Color-coded by transaction type

๐Ÿ“ฑ Responsive Design

  • Desktop: Full 3-column layout with stats, search, and content
  • Tablet: Adaptive 2-column layout
  • Mobile: Single column with optimized spacing
  • Touch-friendly: Large touch targets and gestures

๐Ÿ”ง Development

Project Structure

src/
โ”œโ”€โ”€ app/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ StarknetStats.tsx      # Real-time stats display
โ”‚   โ”‚   โ”œโ”€โ”€ WalletSearch.tsx       # Address input and validation
โ”‚   โ”‚   โ”œโ”€โ”€ CatchMeGame.tsx        # Interactive loading game
โ”‚   โ”‚   โ”œโ”€โ”€ TransactionGraph.tsx   # D3.js visualization
โ”‚   โ”‚   โ””โ”€โ”€ TransactionList.tsx    # Transaction history table
โ”‚   โ”œโ”€โ”€ lib/
โ”‚   โ”‚   โ””โ”€โ”€ api.ts                 # CoinStats API service
โ”‚   โ”œโ”€โ”€ globals.css                # Global styles and animations
โ”‚   โ”œโ”€โ”€ layout.tsx                 # Root layout
โ”‚   โ””โ”€โ”€ page.tsx                   # Main application page

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

๐ŸŒŸ Key Features Explained

Real-time Data

  • Live Starknet price and market data
  • Automatic refresh and error handling
  • Beautiful number formatting and animations

Smart Syncing

  • Automatic wallet sync initiation
  • Status polling with timeout handling
  • User engagement during sync process

Interactive Graph

  • Hierarchical tree layout
  • Zoom controls and mouse interactions
  • Click-to-explore functionality
  • Responsive SVG rendering

Advanced Filtering

  • Date range selection
  • Transaction hash search
  • Real-time filter application
  • Clear filters functionality

Made with โค๏ธ for the Starknet community

About

A beautiful, modern transaction explorer for Starknet that visualizes wallet transactions with stunning UI/UX. Built with Next.js, D3.js, and powered by CoinStats API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors