---
title: "Static Tweets"
description: "High-performance tweets using Next.js."
url: "https://vercel.com/templates/next.js/static-tweets"
links:
  repository: "https://github.com/lfades/static-tweet"
  demo: "https://static-tweet.vercel.app"
  deploy: "https://vercel.com/new/clone?demo-title=Static+Tweets&demo-description=High-performance+tweets+using+Next.js.&demo-url=https%3A%2F%2Fstatic-tweet.vercel.app&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F1cHcGaX8dItHubXQG5kiPo%2F805a868adf10af010d56ce8b4809bbd7%2FNew_Project__4___1_.png&project-name=Static+Tweets&repository-name=static-tweets&repository-url=https%3A%2F%2Fgithub.com%2Flfades%2Fstatic-tweet&from=templates&skippable-integrations=1"
---

# Static Tweets

High-performance tweets using Next.js.

Completely customizable static tweet for Next.js applications.

## Demo

https://static-tweet.vercel.app/1238918791947522049

## How to use

To have a working copy of this project, run the following command:

```bash
yarn create next-app static-tweet --example https://github.com/lfades/static-tweet/tree/master
```

To have full access to all Twitter elements, like videos and polls, you'll need a Twitter API Token, once you have it, copy the [`.env.local.example`](https://github.com/lfades/static-tweet/tree/main/.env.local.example) file in the root directory to `.env.local` (which will be ignored by Git):

```bash
cp .env.local.example .env.local
```

Then add your API token to `.env.local`, it should look like this:

```bash
TWITTER_API_TOKEN=...
```

For polls, make sure that you have **Tweets and Users** from **Twitter Labs** enabled for your app. It's required to get access to polls metadata.

## Add Static Tweets to Your App

Currently, there's no package to do this, however you're welcome to copy the files and add it to your project!

For an example, take a look at the following blog: [rauchg/blog](https://github.com/rauchg/blog/blob/main/pages/2020/2019-in-review.js)

## Related Templates

### [Nextra: Docs Starter Kit](https://vercel.com/templates/next.js/documentation-starter-kit)

Simple, powerful and flexible markdown-powered docs site. Built with Next.js.

### [Portfolio Starter Kit](https://vercel.com/templates/next.js/portfolio-starter-kit)

Easily create a portfolio with Next.js and Markdown.

### [Next.js Boilerplate](https://vercel.com/templates/next.js/nextjs-boilerplate)

Get started with Next.js and React in seconds.

---

## Additional documentation

The [Vercel Knowledge Base](https://vercel.com/kb) contains guides and answers to common questions about Vercel, including deployment, framework configuration, domains, caching, and troubleshooting.
