A real-time AI-powered dashboard that analyzes global news to estimate how close we are to potential world-ending scenarios. The system uses advanced AI to process current events and calculate a probability score, providing insights into global stability.
- 🤖 AI-powered analysis of global news
- 📊 Real-time probability updates every 6 hours
- 📈 Historical trend tracking
- 🔄 Live updates via WebSocket
- 🎯 Detailed reasoning for each probability
- 📱 Responsive design
- 🔌 Public API with documentation
Visit the website to see the project in action.
- Node.js (v18 or higher)
- MySQL/MariaDB database
- NewsAPI key
- OpenRouter API key (for GPT access)
-
Clone the repository:
git clone https://github.com/Neotastisch/HowCloseToWorldEnd.git cd HowCloseToWorldEnd
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory:# Database Configuration DB_HOST=localhost DB_PORT=3306 DB_USER=your_db_user DB_PASSWORD=your_db_password DB_NAME=worldend # API Keys NEWS_API_KEY=your_newsapi_key OPENROUTER_API_KEY=your_openrouter_key
-
Create the database:
CREATE DATABASE worldend;
-
Start the server:
node index.js
The application will be available at http://localhost:3000
.
The project provides a public API with rate limiting (100 requests per 15 minutes per IP). API documentation is available at /docs
when running the server.
Example endpoints:
- GET
/api/latest
- Get the latest probability data - GET
/api/history
- Get historical probability data
You can modify the following settings in index.js
:
- Update interval (default: 6 hours)
- Rate limiting parameters
- Maximum history records
- Port number
The project uses Umami for anonymous usage statistics. You can:
- Disable analytics by removing the Umami script from
index.html
- Replace it with your own analytics solution
- Self-host Umami
While this project is not open for commercial use, you're welcome to:
- Report bugs
- Suggest improvements
- Submit pull requests
Please read the LICENSE file for details on usage restrictions.
This is an educational project that uses AI to analyze news and generate probabilities. The results are speculative and should not be taken as definitive predictions or cause for panic.
This project is licensed under a custom license that allows personal use and self-hosting but restricts commercial use. See the LICENSE file for details.
For questions and support, please use the GitHub Issues page.
Made with <3 by Neo