This showcase demonstrates building a personality quiz using Codex and Momen BaaS. Users answer five questions to discover their "spirit pizza topping" via AI analysis.
Momen BaaS is a visual, Postgres-native backend that AI coding tools and no-code builders plug into. You configure your data model, AI agents, and logic in the editor โ it exposes a standard GraphQL API your frontend consumes. One backend, many frontends. AI builds your UI; Momen is the backend that survives production.
Live Demo: what-are-you-really-pizza-topping.vercel.app

The project separates concerns: backend infrastructure lives entirely in Momen using visual configuration, while Codex builds and deploys the frontend to Vercel. "The editor is the source of truth" โ when changes sync, the API shape updates automatically.
Nickname entry with one-shot protection ("One shot only ๐")
Five database-driven quiz questions with preset options
Asynchronous AI agent mapping answers to spirit toppings
Result screen displaying topping name and summary
No user accounts or external payment systems
Table | Purpose |
|---|---|
| Five quiz prompts |
| Answer choices with psychological context |
| Outcome catalog |
| Per-nickname results with unique constraint |
Relations flow: question โ option โ quiz_result โ spirit_result
The structured-output agent receives five option IDs and returns typed JSON: { spirit_result_id, result_name, result_summary }. Structured output prevents text parsing errors and maps directly to database columns.
Two Actionflows coordinate operations:
check-username-status (sync): Validates nickname availability and reserves entry
CrownUser (async): Runs AI agent and updates results via WebSocket subscription
Momen handles:
Tables and relations
Seed data import
AI agent configuration
Actionflow orchestration
GraphQL API deployment
Codex handles:
GraphQL query generation
Custom quiz UI
Vercel deployment
The Momen plugin gives Codex direct access to the live backend schema, eliminating guesswork about field names or API shapes:
# Codex
codex plugin marketplace add momen-tech-org/momen-nocode-plugin
codex plugin add momen-nocode@momenOnce the plugin is installed, Codex reads your tables, Actionflow inputs/outputs, and AI agent schemas directly. When you change the backend and sync, schema re-introspection keeps your frontend code in sync automatically.
Phase | Time |
|---|---|
Backend setup | ~1 hour |
Frontend development | ~1 hour |
Total MVP | ~2 hours |
Costs: Momen Pro (required for AI), Codex subscription, Vercel free tier, and per-agent-run AI points.
Schema introspection via the Momen plugin prevents incorrect field assumptions
Structured AI output maps directly to database columns
One-shot enforcement combines unique constraints with sync validation
Modularity โ swap quiz topics by changing seed data and prompts only