HALLOWEEN FOLKLORE AI
_Introduction _For Hacktoberfest Week 4, I built a minimalist, monochrome web application powered by Google Apps Script (GAS), the Wikipedia API, and Hugging Face’s Inference API. The app allows users to input any keyword (e.g., "cats," "celt," "mirrors," or "harvest") to discover spooky Halloween

_Introduction _For Hacktoberfest Week 4, I built a minimalist, monochrome web application powered by Google Apps Script (GAS), the Wikipedia API, and Hugging Face’s Inference API.
The app allows users to input any keyword (e.g., "cats," "celt," "mirrors," or "harvest") to discover spooky Halloween folklore, myths, and historical traditions curated dynamically by AI and Wikipedia.
_Features & Highlights _ Monochrome Minimalist UI: Designed with a high-contrast, clean typographic aesthetic (inspired by old literary archives) using custom CSS and Google Fonts (Shippori Mincho and Cinzel).
Google Apps Script (GAS) Backend: Serverless architecture handling API calls securely and managing server-side caching (CacheService) to optimize performance.
Wikipedia API Compliance: Fully adheres to Wikimedia’s User-Agent policy by passing a descriptive user agent and respecting data usage guidelines under CC BY-SA 4.0.
Hugging Face AI Integration: Connects to Hugging Face’s Inference API (Mistral-7B-Instruct) to synthesize and enrich Wikipedia search results with an eerie, atmospheric Halloween narrative (complete with a robust rule-based fallback if the API key isn't provided).
APIs: Wikipedia Action API, Hugging Face Inference API
Backend (index.gs) The GAS backend handles incoming requests, queries the Wikipedia API while strictly passing a compliant User-Agent header, processes the extracts through Hugging Face, and returns a structured JSON payload to the client.
Frontend (UI.html) A clean, distraction-free search interface featuring asynchronous requests via google.script.run, smooth CSS animations, and direct links back to original Wikipedia articles for full reading compliance.
License & Acknowledgements Built for Hacktoberfest.
Wikipedia data provided under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.