cd /news/ai-tools/halloween-folklore-ai · home › topics › ai-tools › article
[ARTICLE · art-161260] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

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.

by read1 min views1 publishedOct 30, 2026

_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.

── more in #ai-tools 4 stories · sorted by recency
── more on @google apps script 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/halloween-folklore-a…] indexed:0 read:1min 2026-10-30 · —