A simple script that extracts your GitHub profile and repository data for resume building.
- Fetches your GitHub user profile information
- Retrieves all your public repositories (excluding forks)
- Calculates repository statistics (languages, stars, forks, etc.)
- Saves everything to a structured JSON file
- Node.js installed
- GitHub Personal Access Token
- Clone or download this repository
- Install dependencies:
npm install
- Create a
.env
file in the project root with your GitHub token:GITHUB_TOKEN=your_github_token_here
-
Modify the config section in the script if you want to change:
- Your GitHub username
- The output file name
-
Run the script:
npm start
-
Find your data in the generated JSON file (default:
github_resume_data.json
)
The script generates a JSON file with the following structure:
{
"user": {
"username": "YourUsername",
"name": "Your Name",
"bio": "Your bio",
...
},
"repositories": [
{
"name": "repo-name",
"description": "Repository description",
"language": "JavaScript",
"stars": 5,
...
},
...
],
"statistics": {
"totalRepos": 10,
"languageCounts": {
"JavaScript": 5,
"Python": 3,
...
},
...
}
}