Static Twitter embeds for Astro • GitHub

The First Tweet Ever

This tweet was statically generated at build time. No client-side JavaScript. No Twitter widgets.js. Works with ad blockers.

How it works

Just add to your astro.config.mjs:

import twitterEmbed from 'astro-twitter-embed';

export default defineConfig({
  integrations: [twitterEmbed()]
})

Then in any markdown file:

{% twitter https://twitter.com/jack/status/20 %}

That’s it. No MDX. No component imports. Just clean markdown.