Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David-Andino/github-dashboard/llms.txt
Use this file to discover all available pages before exploring further.
GitHub API Token Setup
GitHub API tokens authenticate your requests and significantly increase your rate limits from 60 to 5,000 requests per hour.Why You Need a Token
Without authentication, GitHub’s API limits you to:- 60 requests per hour per IP address
- No access to private repository data
- 5,000 requests per hour per user
- Access to your private repositories (if scopes allow)
- Better performance and reliability
GitScope displays a helpful hint in the UI when you’re using the app without a token, along with real-time rate limit tracking in the header.
Creating Your Token
Navigate to GitHub Settings
Go to GitHub → Settings → Personal Access Tokens or click the link directly from the TokenModal in the app.
Configure Token Details
- Note: Enter a descriptive name like
gitscope-apporgithub-dashboard - Expiration: Choose your preferred expiration (30 days, 60 days, 90 days, or custom)
Select Required Scopes
Check these two scopes:
- ✅
public_repo- Access public repositories - ✅
read:user- Read user profile data
These minimal scopes provide read-only access to public data. GitScope does not require write permissions.
Adding Your Token to GitScope
Once you have your token:Paste Your Token
- Paste the token into the input field
- Use the eye icon to toggle visibility if needed
- The input accepts tokens starting with
ghp_
How Token Storage Works
GitScope uses theuseGitHub hook to manage token persistence:
src/hooks/useGitHub.js
Token Flow
- Initialization: Token is loaded from
localStorage.getItem('gh_token')on app mount - Usage: Token is attached to every API request as a Bearer token:
- Persistence: Any token update is immediately saved to localStorage
- Removal: Clearing the token removes it from both state and localStorage
Rate Limit Benefits
The rate limit indicator in the header changes color based on remaining requests:
- 🟢 Green: More than 50% available
- 🟡 Yellow: Between 20% and 50%
- 🔴 Red: Less than 20% remaining
API Consumption Breakdown
Typical GitScope usage per user search:1request for user profile (GET /users/:username)1request per page of repositories (30 repos per page)1request per repository when viewing commits- Up to
12requests for language statistics (parallelized)
Token Security Best Practices
- Store tokens only in
localStorage, never in cookies or URL parameters - Use minimal required scopes
- Set reasonable expiration dates (30-90 days)
- Revoke unused tokens regularly
- Don’t use tokens with write permissions for read-only applications
Removing Your Token
To remove your token from GitScope:- Open the Token Modal (click “Token API” button)
- Click “Eliminar token” at the bottom left
- Confirm by closing the modal
Troubleshooting
Token Not Working
- Verify the token format starts with
ghp_ - Check that required scopes (
public_repo,read:user) are enabled - Ensure the token hasn’t expired
- Try generating a new token
Rate Limit Still Low
- Confirm the token is saved (reload the page and check the modal)
- Check the rate limit indicator shows
5000as the limit (not60) - Verify the token is being sent in request headers (check Network tab in DevTools)
Token Disappeared
- Check if browser data/localStorage was cleared
- Ensure you’re using the same browser and not in incognito mode
- Re-add the token using the steps above
Next Steps
Rate Limits
Learn how GitScope tracks and displays API rate limits
Themes
Customize your visual experience with dark mode