The Giveth Analytics Dashboard is a web application that provides data visualization and analytics capabilities for the Giveth ecosystem. It helps track and analyze various metrics and data points related to Giveth's operations and impact.
- Interactive data visualizations using Highcharts
- Date-based filtering and analysis
- Responsive design with styled-components
- Integration with Giveth's UI design system
- Real-time data updates
- Web3 integration using Viem
- Development: https://staging.stats.giveth.io/
- Production: https://stats.giveth.io/
graph TD
A[Client Browser] --> B[Next.js Frontend]
B --> C[API Layer]
C --> D[Data Sources]
B --> E[Web3/Viem]
- Frontend Framework: Next.js 13
- UI Library: React 18
- Styling: Styled Components, Giveth UI Design System
- Charts: Highcharts
- Web3: Viem
- Language: TypeScript
- Development Tools: ESLint, Prettier
All Giveth platform statistics (the Donations, Projects and Donation Box tabs) are read from giveth-v6-core over GraphQL (CORE_BACKEND_LINK in src/configuration.ts). NEXT_PUBLIC_ENV selects the instance:
- unset (production):
https://core.v6.giveth.io development:https://core.v6-staging.giveth.iolocal: a local giveth-v6-core onhttp://localhost:4000
The dashboard no longer calls the legacy v5 backend (impact-graph). Recurring donation statistics were served only by that backend and have been removed.
Staging caveat: on staging (NEXT_PUBLIC_ENV=development) the figures are not comparable with production. v6 staging does not import v5 projects or Endaoment membership, so the Projects tab reflects only staging's own projects and "endaoment projects only" is always empty.
The tabs marked "(legacy)" use independent services: Multisig reads the SIWE auth microservice, and Verification reads DeVouch and resolves ENS names over a public Ethereum RPC.
- User interacts with the dashboard interface
- Next.js handles client-side routing and data fetching
- Data is processed and visualized using Highcharts
- Web3 interactions are managed through Viem
- UI updates are reflected using React's state management
- Node.js (v16 or higher recommended)
- Yarn package manager
- Git
- Web3 wallet (for blockchain interactions)
- Clone the repository:
git clone [repository-url]
cd analytics-dashboard- Install dependencies:
yarn install- Set up environment variables:
Create a
.env.localfile with necessary environment variables (if required)
- The project uses Next.js configuration in
next.config.js - Styling is configured with styled-components
- ESLint and Prettier are configured for code quality
Development mode:
yarn devProduction build:
yarn build
yarn start- Code Linting:
yarn lint - Fix Linting Issues:
yarn lint:fix
- Development: Local development environment
- [Add staging/production environment details once available]
- Ensure all dependencies are installed:
yarn install- Build the application:
yarn build- Start the production server:
yarn start[Add CI/CD details once implemented]
-
Build Errors
- Ensure all dependencies are installed
- Check Node.js version compatibility
- Verify environment variables are set correctly
-
Styling Issues
- Check styled-components configuration
- Verify UI Design System version compatibility
- Use browser developer tools for frontend debugging
- Check Next.js build output for deployment issues
- Enable React Developer Tools for component debugging
UNLICENSED
- Ramin Ramazanpour