Dockerified fork of fxtwitter | Fix broken Twitter/X embeds! Use multiple images, videos, polls, translations and more on Discord, Telegram and others
Find a file
2022-07-14 18:35:08 -04:00
.github/workflows Initial commit 2022-07-13 19:59:00 -04:00
src Fixed escaping of tweet in meta tags 2022-07-14 18:35:08 -04:00
.gitattributes Initial commit 2022-07-13 19:59:00 -04:00
.gitignore Initial commit 2022-07-13 19:59:00 -04:00
.prettierignore Initial commit 2022-07-13 19:59:00 -04:00
.prettierrc Ran Prettier again 2022-07-14 13:51:59 -04:00
LICENSE.md Initial commit 2022-07-13 19:59:00 -04:00
package-lock.json Update wrangler 2022-07-14 13:27:47 -04:00
package.json Update wrangler 2022-07-14 13:27:47 -04:00
README.md Update README.md 2022-07-14 18:21:57 -04:00
renovate.json Initial commit 2022-07-13 19:59:00 -04:00
tsconfig.json Initial commit 2022-07-13 19:59:00 -04:00
webpack.config.js Ran Prettier again 2022-07-14 13:51:59 -04:00
wrangler.example.toml Update wrangler 2022-07-14 13:27:47 -04:00

pxTwitter

Webpack

A TwitFix-like solution written in TypeScript for Cloudflare Workers.

Embed videos, polls, and more on Discord, Telegram, and more!

Just add px before twitter.com.

https://cdn.discordapp.com/attachments/165560751363325952/997265440868946032/pxtwitter.png

Embed Videos

Embed Polls

Embed Quote tweets (Including their media, if it doesn't conflict with the linked tweet)

Replace embedded t.co links with originals

Creates media/profile picture color-matching theme-color (looks great on Discord!)

Private, we don't save tweets or their media

Licensed under the permissive MIT license. Feel free to send a pull request!

Things to tackle in the future

  • Embed profiles! (and maybe more from Twitter?)
  • Combining multiple images together (would be outside CF Worker)
  • Caching responses (I haven't done this yet as this is still being actively worked on!)
  • Caching guest token (So we don't have to bother Twitter for one on every request)

Bugs or issues?

Feel free to open an issue, or ping me on Twitter and I'll see what I can do.