The GitHub User Activity CLI is an intuitive command-line tool crafted to fetch and elegantly display a GitHub user's recent activity. This tool transforms the conventional output into a visually engaging experience with colorized text and stylized ASCII art headers, making it not only more user-friendly but also visually appealing.
This project is inspired by GitHub User Activity, an idea from roadmap.sh Backend Projects lists. Roadmap.sh is a community-driven platform that offers curated learning paths and project ideas to help developers master various technology roles. This CLI tool brings the concept to life by fetching and displaying a GitHub user's recent activity in a visually engaging and user-friendly manner.
Whether you're a developer seeking to monitor your own project updates or a team lead needing to oversee your team's GitHub activities, this CLI tool offers a streamlined and enriched viewing experience, promoting greater productivity and insight into development workflows.
- Fetches and displays user activity from GitHub using their username.
- Colorizes output for enhanced readability.
- Displays ASCII art headers for a visually engaging experience.
Ensure you have Node.js installed on your machine. You can download it from Node.js official website.
- Clone the Repository
git clone https://github.com/chrystalio/github-user-activity cd github-user-activity
- Install Dependencies
npm install
- Running the Tool Execute the script by running:
npm run start
Follow the prompts to enter a GitHub username and choose an event type to filter by. The tool will then fetch and display the user's recent activity.
Here's an example of the tool in action:
Enter GitHub Username: chrystalio
Fetching activity for chrystalio...
Select the event type to filter by:
1. PushEvent
2. PullRequestEvent
3. CreateEvent
4. WatchEvent
5. DeleteEvent
6. IssueCommentEvent
7. All
Enter the number corresponding to the event type: 1
Activity Summary:
- Pushed 9 commits in chrystalio/github-user-activity
- Deleted 2 events in chrystalio/github-user-activity
- Opened 4 pull requests in chrystalio/github-user-activity
- Commented on 2 issues in chrystalio/github-user-activity
- Created 4 events in chrystalio/github-user-activity
- Starred in chrystalio/github-user-activity
- Pushed 1 commit in chrystalio/KapanLibur
- Starred in sqlmapproject/sqlmap
- Starred in hacksider/Deep-Live-Cam
- Pushed 1 commit in chrystalio/chrystalio
- Starred in Anamcoollzz/laravel-11-template
- Starred in kevintherm/image-roaster
- Pushed 2 commits in chrystalio/BudgetBuddy
The tool will then display the activity for the specified user, filtered by the selected event type, with the output styled with color and ASCII art.
Contributions to enhance the GitHub User Activity CLI are welcome. Please ensure to update tests as appropriate.
This project is made possible with the help of the following libraries and resources:
- chalk - For adding color to the command line output, enhancing readability and user experience.
- figlet - Used to generate ASCII art from text, making the CLI output visually appealing.
- Node.js - The runtime environment that powers the backend of this CLI tool.
- roadmap.sh - Inspired by project ideas from this community-driven platform, which offers learning paths and guides in various tech domains.
Special thanks to all the developers and contributors of these tools for making them available and maintaining them, enabling us to build more efficient and appealing software solutions.