https://github.com/m1guelpf/twitch-og
Better Twitch embeds for social media sharing
https://github.com/m1guelpf/twitch-og
opengraph twitch twitch-api twitter
Last synced: about 1 year ago
JSON representation
Better Twitch embeds for social media sharing
- Host: GitHub
- URL: https://github.com/m1guelpf/twitch-og
- Owner: m1guelpf
- License: mit
- Created: 2021-04-12T18:08:36.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-12T18:08:51.000Z (about 5 years ago)
- Last Synced: 2025-04-01T05:41:22.798Z (over 1 year ago)
- Topics: opengraph, twitch, twitch-api, twitter
- Language: JavaScript
- Homepage: https://twitch.m1guelpf.me
- Size: 113 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Better Twitch Embeds
This app can act as a proxy for Twitch links to render a better-looking social card on Twitter or Facebook.
## Usage
There's a public instance of this application running at `https://twitch.m1guelpf.me`. The endpoints are as follows:
- `/` just redirects to Twitch
- `/[streamer]` redirects to the streamer's page on click, and displays the card when shared.
- `/images/[streamer]` returns the dyanmically-generated banner (for use on socials).
## Development
- Clone this repo in a local directory
- Install dependencies (`yarn install` or `npm install`)
- Copy `.env.example` to `.env.local` and add your Twitch API keys
- Start the server! (`yarn dev` or `npm run dev`)
# Deployment
You can deploy to [Vercel](https://vercel.com/home) by clicking below:
[](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fm1guelpf%2Ftwitch-og&env=TWITCH_TOKEN,TWITCH_CLIENT&project-name=twitch-og&repo-name=twitch-og)
# License
This project is open-sourced software licensed under the MIT license. See the [License file](LICENSE.md) for more information.