How sh2aliyev/spywitch works
Project type and purpose
• SpyWitch is a full-stack/edge-enabled Next.js web application whose sole purpose is to track and display live Twitch.tv chat events (messages, subs, cheers, etc.) for moderation. It is open-source, built with React/Next.js (using the new app/ directory), Tailwind CSS, TypeScript, and hosted via GitHub Actions (deploy.yml) and tested via tests.yml.
File structure
├── .github/workflows/*.yml
│ • CI/CD pipelines (tests + deploy)
├── public/
├── src/app/
│ • Next.js route handlers & layouts (root, monitor, setup pages)
├── src/components/
├── src/features/
│ • Feature-scoped components organized by domain (monitor, setup, status, navigation)
├── src/lib/
│ • Business-logic layers (Twitch adapters, action transforms to-save/to-show, utils)
├── src/system/
│ • Global constants, type definitions, page-routes, and a centralized state store (likely Zustand)
├── config files (ESLint, Prettier, Tailwind, Next.js, TS)
README insights
• Confirms “live data tracker for Twitch.tv,” for channel moderation
• No custom backend; uses Next.js edge functions or client-side requests to Twitch