A simple API wrapper for WakaTime that provides easy access to generate visual representations and badges for tracking coding stats. This wrapper supports multiple types of charts and badges that allow developers to visualize and display their coding activity data effectively. These APIs are used by Wakawaka GitHub Action, which shows cool charts and badges based on your Wakatime coding activity in your GitHub README. To know more, visit Wakawaka - GitHub.
- Stats: Generate shield badges based on various coding stats.
- Charts: Visualize coding activity data in different chart formats.
The API provides two main types of data endpoints:
- Stats: Simple shield badges based on WakaTime data.
/stats/{endpoint}?username=${wakaUsername}&token=${wakaToken}
- Charts: Complex, visual representations of WakaTime data in different chart formats.
/charts/${statType}?username=${wakaUsername}&range=${range}&chart_type=${chartType}&data_type=${dataType}&token=${wakaToken}
The following stats are supported for charts:
- Categories (e.g., coding, debugging)
- Editors (e.g., VSCode, Sublime)
- Programming Languages (e.g., Python, JavaScript)
- Operating Systems (e.g., Windows, macOS)
- Projects (user-defined projects on WakaTime)
The following chart types are currently available:
- Horizontal Bar Chart
- Vertical Bar Chart
- Pie Chart
- Doughnut Chart
- Nightingale Chart
Check out the Swagger Docs to know more about the API and how to use it. You can also play with this Postman collection to try out the API yourself.
Remember to get your Wakatime Token by visiting this link: aayushgoyal.in - Wakawaka.
This project is licensed under the MIT License - see the LICENSE file for details.
For further questions, feel free to reach out via GitHub Discussions.
Let me know if you want further customization or any additional sections!