Search cookbook
All commands from the repo root (D:/Projects/ui-catalogue/ui-catalogue). python3 = any Python 3.9+.
uic.py (ranked, filter-aware)
python3 scripts/uic.py stats
python3 scripts/uic.py cats "UI Elements" # categories with counts
python3 scripts/uic.py tags --like glass # find exact tag spelling
python3 scripts/uic.py tags --section Sites --top 40 # most common tags within a section
# search = free-text terms (AND) + filters. Rank: title 5, category 3, tags 3, creator 2, description 1.
python3 scripts/uic.py search onboarding --section "Apps & Screenshots" --limit 10 --paths
python3 scripts/uic.py search --tag "Dark mode" --tag Dashboard --tag "Kpi cards" --type image --limit 20
python3 scripts/uic.py search --any-tag Serif --any-tag "Display type" --tag Portfolio --not-tag "Dark mode"
python3 scripts/uic.py search --creator "Maxim Kuznetsov" --limit 40 --sort new
python3 scripts/uic.py search stripe --json --limit 5 # machine-readable (id,title,tags,look,creator,source_url)
python3 scripts/uic.py show 01M4WSZJK2MFTHF5XT27V1DSTD # full record incl. source_url and media paths
python3 scripts/uic.py similar 01M4WSZJK2MFTHF5XT27V1DSTD # nearest by tag Jaccard (+section/category bonus)
python3 scripts/uic.py cooc "Glassmorphism" --section Sites # companion tags with % share
Looking
python3 scripts/uic.py sheet --section Sites --category SaaS --limit 30 --cols 6 -o /tmp/saas1.jpg # then read /tmp/saas1.jpg
python3 scripts/uic.py sheet --section Sites --category SaaS --limit 30 --skip 30 -o /tmp/saas2.jpg # page 2
python3 scripts/uic.py sheet 01M4... 01M5... 01M6... --cols 3 --thumb 480 -o /tmp/pick.jpg # chosen IDs, larger
python3 scripts/uic.py strip 01M4XA7DM199PQBBE0DPRM172W --frames 12 --cols 4 -o /tmp/strip.jpg # video filmstrip
python3 scripts/uic.py appsheet "Duolingo" --platform web --from 1 --count 24 -o /tmp/duo.jpg # one app, in order (--platform needed when the name exists on both)
python3 scripts/uic.py screensheet "paywall" "free trial" --platform mobile --count 24 -o /tmp/pw.jpg # screens by caption across apps
Sheet thumbnails carry a number; the command prints the number -> ID/caption table. Use --thumb 420 --cols 4 for detail, --thumb 200 --cols 8 for breadth.
App screens
python3 scripts/uic.py screens "bottom sheet" "filter" --platform mobile --limit 20 # AND over caption words
python3 scripts/uic.py app "Revolut" --platform mobile --outline 60 # caption outline (omit --platform: both platforms print)
python3 scripts/uic.py apps --platform web --topic checkout # apps by screen_topics
Screen-topic vocabulary (from data/apps.jsonl): account setup, dashboard, home, progress, chat bot, charts, product detail, verification, checkout, order detail, payment method, chat detail, map, media editor, article detail, signup, note detail, comments, billing, quiz, event detail, audio player, canvas, calendar, playlists, login...
jq (builtin in omp bash)
jq -c 'select(.section=="UI Elements" and .category=="Modals and Dialogs") | {id,title}' data/designs.jsonl
jq -c 'select((.tags|index("Dark mode")) and (.tags|index("Fintech"))) | {title, file: (.media.poster // .media.file)}' data/designs.jsonl
jq -r 'to_entries|sort_by(-.value.count)[:30][]|"\(.value.count)\t\(.key)"' data/tags.json
jq -r '."Maxim Kuznetsov".ids[]' data/creators.json
grep -i 'onboarding' data/screens.jsonl | jq -c '{app, caption, file}' | head
Python
import json, collections
D = [json.loads(l) for l in open("data/designs.jsonl", encoding="utf8")]
hits = [d for d in D if d["section"] == "Sites" and {"Dark mode", "Bento grid"} <= set(d["tags"])]
by_cat = collections.Counter(d["category"] for d in hits)
# co-occurrence of a tag set with other tags
c = collections.Counter(t for d in hits for t in d["tags"])
Patterns for combining tools
- Index first:
index/categories/<Section>/<Category>.md-> typical + diverse exemplar IDs. uic.py sheet <those IDs>-> read the image -> note 3-6 favourites.uic.py similar <favourite>+sheet-> expand around what you liked.uic.py cooc <tag>-> add the companion tags that make the look coherent (e.g.Glassmorphism->Dark mode,Blur effect,Glow effect).- For a flow,
uic.py app NAME --outline 60->appsheet NAME --from N.
Validation of what you write
python3 scripts/check_skill_refs.py <file.md>: every [26-char id] exists, every media/... path exists, every tag passed to a --tag, --any-tag or --not-tag option in a command example is a real tag.