Skip to content

feat: Export contribution stats as CSV and JSON #997

@bhavyajain0810

Description

@bhavyajain0810

Is your feature request related to a problem? Please describe.

Feature Description:

Currently, CommitPulse generates contribution visualizations and stats, but users do not have an easy way to download their contribution data for offline analysis, sharing, or record keeping.
I would like to add an export option that allows users to download contribution statistics in CSV and JSON formats.

Problem It Solves:

Users may want to:

  • analyze their GitHub contribution data outside the app
  • keep a local record of contribution stats
  • use the data in reports, portfolios, dashboards, or spreadsheets
  • compare contribution progress over time manually

Right now, users can view the generated stats but cannot directly export the underlying data.

Describe the solution you'd like

Proposed Solution:

Add an export feature that can generate downloadable files for the current user’s contribution data.

Suggested implementation:

  • Add export buttons/options for CSV and JSON

  • Export useful fields such as:

    • username
    • total contributions
    • current streak
    • longest streak
    • contribution dates
    • daily contribution counts
    • generated/exported timestamp
  • Use a clean filename format such as:

    • commitpulse-username-stats.csv
    • commitpulse-username-stats.json
  • Handle empty or failed data states gracefully

  • Keep the implementation lightweight without adding unnecessary dependencies

Expected Behavior
When a user views their contribution stats, they should be able to click an export option and download the data in CSV or JSON format.

Benefits
This improves the practical usefulness of CommitPulse by making contribution data reusable outside the website. It also adds value for developers who want to include contribution analytics in resumes, portfolios, reports, or personal dashboards.

Describe alternatives you've considered

  • I considered only showing the data visually on the dashboard, but that does not help users who want to reuse the data in spreadsheets, reports, portfolios, or offline analysis.
  • Another alternative could be copying the stats manually from the page, but that would be time-consuming and error-prone, especially for daily contribution counts.
  • A simple CSV/JSON export option would be more useful, lightweight, and flexible for different use cases.

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions