About WIKAI
A TikTok-style vertical feed of Wikipedia articles — swipe to the next card, tap to expand, earn points and level up. Every article is also a starting point: hit Gen Article in the reader and WIKAI will walk you through building a full article, script, audio, images, and finally a video, one stage at a time.
The 5-stage AI pipeline
Each stage is dependency-gated — the next button only unlocks once the previous stage's output has been saved. That means the reader shows exactly which button to press next, and nothing further down the chain can accidentally run without its input.
Gate: Article → Script → Audio → Images → Video.
- 1
Gen Article
Pull the entire Wikipedia body via the parse API, strip references/see-alsos/etc., split on <h2> into ordered sections. Renders inline right under the pipeline panel — hit Refresh Article any time the source changes.
Supabase · full_articles - 2
Gen Script
Only unlocks once the full article exists. An LLM (Anthropic claude-sonnet-4-6 with OpenRouter/Gemini fallback) rewrites the body as a narration script — a spoken-word draft with clean ## section headers.
Supabase · article_scripts - 3
Gen Audio
Only unlocks once the script exists. Gemini 2.5 Flash TTS reads the narration → 24 kHz PCM → WAV. Stored on S3 (com27) and served from a signed URL. The reader gets a native <audio> element the moment audio is ready.
S3 (com27) + Supabase · audio_assets - 4
Gen Images
Only unlocks once audio is ready. Runware FLUX renders one hero image per section of the script — same order as the structured article. Missing sections render an Image N/A placeholder in the reader.
S3 (com27) + Supabase · image_assets - 5
Gen Video
Only unlocks once audio + at least one image exist. Composes a synchronized slideshow — audio scrubber below, per-section Ken-Burns images above, one panel per section timed against the narration duration. Playable at /watch/[pageId].
Supabase · video_assets (points to /watch/[pageId])
Batching the most-popular articles
Under the hood, the pipeline maps to the fleet's /abc-videos skill — one row per article, one video per row. To batch the most-popular articles of the week for social distribution, just pipe the Top All-Time list into /abc-videos batch wikai from the cockpit and each stage runs unattended.
The generated MP4 becomes a /watch/[pageId] page you can share, embed on a site, or hand off to /abc-remotion for a tentpole render.
Data + auth
- Supabase — auth (Google OAuth), category prefs, likes, bookmarks, and all stage output tables.
- MongoDB — canonical full-article store for the ingest cron (browsable offline mirror).
- S3 (com27) — audio + generated hero images, served from the public per-app prefix.
- Wikimedia REST API — random articles, page summaries, search suggestions, and daily pageview rankings.
See /version for the changelog.