# gatsby-plugin-twitter

> Loads the Twitter JavaScript for embedding tweets.

Latest version **5.16.0** (published 2026-01-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gatsby-plugin-twitter
pnpm add gatsby-plugin-twitter
yarn add gatsby-plugin-twitter
bun add gatsby-plugin-twitter
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 5.16.0 |
| Published | 2026-01-26 |
| First published | 2017-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 <26 |
| Dependencies | 1 |
| Unpacked size | 38.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55943 |
| Author | Kyle Mathews |
| Maintainers | pieh, kathmbeck, serhalp-netlify, mlgualtieri-gatsby, fk, tylerbarnes, daniellewgatsby |
| Keywords | gatsby, gatsby-plugin |

## Links

- npm: https://www.npmjs.com/package/gatsby-plugin-twitter
- Repository: https://github.com/gatsbyjs/gatsby
- Homepage: https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-twitter#readme
- Issues: https://github.com/gatsbyjs/gatsby/issues
- npm.io page: https://npm.io/package/gatsby-plugin-twitter

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.20.13

## Recent versions

- 5.16.0 (latest) — 2026-01-26
- 5.17.0-next.0 (next) — 2025-11-27
- 5.17.0-react19.1 (react19) — 2025-11-26
- 5.13.0-alpha-alt-image-cdn.44 (alt-image-cdn) — 2023-11-03
- 5.9.0-image-cdn-configurable.4 (image-cdn-configurable) — 2023-04-11
- 3.15.0 (latest-v3) — 2022-12-07
- 4.25.0 (latest-v4) — 2022-12-07
- 5.0.0-alpha-drupal-proxyurl.14 (drupal-proxyurl) — 2022-11-22
- 4.24.1-alpha-wordpress-image-err.27 (wordpress-image-err) — 2022-11-09
- 4.14.0-alpha-transformer-json.26 (alpha-transformer-json) — 2022-10-12
- 5.0.0-alpha-v5.d20221012t101120.57 (alpha-v5) — 2022-10-12
- 4.25.0-alpha-image-cdn-pathprefix.48 (image-cdn-pathprefix) — 2022-10-07
- 4.23.0-alpha-image-cdn-enc.40 (image-cdn-enc) — 2022-09-16
- 4.23.0-alpha-a5-peer.70 (alpha-a5-peer) — 2022-09-14
- 4.23.0-alpha-preview-gh-api.26 (preview-gh-api) — 2022-09-08
- … 431 more at https://npm.io/package/gatsby-plugin-twitter/versions

## README

# gatsby-plugin-twitter

Loads the Twitter JavaScript for embedding tweets, timelines, share and follow
buttons. Lets you add tweets to markdown and in other places.

## Install

```shell
npm install gatsby-plugin-twitter
```

## Configure

```javascript
// In your gatsby-config.js
plugins: [`gatsby-plugin-twitter`]
```

## How to Use

1. On Twitter, find the tweet you'd like to display.
2. In the top right-hand corner of the tweet, click the caret (∨) and select "Embed tweet".
3. Take the code you're given and copy it into your markdown page.
   > Note: when copying the embed code, copy **only** the blockquote section and not the script.

---
_Source: https://npm.io/package/gatsby-plugin-twitter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
