README Generator

How to Add Your Latest Tweets to Your GitHub Profile README

Showing your latest tweets on your GitHub profile connects your technical writing and community engagement to your developer identity. For developers who share insights, tutorials, or commentary on Twitter/X, embedding recent tweets signals that you are active in the developer community beyond just writing code. This guide covers using the gautamkrishnar/blog-post-workflow Action with an RSS-to-Twitter bridge, and alternative approaches that work with current API limitations.

Quick Setup Steps

  1. 1

    Step 1: Create an RSS feed URL for your Twitter account using an RSS bridge service (e.g., rsshub.app/twitter/user/YOUR_USERNAME).

  2. 2

    Step 2: Add <!-- TWITTER:START --> and <!-- TWITTER:END --> markers to your README.

  3. 3

    Step 3: Create a GitHub Actions workflow using gautamkrishnar/blog-post-workflow@v1 with your RSS URL.

  4. 4

    Step 4: Set comment_tag_name: TWITTER and max_post_count: 3 in the workflow.

  5. 5

    Step 5: Alternatively, add a static Twitter badge: ![Twitter Follow](https://img.shields.io/twitter/follow/YOUR_USERNAME?style=social) — no Actions required.

What Is the Twitter Latest Widget?

Embedding tweets in a GitHub README updates a designated section with your recent posts from Twitter/X. Like the blog post workflow, it uses a GitHub Action on a daily schedule to fetch your latest content and commit the updated list to your README.

Note: Twitter/X has significantly restricted its public API since 2023. Direct API access now requires a paid developer plan. The most practical workarounds use third-party RSS services that bridge Twitter content to an RSS feed format — allowing the blog-post-workflow Action to fetch your tweets without direct API access. Nitter instances (when available) and RSS.app are common bridges.

How to Set Up Twitter Latest Posts

Using an RSS bridge service:

  1. Create a Twitter RSS feed URL using a service like RSS.app, rsshub.app, or similar. For rsshub: https://rsshub.app/twitter/user/YOUR_TWITTER_USERNAME.
  2. Add comment markers to your README:
## Recent Tweets
<!-- TWITTER:START -->
<!-- TWITTER:END -->
  1. Create .github/workflows/twitter.yml:
name: Latest Twitter Posts
on:
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:
permissions:
  contents: write
jobs:
  update-readme:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: gautamkrishnar/blog-post-workflow@v1
        with:
          feed_list: "https://rsshub.app/twitter/user/YOUR_TWITTER_USERNAME"
          comment_tag_name: TWITTER
          max_post_count: 3
          template: "- $title ($date)"

Replace YOUR_TWITTER_USERNAME with your actual Twitter/X handle.

Troubleshooting Twitter Latest Posts

If the RSS bridge URL returns empty results, the bridge service may be rate-limited or blocking your account. Try an alternative RSS service or test the feed URL directly in an RSS reader to verify it is returning content.

If the workflow runs but the comment markers are not updated, verify that comment_tag_name: TWITTER matches the markers in your README exactly. The tag name (between <!-- and :START -->) must match the YAML value precisely.

Due to the evolving nature of Twitter/X's API policies, any embedded tweet approach may require maintenance over time as bridge services respond to policy changes. The static badge linking approach requires no maintenance and is more long-term reliable.

Frequently Asked Questions

How do I add my latest tweets to my GitHub README?

Use an RSS bridge service to create a feed URL for your Twitter account, then configure the gautamkrishnar/blog-post-workflow Action with your RSS URL and TWITTER comment markers in your README. Add max_post_count: 3 for a compact display. Alternatively, use a Twitter follow badge for a simpler approach that requires no maintenance.

Why are Twitter embeds in GitHub READMEs unreliable?

Twitter/X has restricted API access since 2023, requiring paid plans for direct API integration. RSS bridges that work around this restriction can be rate-limited, blocked, or shut down without notice. For a maintenance-free alternative, use a static Twitter badge or follow button instead.

What is the best way to show my Twitter presence on GitHub?

For most developers, a Twitter badge with the shields.io social style (![Twitter Follow](https://img.shields.io/twitter/follow/YOUR_USERNAME?style=social)) is the most reliable option. It shows your follower count, requires no Actions workflow, and updates automatically without maintenance.

Are there alternatives to Twitter for social presence on GitHub?

Yes. Many developers are more active on Mastodon, LinkedIn, Dev.to, or Discord. Dev.to has reliable RSS feeds that work seamlessly with blog-post-workflow. LinkedIn profile links work well as static badges. Discord server invites are excellent for developer communities targeting technical collaborators.

From Our Blog

Generate Your GitHub Profile README

Generate a GitHub profile README featuring Twitter Latest Tweets with AI

Try It Free — No Sign Up