HALLOWEEN FOLKLORE AI A developer built a minimalist, monochrome Halloween folklore web app for Hacktoberfest Week 4, combining Google Apps Script, the Wikipedia Action API, and Hugging Face's Inference API running Mistral-7B-Instruct. The serverless backend queries Wikipedia with a compliant User-Agent, caches responses via CacheService, and uses the model to synthesize search results into atmospheric narratives, with a rule-based fallback when no API key is supplied. 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 . Tech StackFrontend: HTML5, CSS3, Vanilla JavaScript Single-file template Backend: Google Apps Script JavaScript APIs: Wikipedia Action API, Hugging Face Inference API Code Architecture 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.