How lukex2010/ffrastenfeld2 works
This repository is the FF Rastenfeld website and its supporting editorial tools: a Blazor frontend for posts, team and vehicle content, an infoscreen, and administration, alongside serverless APIs and a WhatsApp publishing bot. The main authoring workflow is WhatsApp input, optional web research, AI draft generation, review, and publishing; the admin API also supports drafts, AI writing and publishing. The source index establishes several module links, but unsampled implementations and runtime HTTP wiring limit some connections.
Main entry points: index.js Bot workflow · app.js Website UI · postGenerator.js Draft generation · infoscreen.mjs Infoscreen API
Components 30
Public Website
- Website UI
wwwroot/js/app.js - Post content
Services/DataService.cs - Post models
Models/Models.cs - Photo gallery
wwwroot/js/photo-gallery.js - Photo gestures
wwwroot/js/photo-gestures.js - Team viewer
wwwroot/js/team-viewer.js - SEO behavior
wwwroot/js/seo.js
Infoscreen
- Infoscreen UI
Pages/InfoscreenV2.razor.cs - Infoscreen client
Services/InfoscreenClient.cs - Infoscreen API
server/infoscreen.mjs - Regional data
server/wastl.mjs - Weather client
Services/InfoscreenWeather.cs
Administration
- Admin editor
wwwroot/admin/editor.js - Admin API client
Services/AdminApiClient.cs - Admin API
server/admin.mjs - Admin host
AdminServer/Program.cs - Git storage
server/github.mjs - Budget data
server/budget.mjs
WhatsApp Publishing
- Bot workflow
whatsapp-bot/src/index.js - Web research
whatsapp-bot/src/search/webSearch.js - Draft generation
whatsapp-bot/src/ai/postGenerator.js - Gemini client
whatsapp-bot/src/ai/geminiClient.js - Ollama client
whatsapp-bot/src/ai/ollamaClient.js - Review commands
whatsapp-bot/src/review/commands.js - Post publisher
whatsapp-bot/src/website/publisher.js - Draft store
whatsapp-bot/src/website/postStore.js - Git actions
whatsapp-bot/src/git/gitActions.js
Other components
- Website visitor
- Editor
- WhatsApp author
Connections 24
- Website visitor → Website UI: uses
wwwroot/js/app.js - Website UI → Post content: loads posts
- Post content → Post models: deserializes
Services/DataService.cs - Website UI → Photo gallery: opens photos
- Photo gallery → Photo gestures: uses gestures
wwwroot/js/photo-gallery.js - Team viewer → Photo gestures: uses gestures
wwwroot/js/team-viewer.js - Infoscreen UI → Post content: reads data
Pages/InfoscreenV2.razor.cs - Infoscreen UI → Infoscreen client: requests API
Pages/InfoscreenV2.razor.cs - Infoscreen API → Git storage: reads content
server/infoscreen.mjs - Infoscreen API → Regional data: loads regional data
server/infoscreen.mjs - Editor → Admin editor: edits content
- Admin editor → Admin API client: uses API client
- Admin API client → Admin host: calls admin API
- Admin API → Git storage: stores changes
server/admin.mjs - Admin API → Infoscreen API: reads and validates
server/admin.mjs - WhatsApp author → Bot workflow: sends material
- Bot workflow → Review commands: parses commands
whatsapp-bot/src/index.js - Bot workflow → Web research: runs research
whatsapp-bot/src/index.js - Bot workflow → Draft generation: creates drafts
whatsapp-bot/src/index.js - Draft generation → Gemini client: uses model
whatsapp-bot/src/ai/postGenerator.js - Draft generation → Ollama client: uses model
whatsapp-bot/src/ai/postGenerator.js - Bot workflow → Post publisher: publishes draft
whatsapp-bot/src/index.js - Post publisher → Draft store: uses draft store
whatsapp-bot/src/website/publisher.js - Bot workflow → Git actions: runs Git actions
whatsapp-bot/src/index.js