https://github.com/enichan/feditag
FediTag uses JavaScript to embed a feed of Mastodon posts from one account using a particular hashtag on a website or page.
https://github.com/enichan/feditag
fedi fediverse feed feeds hashtag hashtags mastodon
Last synced: 8 months ago
JSON representation
FediTag uses JavaScript to embed a feed of Mastodon posts from one account using a particular hashtag on a website or page.
- Host: GitHub
- URL: https://github.com/enichan/feditag
- Owner: Enichan
- License: mit
- Created: 2025-10-05T10:06:04.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-05T10:29:03.000Z (8 months ago)
- Last Synced: 2025-10-05T12:15:59.695Z (8 months ago)
- Topics: fedi, fediverse, feed, feeds, hashtag, hashtags, mastodon
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FediTag
FediTag uses JavaScript to embed a feed of Mastodon posts from one account using a particular hashtag on a website or page.
As seen on [enikofox.com/blockgame/](https://enikofox.com/blockgame/).
# Features
- Display up to 40 posts (Mastodon API limit) in a feed
- Posts load on demand, 5 at a time, to reduce load on instances
- Supports images, gifs, video, audio, and "unknown" type media attachments
- Supports polls
- Supports custom emojis
- Lightbox galleries for images (see below)
- Automatic removal of trailing hashtags
# How to use
Download the JavaScript, css, and svg files. Link the JavaScript and css from your page's head element:
```html
```
Add a fedi-tag element to your page:
```html
This feature requires JavaScript to be enabled.
```
If you need to look up the account ID, you can do so via `https://host/api/v1/accounts/lookup?acct=username` on your local instance.
# Lightbox image galleries
I used [SimpleLightbox](https://github.com/dbrekalo/simpleLightbox) (with minor aesthetic tweaks) for lightbox image galleries. If you use it, things will work out of the box. If you don't use it, thumbnails will just link normally to the full-size images. If you want to use a different lightbox solution you'll want to modify the `renderPost` function.