A modern, interactive dashboard for tracking and visualizing Taiko grant distributions. This application provides a comprehensive view of grant allocations across different verticals, with detailed transaction information and visual analytics.
- Interactive Data Table: View and filter grant transactions with detailed information
- Vertical Filtering: Filter grants by vertical (DeFi, GameFi, Infra, etc.)
- Pie Chart Visualization: Visual representation of grant distribution across verticals
- Transaction Details: View detailed information about each grant transaction
- Responsive Design: Works seamlessly on desktop and mobile devices
- Framework: Next.js (React)
- Styling: Tailwind CSS
- State Management: Zustand
- Data Fetching: tRPC
- Database: Prisma with Vercel Postgres
- Charts: Recharts
- CSV Parsing: csvtojson
- Node.js 18+ or Bun
- npm, yarn, or pnpm
-
Clone the repository:
git clone https://github.com/swarna1101/grant-dashboard.git cd grant-dashboard -
Install dependencies:
npm install # or yarn install # or pnpm install
-
Set up environment variables:
- Copy
.env.exampleto.env - Update the variables with your values:
NEXT_PUBLIC_DATA_URL=your_gist_url_here
- Copy
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev
-
Open http://localhost:3000 in your browser to see the application.
src/app: Next.js app router pagessrc/components: Reusable UI componentsdatatable.tsx: Main data table componenttaikopiechart.tsx: Pie chart visualizationproject-details.modal.tsx: Modal for detailed project information
src/hooks: Custom React hooksuseData.ts: Hook for fetching and processing grant data
src/store: Zustand store for state managementsrc/server: Backend API routes and database accesssrc/utils.ts: Utility functions
The dashboard pulls data from a CSV file hosted on GitHub Gist. The CSV contains the following columns:
- Date
- Tx Remarks
- Receiver
- Sender
- Amount In (USDT/USDC)
- Amount In (TAIKO)
- Amount Out (USDT/USDC)
- Amount Out (TAIKO)
- Supporting Documents
- Vertical
- Tx Hash
- Special Remarks
This project is configured for deployment on Vercel:
- Push your code to GitHub
- Import the repository in Vercel
- Set the environment variables in the Vercel dashboard
- Deploy
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
