A centralized, resilient, and AI-ready service providing weather and news data for the Tillu ecosystem. It features automatic provider fallback to ensure high availability even when primary APIs are down or rate-limited.
- Resilient: Multi-source fallback logic for both Weather and News data.
- Lightweight: Optimized for Vercel Serverless Functions.
- Configurable: Easily add or remove API providers via simple JS handlers.
- Weather: OpenWeatherMap, WeatherAPI
- News: NewsAPI, GNews
This project is pre-configured for Vercel.
- Click the "Import Project" button in your Vercel dashboard.
- Select this repository (
Heoster/tillu-news-weather). - Configure the following Environment Variables:
OPENWEATHER_KEYWEATHERAPI_KEYNEWSAPI_KEYGNEWS_KEY
- Click Deploy.
GET /api/weather?city={city_name}
GET /api/news?query={topic} (Defaults to top-headlines)
Contributions are welcome! Please ensure any new API providers follow the existing handler pattern to maintain the fallback loop.