Skip to main content
← Back to Blog

Vegan IQ: 1,066 Data-Backed Trivia Questions

A plant-based trivia game built on USDA, Oxford, NIH, and FAOSTAT data. Flutter, Python data pipeline, deterministic question generation. Android and iOS.

Vegan IQ is a trivia game about plant-based food, nutrition, and sustainability. 1,066 questions across 8 categories. Every answer traces back to a specific data source -- USDA FoodData Central, Poore & Nemecek (Science, 2018), NIH, or FAOSTAT. No LLM-generated content.

Data Pipeline

Questions are generated deterministically from structured JSON data files by a Python pipeline. The pipeline pulls nutritional composition from USDA, environmental impact metrics (water, land, GHG per kg) from Poore & Nemecek, health data from NIH, and agricultural production stats from FAOSTAT.

Raw generation produces ~2,461 candidates. Subcategory caps, MINIMUM_MEANINGFUL thresholds (protein >= 5g, fiber >= 1g, iron >= 1.5mg, calcium >= 30mg, vitamin C >= 5mg), and deduplication reduce this to 1,066 curated questions. A primary_food field on 426 questions lets the selection engine penalize same-food repetition within a single quiz (-100 weight).

Template-generated questions account for 43% of the pool; the remaining 57% are hand-curated.

Question Selection

An anti-repetition pacing engine selects questions at runtime. The algorithm tracks recently-seen questions and applies decay weights so quizzes feel fresh even across multiple sessions. A spaced repetition layer re-surfaces questions the player got wrong more frequently.

Category selection uses dynamic counts with a 2-column grid UI. Plant milk questions are excluded from environmental per-kg generators via _ENV_PER_KG_EXCLUDE to avoid misleading comparisons.

v1.1.0

This release adds:

  • Streaks and stats -- daily streaks, lifetime stats, per-category performance tracking
  • Titles and badges -- progression from "Sprout" to "Sage", plus category-specific badges with artist-drawn assets
  • Share cards -- off-screen RepaintBoundary renders branded PNG at 2x resolution, shared via share_plus with 5-minute delayed cleanup. Fallback to plain text if image generation fails.
  • Onboarding flow -- swipe/tap tutorial for new players
  • Quiz length picker -- 10, 15, or 20 questions per session

8 Categories

Nutrition, Environment, Ingredients, Food History, Animal Welfare, Health, Cooking, Culture.

Stack

  • Client: Flutter/Dart, single codebase for Android and iOS
  • Data: Python pipeline generating JSON question assets
  • Ads: Google AdMob (banner, interstitial)
  • IAP: StoreKit + Google Play Billing via in_app_purchase
  • Storage: shared_preferences for local scores and preferences
  • Share: share_plus + off-screen RepaintBoundary for image generation

Get It

See the Vegan IQ product page for more.