An open API service indexing awesome lists of open source software.

https://github.com/thatsinewave/uselessfacts

simple web application that fetches and displays random useless facts from an API. Click the button to get a new fact every time!
https://github.com/thatsinewave/uselessfacts

api good-first-contribution good-first-issue good-first-pr good-first-pr-first-contribution good-first-project good-first-prs html-css html-css-javascript html-css-js thatsinewave useless useless-facts useless-machine useless-things useless-web useless-websites web-application webapp website

Last synced: about 2 months ago
JSON representation

simple web application that fetches and displays random useless facts from an API. Click the button to get a new fact every time!

Awesome Lists containing this project

README

        

# [UselessFacts](https://thatsinewave.github.io/UselessFacts/)

A simple web application that fetches and displays random useless facts from an API. Click the button to get a new fact every time!

![UselessFacts](https://github.com/user-attachments/assets/b3d859fe-2f04-4ec6-b9d9-1f53b8d9ba6d)

## Features
- Displays a random useless fact.
- Shows the source and the source URL of the fact.
- Each fact is tagged with a unique ID.

## ☕ [Support my work on Ko-Fi](https://ko-fi.com/thatsinewave)

## How to Use
1. Open `index.html` in your browser or [click here](https://thatsinewave.github.io/UselessFacts/).
2. Click the "🔄 Get a Fact" button to fetch a random useless fact.
3. The fact will be displayed along with the source and a link to view more.

## API
The app uses the [Useless Facts API](https://uselessfacts.jsph.pl/) to fetch random facts. The API returns a fact in the following format:
- `text`: The fact.
- `source`: The source of the fact.
- `source_url`: The URL for the source.
- `id`: A unique identifier for the fact.

## [Join my discord server](https://discord.gg/2nHHHBWNDw)

## Contributing

If you'd like to contribute to this project, please fork the repository and create a pull request.

## License

This project is licensed under the [MIT License](LICENSE).