Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MinnDevelopment/fxreddit
Provides improved reddit embeds for services such as Discord.
https://github.com/MinnDevelopment/fxreddit
opengraph reddit unfurl
Last synced: 11 days ago
JSON representation
Provides improved reddit embeds for services such as Discord.
- Host: GitHub
- URL: https://github.com/MinnDevelopment/fxreddit
- Owner: MinnDevelopment
- License: apache-2.0
- Created: 2023-08-21T18:12:59.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-14T11:16:18.000Z (26 days ago)
- Last Synced: 2024-10-16T11:54:57.840Z (24 days ago)
- Topics: opengraph, reddit, unfurl
- Language: TypeScript
- Homepage: https://rxddit.com
- Size: 5.23 MB
- Stars: 129
- Watchers: 2
- Forks: 6
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - MinnDevelopment/fxreddit - Provides improved reddit embeds for services such as Discord. (TypeScript)
README
[image-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/image-post-embed.png
[gallery-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/gallery-post-embed.png
[video-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/video-post-embed.gif
[youtube-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/youtube-post-embed.gif
[article-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/article-post-embed.png
[tweet-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/tweet-post-embed.png
[twitch-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/twitch-post-embed.gif
[poll-post-embed]: https://raw.githubusercontent.com/MinnDevelopment/fxreddit/master/assets/poll-post-embed.png# FixReddit
Provides improved reddit embeds for services such as Discord.
## About
This app is a cloudflare worker service which proxies links for reddit posts and transforms them into [Open Graph](https://ogp.me/) and [Twitter Cards](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/markup) meta data for unfurlers.
The main instance is currently hosted on `rxddit.com` and also works with `old.rxddit.com` and `www.rxddit.com`.
### Disclaimer
This service is provided as a best-effort and has no guarantees for availability. I take no responsibility for the uptime or whether it stops working entirely.
I do not plan on maintaining this actively or accepting further changes through pull requests. If I accept something, that does not imply I'm open for any other additions!
## Example Embeds
This has specialized handling for various types of reddit posts.
The currently supported routes are:
| Route | Example |
|---------------------------------------------|------------------------------------------------------------------------------------------------------------------|
| `/r/:subreddit/comments/:id/:slug/:comment` | https://rxddit.com/r/shittymoviedetails/comments/160onpq/breaking_actor_from_home_alone_2_arrested_today/jxnkq4g |
| `/r/:subreddit/comments/:id/:slug` | https://rxddit.com/r/shittymoviedetails/comments/160onpq/breaking_actor_from_home_alone_2_arrested_today |
| `/r/:subreddit/comments/:id` | https://rxddit.com/r/shittymoviedetails/comments/160onpq |
| `/r/:subreddit/s/:id` | https://rxddit.com/r/MemePiece/s/15w6vzg82W |
| `/:id` | https://rxddit.com/160onpq |Or replacing `/r/` with `/u/` and `/user/` for profile posts.
### Image Posts
An image post is a reddit post with just an uploaded image. This provides the title and image as a large image card.
![image post embed][image-post-embed]
### Gallery Posts
A gallery post is a reddit post with multiple attached images. Since Discord can only show a up to four images for link embeds, the description includes a tag line that indicates the total number of images.
![gallery post embed][gallery-post-embed]
### Video Posts
A video post works exactly like an image post, except for providing a video instead.
![video post embed][video-post-embed]
### YouTube Posts
A YouTube post is a video post that links to a youtube video. The service will instead provide a link to the embed iframe, which can be handled by Discord as a youtube iframe instead. This also includes clips!
![youtube post embed][youtube-post-embed]
### Article Posts
Article posts are simply external links, and sometimes provide a thumbnail.
![article post embed][article-post-embed]
### Tweet Posts
Tweet posts are links to tweets, which might include images or videos and text content.
![tweet post embed][tweet-post-embed]
### Twitch Posts
Twitch posts are links to twitch clips or VODs.
![twitch post embed][twitch-post-embed]
### Poll Posts
Polls including votes (once finished).
![poll embed][poll-post-embed]