
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@tmegit/git-activity-tracer
Advanced tools
Track your development activity across GitHub and GitLab. Fetch commits, pull/merge requests, and code reviews from your authenticated accounts.
Track your development activity across GitHub and GitLab. Fetch commits, pull/merge requests, and code reviews from your authenticated accounts.
# Try it now with npx
npx @tmegit/git-activity-tracer # Fetch current week
First time setup:
export GH_TOKEN=your_token_here (or GITLAB_TOKEN)npx @tmegit/git-activity-tracerInstall globally (optional):
npm install -g @tmegit/git-activity-tracer
git-activity-tracer # Fetch current week
git-activity-tracer 2025-01-01 2025-01-31 # Specific range
# Current week activity
git-activity-tracer
# Specific date range
git-activity-tracer 2025-01-01 2025-01-31
# Export formats
git-activity-tracer --format json
git-activity-tracer --format csv
# All commits from all branches
git-activity-tracer all-commits
# Include URLs in output
git-activity-tracer --with-links
| Variable | Required | Description | Default |
|---|---|---|---|
GH_TOKEN | One of * | GitHub personal access token | - |
GITLAB_TOKEN | One of * | GitLab personal access token | - |
GITLAB_HOST | No | GitLab instance URL (for self-hosted) | https://gitlab.com |
*At least one token (GitHub or GitLab) is required. Both can be used simultaneously.
| Option | Description | Default |
|---|---|---|
<fromdate> | Start date (YYYY-MM-DD) | Monday of current week |
<todate> | End date (YYYY-MM-DD) | Today |
--with-links | Include URLs in console output | false |
--format <format> | Output format: console, json, or csv | console |
config | Display configuration file location | - |
project-id | Manage repository project ID mappings | - |
all-commits | Show all commits from all branches (see below) | - |
Show all commits from all branches (including feature branches):
git-activity-tracer all-commits # Current week
git-activity-tracer all-commits 2025-12-01 2025-12-31 # Date range
git-activity-tracer all-commits --format csv # Export
Difference from default:
Map repositories to project IDs for billing and time tracking:
git-activity-tracer project-id add owner/repository PROJECT-123
git-activity-tracer project-id list
git-activity-tracer project-id remove owner/repository
Project IDs automatically appear in all output formats (console, JSON, CSV).
Configuration file: ~/.git-activity-tracer/config.json (auto-created on first run)
# View configuration location
git-activity-tracer config
Note: Base branch configuration applies only to GitLab. GitHub automatically uses the default branch via the GraphQL API and does not require configuration.
Default branches tracked (GitLab only): main, master, develop, development
To add more branches for GitLab, edit the configuration file:
{
"baseBranches": ["main", "master", "develop", "development", "trunk", "staging"],
"repositoryProjectIds": {
"owner/repository": "PROJECT-123"
}
}
Platform differences:
contributionsCollection API which automatically provides commits from the default branch. The baseBranches configuration is not used.baseBranches to determine which commits to include in reports.all-commits command ignores base branch configuration and returns commits from all branches.export GITLAB_HOST=https://gitlab.your-company.com
export GITLAB_TOKEN=your_token_here
pnpm install # Install dependencies
pnpm start # Run in development
pnpm test # Run tests
pnpm run lint # Lint code
pnpm run format # Format code
pnpm build # Build for distribution
This project uses Conventional Commits for automated versioning:
feat: - New feature (minor bump: 1.0.0 → 1.1.0)fix: - Bug fix (patch bump: 1.0.0 → 1.0.1)feat!: or BREAKING CHANGE: - Breaking change (major bump: 1.0.0 → 2.0.0)docs:, style:, refactor:, perf:, test:, chore: - No version bumpCommits to main trigger automated releases via semantic-release.
Apache-2.0 License © Felix Anhalt
FAQs
Track your development activity across GitHub and GitLab. Fetch commits, pull/merge requests, and code reviews from your authenticated accounts.
We found that @tmegit/git-activity-tracer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.