mirror of
https://github.com/logos-storage/das-research.git
synced 2026-01-08 16:13:11 +00:00
2.7 KiB
2.7 KiB
DAS Simulator Visualizer
This web application provides a visualization interface for Data Availability Sampling (DAS) simulation results. It allows you to browse, analyze, and compare simulation runs with different parameters, view detailed graphs, and explore parameter relationships through heatmaps.
Features
- Simulation List: Browse and filter all available simulation runs
- Detailed Graphs: Visualize various metrics from simulation runs:
- Heatmaps: Explore parameter relationships:
- Parameter Exploration: Adjust simulation parameters to see their impact on results
- Statistics: View aggregated statistics across parameter combinations
Architecture
The application consists of two main components:
- Frontend: React-based web UI with Next.js framework
- Backend: FastAPI server that processes and serves simulation data
Running the Application
Prerequisites
- Node.js 18.x or later
- Python 3.9 or later
- DAS Simulator results (XML files in
results/directory)
Backend Setup
- Install Python dependencies:
pip install fastapi uvicorn pydantic
- Start the backend server:
python server.py
The server will start on http://localhost:8000 by default.
Frontend Setup
- Install Node.js dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and navigate to http://localhost:3000
Project Structure
das-simulator-visualizer/
├── app/ # Next.js app components
│ ├── page.tsx # Homepage (simulation list)
│ ├── simulations/[id]/ # Simulation detail pages
│ ├── globals.css # Global styles
│ └── layout.tsx # Layout component
├── components/ # React components
│ ├── graph-viewer.tsx # Graph visualization component
│ ├── heatmap-viewer.tsx # Heatmap visualization component
│ ├── parameter-selector.tsx # Parameter adjustment component
│ ├── simulation-list.tsx # Simulations listing component
│ ├── simulation-metadata.tsx # Simulation details component
│ ├── simulation-provider.tsx # Data provider component
│ ├── statistics-summary.tsx # Statistics visualization component
│ └── ui/ # UI components (buttons, cards, etc.)
├── lib/ # Utility functions and services
│ └── simulation-service.ts # API client for backend communication
├── public/ # Static assets
└── package.json # Node.js package configuration
Deployment
For production deployment:
- Build the frontend:
npm run build