{"repo":"ragibalasad/thanks-for-the-star","free":true,"listed":false,"github":"https://github.com/ragibalasad/thanks-for-the-star","clone":"git clone https://github.com/ragibalasad/thanks-for-the-star.git","description":"Star this repo and get an instant follow back 💖","language":"TypeScript","stars":66,"topics":["automation","github-webhook","nextjs14","serverless-functions"],"license":"BSD-3-Clause","category":"workflow-automation","readme_excerpt":"Automatically follow people who star your repo ✨ Give back with a follow, powered by Next.js & GitHub Webhook Star this repo and get an instant follow back 💖 A Next.js 14 serverless GitHub webhook API to auto-follow users who star your repo — ported from the Python version to Next.js API route with full secret verification and logging. How it works When someone stars this repo, GitHub sends a webhook that triggers this API. It: - Validates the webhook signature - Follows the user by sending a PUT request to https://api.github.com/user/following/{username} with the GitHub token in the Authorization header ( Bearer ). Features - Secure webhook secret validation - Instant follow-back of new stargazers - Simple setup with environment variables - Logs for success and errors Setup You can set this up yourself to automatically follow users who star your repository. 1. Clone or download this repo 2. Rename .env.example to .env.local and fill in your values: - The GitHub token needs the user:follow scope. 3. Deploy on Vercel 4. Add the webhook URL to your GitHub repo settings: - Content type: application/json - Secret: same as GITHUB WEBHOOK SECRET Logs & Debugging Logs are printed in Vercel serverless function console. License BSD-3-Clause license","default_branch":null,"files":null,"tree":[],"storefront":"/r/ragibalasad","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ragibalasad/thanks-for-the-star/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}