A beautiful, responsive web application that showcases your LeetCode statistics in a clean, card-based interface - perfect for your portfolio or GitHub README. Similar to GitHub Stats Viewer, this project allows you to display your coding journey and problem-solving skills through your LeetCode achievements.
This project is designed to help developers:
- Showcase their coding skills and problem-solving abilities
- Display their LeetCode progress and rankings in a visually appealing way
- Add a professional touch to their portfolio or GitHub profile
- Track their coding interview preparation progress
- Share their achievements with potential employers or the developer community
- Beautiful Stats Card: Clean, modern UI with dark theme that looks great in any portfolio
- Fully Responsive: Looks perfect on both desktop and mobile devices
- Export Options: Download your stats as high-quality PNG or SVG for easy sharing
- Real-time Data: Fetches the latest stats directly from LeetCode's API
- Easy Integration: Simple to add to your portfolio, GitHub README, or personal website
- Customizable: Easily modify the design to match your portfolio's theme
- Node.js (v14 or later)
- npm or yarn
- LeetCode account (to view your stats)
-
Clone the repository:
git clone https://github.com/etharrra/leetcode-stats.git cd leetcode-stats -
Install dependencies:
# Using npm npm install # Or using yarn yarn install
-
Start the development server:
# Using npm npm start # Or using yarn yarn start
The app will be available at
http://localhost:3000
- Export your stats card as PNG or SVG from the app
- Add the image to your portfolio website or GitHub README
- For GitHub README, you can use:
## My LeetCode Progress 
You can easily customize the stats card by modifying the App.js file. The app uses Material-UI for styling, making it simple to adjust colors, layout, and content to match your personal brand.
Contributions are welcome! Feel free to open an issue or submit a pull request with your improvements.
- Enter a LeetCode username in the input field
- Click "Show Result" to fetch and display the user's stats
- Use the export buttons to download the stats card as PNG or SVG
In the project directory, you can run:
npm startoryarn start- Runs the app in development modenpm testoryarn test- Launches the test runnernpm run buildoryarn build- Builds the app for production
- React
- Material-UI (MUI)
- html-to-image (for exporting)
- Axios (for API requests)
leetcode-stats/
├── public/ # Static files
├── src/
│ ├── App.js # Main application component
│ ├── index.js # Application entry point
│ └── styles/ # Global styles
├── .gitignore
├── package.json
└── README.md
This project is licensed under the MIT License - see the LICENSE file for details.
- go-leetcode-api - Custom Go wrapper for LeetCode API used in this project
- LeetCode for the API
- Material-UI for the UI components
- React for the frontend framework
- html-to-image for the export functionality