Mastotags is a web service that helps you find the most popular hashtags for current events, topics, or trending discussions on Mastodon. This tool simplifies the process of discovering which hashtags have the greatest reach for any given topic.
Test it: https://rstockm.github.io/mastotags
- Smart Hashtag Search: Enter any topic, event name, or existing hashtag to discover related tags
- Popularity Analysis: See which hashtags are most frequently used based on real Mastodon data
- Visual Metrics: Clear visual representation of hashtag popularity with color-coded bars
- Integrated with Mastowall: Select up to three hashtags to view associated posts on Mastowall
- No Authentication Required: Works without Mastodon login or API tokens
- URL Parameter Support: Search directly via URL parameters for easy sharing and bookmarking
- Share Search Results: Copy a direct link to your current search results
-
Extended Search Algorithm:
- First-level search based on your query term
- Secondary search analyzing the top related hashtags
- Results aggregation for robust recommendations
-
Data Visualization:
- Linear scaling of popularity bars
- Color-coding by popularity (very popular, moderate, less common)
- Original search term highlighted for reference
-
Mastowall Integration:
- Click any hashtag to view its Mastowall directly
- Select up to three hashtags for combined viewing
- One-click generation of custom Mastowall links
-
URL Features:
- Direct search via URL:
?q=topic
,?search=topic
, or?hashtag=topic
- Dynamic URL updates reflecting your current search without page reloads
- Copy URL button to easily share your search results
- Direct search via URL:
- Frontend: HTML, CSS, JavaScript with Bootstrap 5
- Data Source: Public Mastodon API endpoints from mastodon.social
- No Backend Required: All processing happens in the browser
-
Clone the repository:
git clone https://github.com/rstockm/mastotags.git cd mastotags
-
Start a local server:
# Python 3 python -m http.server 8000 # Or with Node.js npx serve
-
Open in your browser: http://localhost:8000
-
Test URL parameters:
https://rstockm.github.io/mastotags/?q=mastodon https://rstockm.github.io/mastotags/?search=mastowall https://rstockm.github.io/mastotags/?hashtag=apple
The application is designed to be hosted on GitHub Pages or any static file hosting service. No server-side processing is required.
- The service uses only public API endpoints without authentication
- Only public toots are analyzed
- Results are based on the most recent available toots
- Limited to the first 40 toots per search due to API constraints
- URL parameters make sharing specific searches easy and efficient
- Mastowall: Display Mastodon posts with specific hashtags
This project is licensed under the MIT License - see the LICENSE file for details.