The GitHub following tool that does what we're all thinking but too polite to say.
Stop pretending you're not already stalking people's GitHub profiles. Stalk just automates the awkward part.
A Node.js script that automatically manages mutual following relationships on GitHub using the GitHub API, with advanced recursive following capabilities that would make even the most dedicated social media stalker jealous.
Stalk creates perfect mutual following relationships by doing the digital equivalent of sliding into DMs, but for GitHub:
- Following Back: Automatically follows users who follow you but you don't follow back (basic courtesy stalking)
- Unfollowing Non-Followers: Unfollows users you follow who don't follow you back (dignity preservation)
For when you want to take your GitHub social game to the next level:
- Depth-First Stalking: Starting from a target user, follows their followers
- Recursive Stalking: Then follows the followers of those followers, and so on
- Smart Stalking Limits: Configurable depth and per-user limits to prevent API exhaustion
- Anti-Stalking-Loop Protection: Tracks processed users to avoid infinite stalking cycles
Because manually following people is so 2020.
- ๐ Mutual Follow Management: Automatically follow back followers and unfollow non-followers
- ๐ Ambitious Recursive Following: Recursively follow followers of followers using depth-first traversal
- ๐ Safe Dry-Run Mode: Preview your stalking strategy before executing it
- ๐ Secure Authentication: Token-based GitHub API authentication
- ๐ Detailed Analytics: Comprehensive stalking progress reporting and statistics
- โก Rate Limiting Protection: Respects GitHub API limits with intelligent delays
- ๐ก๏ธ Error Handling: Robust error recovery and logging
- ๐ Clear Status Updates: Real-time stalking progress tracking
- ๐ Cycle Detection: Prevents infinite stalking loops
-
Clone your new stalking headquarters:
git clone https://github.com/oluiscabral/stalk.git cd stalk npm install
-
Create environment file:
cp .env.example .env
-
Get GitHub Personal Access Token (Your Stalking License):
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token (classic)"
- Give it a name like "Stalk Token" (be proud of what you're doing)
- Select the
user:follow
scope (required for professional stalking) - Copy the generated token
-
Add token to .env file:
GITHUB_TOKEN=your_github_personal_access_token_here
Preview what Stalk would do without actually following/unfollowing anyone:
npm run dry-run
Execute the mutual follow management:
npm start
For advanced stalkers only
Preview recursive following from a target user:
node main.js --dry-run --ambitious username
# or
node main.js --dry-run -a username
Execute recursive following (use with caution - this is serious stalking):
node main.js --ambitious username
# or
node main.js -a username
Run both mutual follow management AND ambitious recursive stalking:
node main.js --ambitious username # Maximum stalking efficiency
- Authentication: Connects to GitHub API using your stalking credentials
- Intelligence Gathering: Fetches your complete following and followers lists
- Relationship Analysis: Identifies mutual vs non-mutual relationships
- Strategic Following: Follows users who follow you but you don't follow back
- Dignity Cleanup: Unfollows users you follow who don't follow you back
- Standard Operations: First completes mutual follow management
- Target Analysis: Fetches followers of the specified target user
- Depth-First Stalking Traversal: For each follower:
- Follows the user (if not already following)
- Recursively processes their followers (stalking their network)
- Continues up to maximum depth (default: 3 levels of stalking)
- Smart Stalking Limiting:
- Maximum 50 followers processed per user (configurable)
- Cycle detection prevents infinite stalking loops
- Rate limiting prevents API exhaustion
- Dry Run Mode: Test your stalking strategy without making any changes
- Rate Limiting: Respects GitHub API limits with intelligent delays
- Cycle Detection: Prevents infinite stalking loops
- Depth Limiting: Maximum stalking recursion depth (default: 3 levels)
- Per-User Limits: Maximum followers processed per user (default: 50)
- Error Handling: Continues stalking even if individual requests fail
- Progress Tracking: Shows detailed stalking progress and final statistics
- Confirmation Delays: Countdown before starting stalking operations
You can modify these stalking limits in the code:
this.maxDepth = 3; // Maximum stalking recursion depth
this.maxFollowsPerUser = 50; // Maximum followers per stalking target
๐ต๏ธ Stalk - Social Tracking & Auto-Link Kit
๐ Authenticated as: yourusername
๐ Public repos: 25 | Followers: 150 | Following: 200
โ ๏ธ LIVE STALKING MODE - Users will be followed/unfollowed
๐ Stalking Analysis Results:
Following: 200
Followers: 150
Need to follow back: 25
Need to unfollow: 75
๐ Following back users...
[1/25] Following back: user1
โ
Followed: user1
๐ Unfollowing non-followers...
[1/75] Unfollowing: user3
โ
Unfollowed: user3
๐ Final Stalking Results:
โ Successfully followed back: 25
โ Successfully unfollowed: 75
๐ต๏ธ Stalk - Social Tracking & Auto-Link Kit
๐ Authenticated as: yourusername
๐ AMBITIOUS STALKING MODE ENABLED - Will recursively stalk followers of: targetuser
๐ Max stalking depth: 3 levels | Max per target: 50 followers
๐ Starting ambitious recursive stalking...
๐ฏ Primary stalking target: targetuser
๐ฏ Processing targetuser (stalking depth: 0)
๐ Fetching followers of: targetuser (limit: 50)
โ
Found 50 stalking targets for targetuser
[1/50] Following: follower1
โ
Followed: follower1
๐ฏ Processing follower1 (stalking depth: 1)
๐ Fetching followers of: follower1 (limit: 50)
โ
Found 30 stalking targets for follower1
[1/30] Following: subfollower1
โ
Followed: subfollower1
๐ Final Stalking Results:
๐ Ambitious stalking follows: 127
๐ฅ Total stalked users: 45
Your GitHub token needs the user:follow
scope to:
- Read your following/followers lists (basic stalking intel)
- Read other users' followers lists (advanced stalking intel)
- Follow and unfollow users (execute stalking operations)
- GitHub API allows 5,000 requests per hour for authenticated requests
- Standard stalking mode: 1-second delays between operations
- Ambitious stalking mode: 1.5-second delays between operations
- Can safely process ~2,400 stalking operations per hour in ambitious mode
- Keep your
.env
file private and never commit it to version control - The token only needs
user:follow
scope - don't grant unnecessary stalking permissions - You can revoke the token anytime from GitHub settings
- Use ambitious stalking mode carefully - it can follow many users quickly
- Remember: With great stalking power comes great stalking responsibility
- Clean Following Lists: Maintain organized, mutual relationships
- Strategic Network Growth: Intelligently expand your GitHub network
- Social Reciprocity: Ensure you follow back your followers
- Account Management: Keep your GitHub social connections tidy
- Time Saving: Automate tedious manual follow/unfollow tasks
- Safe Operation: Dry-run mode prevents accidental stalking mistakes
- Smart Growth: Recursive following helps discover relevant users
- Honest Branding: We call it what it is - no pretense here
"GitHub token is required" error:
- Make sure you copied
.env.example
to.env
- Verify your stalking token is correctly set in the
.env
file
"Failed to authenticate" error:
- Check that your stalking token is valid and not expired
- Ensure the token has
user:follow
scope
"Ambitious stalking mode requires a target username" error:
- Make sure to provide a username:
--ambitious username
- Check that the target username exists and is public
Rate limiting errors:
- Stalk handles this automatically with delays
- If you hit limits, wait an hour and try again
- Consider reducing
maxFollowsPerUser
for large stalking operations
"Perfect! You have mutual following with everyone" message:
- This means your account already has mutual relationships
- No changes are needed for standard stalking mode
- Ambitious stalking mode will still run if specified
Stalk is designed to be powerful yet safe. If you have suggestions for improvements to our stalking algorithms, please open an issue or submit a pull request.
MIT License - feel free to use Stalk for your GitHub account management and strategic network stalking needs!
If Stalk helped you build your GitHub network (or if you just appreciate the honest branding), give it a star! โญ
--dry-run
first and use responsibly to avoid appearing as spam to other users. Remember: We're all stalking, but let's be classy about it.
๐ต๏ธ Disclaimer: Stalk is a legitimate GitHub automation tool. The "stalking" terminology is used humorously to acknowledge what we're all actually doing when we browse GitHub profiles and follow interesting developers. Use responsibly and respect others' privacy and GitHub's terms of service.