Mastowall is a social wall application that displays posts from the Mastodon social network based on specified hashtags. It was written entirely by ChatGPT4, guided only by text prompts.
![image](https://private-user-images.githubusercontent.com/3195116/241163423-7060536e-4847-4e38-801e-3c0312b8b194.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4OTExMDQsIm5iZiI6MTcyNDg5MDgwNCwicGF0aCI6Ii8zMTk1MTE2LzI0MTE2MzQyMy03MDYwNTM2ZS00ODQ3LTRlMzgtODAxZS0zYzAzMTJiOGIxOTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjlUMDAyMDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NThiYjQ1YzAyNDFhNTY1MzVkOWEzMWVmNGVmY2E3NzkwN2U0ZTYxYjUzZmM3YzJiMWQ4NWNhZWE4NzA0MWRhMSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.D4qB68Ww-x7GbmrrS_XuUvNxXMkqjqTzVu-XX_vKiVI)
Try it live: Mastowall for the WWDC conference)
Use your own hashtags and server:
![image](https://private-user-images.githubusercontent.com/3195116/241163650-761237da-2166-46c5-8f31-46b9e913f736.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ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N0JlgtQW16LURhdGU9MjAyNDA4MjlUMDAyMDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjlmNWFiZGYyZmQ0YjczN2Q4MTlkZjg1MjQ2OWIxZTViMGExYzdjYzNmNzc2ZDJiNGY5ZjQyYzdjN2NiMWRjMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.fTBnuyOAji_KuqLii9I-khjHumAEGd1yOk2e7ZAABwQ)
-
Display Posts: The app fetches and displays posts from Mastodon based on the hashtags provided in the URL. If no hashtags are provided, it presents a form to enter up to three hashtags.
-
Custom Mastodon Server: Allows users to specify a Mastodon server URL from which to fetch posts.
-
Real-Time Updates: Mastowall updates the posts every 10 seconds, ensuring that the content displayed is always current.
-
Relative Timestamps: The timestamps of the posts are displayed relative to the current time, and are updated every minute to reflect the passing time.
-
Masonry Grid Layout: The posts are displayed in a masonry grid layout for a visually pleasing experience.
-
Responsive Design: The layout adjusts according to the screen size for better readability on different devices.
-
Navbar Hashtag Navigation: Clicking on the hashtags in the navbar takes you to the form screen, allowing you to change the existing hashtags easily.
-
Navbar Color Customization: The color of the navigation bar can now be customized via the
config.json
file. -
Including Replies: By default, replies are excluded from the wall. However, this behavior can be changed by setting includeReplies to true in the
config.json
file.
Mastowall is built using the following technologies:
-
HTML, CSS, and JavaScript: For structuring, styling, and functionality.
-
jQuery: A fast, small, and feature-rich JavaScript library.
-
Masonry: A JavaScript grid layout library.
-
Bootstrap: A popular CSS framework for responsive, mobile-first front-end web development.
-
DOMPurify: Library for sanitizing HTML input, which should prevent the vast majority of malicious input from being rendered
-
Load the application in a web browser. If no hashtags are specified in the URL, you will be presented with a form to enter up to three hashtags and a server URL.
-
After entering your hashtags and clicking 'Reload', the application will fetch and display posts from the specified Mastodon server that include those hashtags.
-
The displayed posts will update every 10 seconds. The relative timestamps will also update every minute.
-
To change the hashtags, click on them in the navbar to go back to the form screen.
Mastowall supports URL parameters to easily share specific hashtag configurations and the Mastodon server. Simply append the desired hashtags and the server URL to the URL following this format: ?hashtags=hashtag1,hashtag2,hashtag3&server=serverUrl
Enjoy using Mastowall!
Mastowall may serve as an example of how artificial intelligence can aid and accelerate the software development process. The development of this version of the app was guided by OpenAI's GPT-4, a large language model.
In this process, the human developer posed problems, asked questions, and described the desired features and functionalities of the application. GPT-4 then provided solutions, answered queries, generated code snippets, and suggested optimal ways to implement these features.
Every single line of code was written by ChatGPT4. Including this README.