Nuanced Pterodactyl Monk


    0.2.1 • Public • Published


    Embed components for your Astro sites built by the Astro community 🚀


    npm i astro-embed

    Note Using the <Tweet /> component? add a SECRET_TWITTER_TOKEN environment variable with your Twitter API bearer token. Learn more in the component docs →

    Using the components

    .astro files

    To use components in your .astro files, first import them in the component script.

    import { Tweet, Vimeo, YouTube } from 'astro-embed';
    <Tweet id="" />
    <Vimeo id="" />
    <YouTube id="" />

    Markdown pages

    You can also import an embed component for use on a Markdown page.

    setup: |
      import { Tweet, Vimeo, YouTube } from 'astro-embed';
    Hey look! I can embed a tweet _in Markdown_!
    <Tweet id="" />
    Vimeo and YouTube videos work too :-)
    <Vimeo id="" />
    <YouTube id="" />

    Warning: This requires the legacy.astroFlavoredMarkdown flag to be turned on in your astro.config.mjs file.

    Using the integration

    You can use the provided integration to automatically convert standalone URLs in Markdown files to embed components.

    To enable the integration, add it to the integrations array in your astro.config.mjs file and enable the legacy.astroFlavoredMarkdown flag to support components in Markdown files.

    import { defineConfig } from 'astro/config';
    import embeds from 'astro-embed/integration';
    export default defineConfig({
      integrations: [embeds()],
      legacy: {
        astroFlavoredMarkdown: true,

    With the integration enabled any isolated URL in a Markdown file that matches one of the astro-embed component types will be converted to the appropriate component.

    For example, Markdown like this

    I saw this cool Tweet the other day:

    Will render the Tweet component in place of the URL.


    See individual packages for how to use the component for each service:


    npm i astro-embed

    DownloadsWeekly Downloads






    Unpacked Size

    4.13 kB

    Total Files


    Last publish


    • sarah11918
    • afuzzybear
    • rafidmuhymin
    • princesseuh
    • lostra01
    • delucis