{"id":25077792,"url":"https://github.com/biplo12/twitter-commits","last_synced_at":"2026-04-28T20:06:19.353Z","repository":{"id":193030340,"uuid":"687961664","full_name":"Biplo12/twitter-commits","owner":"Biplo12","description":"Automates daily GitHub commit count tweets.","archived":false,"fork":false,"pushed_at":"2023-09-06T16:34:16.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T02:39:06.241Z","etag":null,"topics":["cronjob","github-api","nodejs","tailwid","twitter-api","twitter-bot"],"latest_commit_sha":null,"homepage":"https://twitter.com/Biplo12Commits","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Biplo12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-06T11:18:41.000Z","updated_at":"2023-09-22T08:40:10.000Z","dependencies_parsed_at":"2023-09-06T12:44:19.519Z","dependency_job_id":"fa6bd831-fd48-445c-9af0-8fced01a8ed3","html_url":"https://github.com/Biplo12/twitter-commits","commit_stats":null,"previous_names":["biplo12/twitter-commits"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biplo12%2Ftwitter-commits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biplo12%2Ftwitter-commits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biplo12%2Ftwitter-commits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Biplo12%2Ftwitter-commits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Biplo12","download_url":"https://codeload.github.com/Biplo12/twitter-commits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563379,"owners_count":20797446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cronjob","github-api","nodejs","tailwid","twitter-api","twitter-bot"],"created_at":"2025-02-07T02:38:10.873Z","updated_at":"2026-04-28T20:06:14.323Z","avatar_url":"https://github.com/Biplo12.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter Commit Script Documentation\n\n## Introduction\n\nThe Twitter Commit Script is a Node.js application written in TypeScript that automates the process of tweeting your daily GitHub commits to a Twitter account. It uses the `twitter-api-v2` library to interact with the Twitter API and the `cron` library for scheduling daily tweets.\n\n## Prerequisites\n\nBefore you can use the Twitter Commit Script, you need to have the following prerequisites in place:\n\n1. Node.js and Yarn installed on your computer.\n2. A GitHub token with read access to your repositories.\n3. Twitter developer credentials for the Twitter API:\n   - Twitter Access Token\n   - Twitter Access Token Secret\n   - Twitter API Key\n   - Twitter API Secret\n\n## Getting Started with Yarn\n\nFollow these steps to set up and use the Twitter Commit Script with Yarn:\n\n1. Clone the `twitter-commit` repository from GitHub:\n\n   ```bash\n   git clone https://github.com/your-username/twitter-commit.git\n   ```\n\n2. Change into the project directory:\n\n   ```bash\n   cd twitter-commit\n   ```\n\n3. Install the project dependencies using Yarn:\n\n   ```bash\n   yarn install\n   ```\n\n4. Create a `.env` file in the project root directory based on the provided `env.example`. Fill in your GitHub token and Twitter API credentials:\n\n   ```env\n   GITHUB_TOKEN=your_github_token\n   TWITTER_ACCESS_TOKEN=your_twitter_access_token\n   TWITTER_ACCESS_TOKEN_SECRET=your_twitter_access_token_secret\n   TWITTER_API_KEY=your_twitter_api_key\n   TWITTER_API_SECRET=your_twitter_api_secret\n   ```\n\n5. Configure your GitHub username in the `config.ts` file:\n\n   ```typescript\n   // config.ts\n   export const GITHUB_USERNAME = \"biplo12\"; // Your GitHub username\n   ```\n\n6. Start the script by running the following command with Yarn:\n\n   ```bash\n   yarn start\n   ```\n\n## Scheduling Tweets at 12:00 AM\n\nTo schedule the script to run every day at 12:00 AM, you can update the `CronJob` variable in `index.ts` as follows:\n\n```typescript\n// index.ts\nconst job = new cronJob.CronJob(\"0 0 0 * * *\", tweetCommits);\n```\n\nWith this schedule, the script will execute daily at midnight (12:00 AM) to fetch your GitHub commits for the current day and post them as a tweet to the specified Twitter account.\n\nRemember to keep your computer running at the scheduled time for the script to execute automatically.\n\n## Customization\n\nYou can still customize the script as mentioned in the previous documentation to adjust the content and format of the tweets and explore additional features provided by the `twitter-api-v2` library.\n\n## Troubleshooting\n\nIf you have any questions or encounter any issues while setting up or using the Twitter Commit Script, please refer to the GitHub repository's issue tracker for help or submit your own issue.\n\n## Conclusion\n\nWith the Twitter Commit Script, you can automate the process of tweeting your daily GitHub commits to your Twitter account. This can help you keep track of your coding progress and share it with your followers effortlessly. Happy tweeting!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiplo12%2Ftwitter-commits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiplo12%2Ftwitter-commits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiplo12%2Ftwitter-commits/lists"}