Domdhi logoDOMDHI.OS

BUILDS

Pick a project. Explore what it does and its recorded activity.

PRIVATE

SportsFiesta

Sports social automation for a two-person team. It finds odd stats, drafts posts and renders graphics. A human approves every post.

README

SportsFiesta

Sports social-media automation platform for a two-person team. It ingests public sports data, scores and triages events, AI-generates obscure-stat narrative drafts, renders branded images and video through templated Remotion pipelines, and publishes to X/Instagram/Facebook — every post passing through a human approval queue. One MLB account, one WNBA account, built to earn gaming sponsorships.

Status: planning complete, implementation not started. Start at docs/TODO_SportsFiesta.md.

How It Works

RSS + BALLDONTLIE (statsapi.mlb.com backup)
        │ ingest
        ▼
score & triage ──► AI draft generation (Claude via Vercel AI SDK)
        │                  │
        ▼                  ▼
Remotion Lambda render ──► human approval queue ──► publish (X / IG / FB)

Pipeline stages chain inline (each stage invokes the next on completion); per-minute pg_cron sweeps are the backstop for anything dropped. Scoring runs before any AI call, and AI output never publishes without human approval.

Tech Stack

TypeScript 5.7+ monorepo (pnpm workspaces + Turborepo), single deployable, hard $0/month infra target (Vercel Hobby + Supabase Free + AWS Lambda free tier).

  • apps/web — Next.js 15 App Router on Vercel: UI + BFF REST API + /api/cron/* sweep routes. React 19, Tailwind CSS 4, TanStack Query 5, @remotion/player previews.
  • Supabase — Postgres 16 (+ pgvector/pg_trgm) via Drizzle ORM; Auth (GitHub OAuth, 2-person allow-list); Storage (branding assets + render-output custody); Realtime (presence + live queue push); pg_cron + pg_net as the queue tick source.
  • Job queue — hand-rolled cron-swept Postgres tables, no Redis/BullMQ. FOR UPDATE SKIP LOCKED claiming, three-layer publish idempotency (ADR-0003).
  • Rendering — Remotion Lambda on AWS via packages/render (trigger-and-poll; output copied into Supabase Storage before a job counts as done).
  • AI — Vercel AI SDK generateObject + Anthropic Claude behind packages/ai.
  • Observability — pino → Axiom, Discord webhook alerts, cron_heartbeats + external uptime monitor.

Full rationale: docs/architecture/overview.md + 8 ADRs in docs/architecture/decisions/.

Build & Test

Pre-scaffold (current state): root package.json is still the toolkit template's own tooling — npm test runs the template's vitest suite, npm run build is a no-op.

Once Story 0.1 (pnpm/Turborepo scaffold) lands:

pnpm install
pnpm turbo build        # app + packages
pnpm turbo test         # vitest unit + integration
pnpm turbo lint typecheck
pnpm --filter web dev   # Next.js dev server (PUBLISHER_MODE=sandbox locally, always)

Documentation

Doc What
docs/TODO_SportsFiesta.md Master implementation index
docs/work/backlog.md Epic/story source of truth
docs/product/requirements.md PRD — 41 FRs, 14 NFRs, 5 flows
docs/architecture/overview.md System design v2.1
docs/architecture/data-model.md 13-table schema
docs/design/spec.md "Wire Desk" design system
docs/reference/competitive-landscape-and-oss-references.md OSS references per subsystem

Engineering conventions live in CLAUDE.md; the docs taxonomy is defined in docs/CLAUDE.md.

Development Tooling

This repo uses the Domdhi.Agents toolkit — the .claude/ directory holds specialized agents, skills, and workflow commands for Claude Code. It's development tooling, not part of the product.