A curated, searchable catalog of React Native UI components, animations, and design inspiration — with AI-assisted contribution and review powered by OpenAI Codex.
Live: https://rnui.dev
React Native developers spend hours hunting for UI and animation references across Twitter threads, Snacks, and GitHub repos. rnui.dev centralizes them with reproducible source links, attribution, and (soon) natural-language search.
Entries are organized into UI-element categories under data/:
accordions, arcsliders, bottomsheets, buttons, carousels, charts, circular-progress-bars, dropdowns, fullapps, headers, lists, loaders, misc, onboardings, parallaxes, pickers, sliders, tabbars.
Each entry links to the original repo or Snack with author attribution.
OpenAI Codex (currently gpt-4o-mini + text-embedding-3-small via the Vercel AI SDK) is wired into three parts of the workflow:
pnpm codex:ingest -- <github-url>(scripts/codex-ingest.ts) — fetches repo metadata + README, asks Codex for a structured catalog entry that matchesItemTypeindata/items.ts, validates it with Zod,ts-morph-appends it to the rightdata/<category>.ts, then opens asubmission/<slug>PR. Demo-video upload stays manual; the script prints the expected path..github/workflows/codex-triage.yml(scripts/codex-review-pr.ts) — runs on every PR open/sync, asks Codex to score the diff against a fixed rubric (schema, ID uniqueness, asset paths, category match, source URL), and posts the review as a PR comment. The workflow is gated on theOPENAI_API_KEYsecret so it stays quiet on forks or before the key is configured.pnpm codex:index(scripts/codex-search-index.ts) +/api/search+/search— embeds every catalog entry withtext-embedding-3-small, writesdata/embeddings.json(gitignored, regenerated locally), and serves natural-language search via cosine similarity. Migrate to Supabase pgvector when the catalog outgrows JSON.
All Codex-calling commands require OPENAI_API_KEY in the environment and fail loudly when it is missing.
This project uses pnpm.
git clone https://github.com/mrpmohiburrahman/rnui.dev
cd rnui.dev
pnpm install
cp .env.example .env.local # fill in Supabase, Firebase, OpenAI, ImageKit keys
pnpm devOpen http://localhost:3000.
The fastest path: open an issue using the Animation Submission template with the source URL. See CONTRIBUTING.md for the full flow, including the upcoming pnpm codex:ingest shortcut.
MIT — see LICENSE.