Universal AI Capability Platform
The Universal AI Capability Platform is a provider-neutral registry built on top of Hugging Face Spaces: it crawls the public Space catalog, stores canonical records with raw snapshots, and will later derive capabilities, contracts, evaluations and plans from that measured inventory. The canonical unit is Capability + Contract; an embedded Space iframe is only one publication field, not the product. This repository currently implements MVP-1 — the HF Catalog Crawler, with the wiki, contract validation and execution gateway kept as reusable foundations.
🌐 Language / Язык / 语言 / Idioma / Sprache: English · Русский · 简体中文 · Español · Deutsch
Facts at a glance
| Fact | Value |
|---|---|
| Active feature | MVP-1 HF Catalog Crawler |
| Source | https://huggingface.co/api/spaces (Link cursor pagination) |
| Measured sample | 500 Spaces, 0 failures, 2026-11-26 |
| SDK split | gradio 334, static 98, docker 64, streamlit 5 |
| MCP-enabled | 89 Spaces carry mcp-server tag |
| License | 257 declared, 244 unknown |
| With models / datasets | 355 / 91 |
| Unique SHA | 492 of 501 records |
| Storage | PostgreSQL (SQLite locally), raw snapshots as JSON (R2 planned — ADR-005) |
| Health | python scripts/health.py — ruff + mypy + pytest |
| License | MIT |
Why the crawler is first
The original research (2026-10-07) started with a simple goal: extract all HF Spaces, then build other layers on top. The earlier specification package described those upper layers first, which produced a wiki and a site before a catalog existed. ADR-004 restores the order: ingestion before intelligence. No planner, ranking, channel or SEO work is justified until the catalog is measured.
Roadmap (from the original research)
- HF Catalog Crawler — active now: cursor pagination, checkpoints, SHA-based updates, dead letters.
- Gradio Contract Extractor — implemented:
agents.md+/gradio_api/info+ MCP schema → canonical ports. - Evaluator — implemented: deterministic, evidence-marked dimensions; unknown stays VERIFY.
- Widget Runtime — one stable host calling tools dynamically, not 100k third-party iframes.
- Telegram Adapter — bot commands + Mini App.
- Planner — goal + deployment intent → recipe.
- Provider abstraction — Replicate, fal and non-HF providers.
- Raw snapshots → Cloudflare R2 — store URI/hash/size in PostgreSQL (ADR-005).
Do not build an own LLM, vector DB, graph DB, agent swarm, auto-clone of every Space or 20 channel adapters before the catalog exists.
Site structure (catalog interface)
/spaces/— faceted search: text, category, SDK, license, tags; sort by likes/trending/recency; URL state./embed/— iframe and<gradio-app>snippets for embeddable Spaces, with VERIFY separation./space/{id}/— 501 entity pages with answer-first facts, embed snippet, visible questions, related Spaces, source link./categories/,/tags/,/sdk/— indexable hubs withCollectionPage + ItemListand breadcrumbs./api/items.json,/api/index.json,/api/stats.json,/api/corpus.jsonl,/.well-known/ai-catalog.json— machine-readable catalog for agents./llms.txt,/llms-full.txt,/docs/...— human and LLM documentation.
Navigation (mega menu, mobile hamburger, 5-column × 2-row footer with 5–7 URLs per group) is
generated from the catalog by python scripts/update_site_data.py. That single script refreshes
catalog JSON/API, nav, knowledge graph and wiki; run it after every crawl. The catalog shows 24
cards with "Show more" instead of rendering 501 at once.
Filter combinations are client-side with a self-canonical base URL; only curated single-facet hubs are indexable. FAQPage markup is retired in 2026 — questions are visible text, not schema.
Quick start
cd backend
python -m pip install -e ".[dev]"
# Health + collected-catalog verification
python scripts/health.py
python scripts/verify_catalog.py
# Bounded live crawl (resumes from checkpoint)
set PYTHONPATH=src # Windows PowerShell: $env:PYTHONPATH='src'
python -m uaicp.catalog.crawl --limit 500 --page-size 100
# Re-read a page with expanded fields
python -m uaicp.catalog.crawl --limit 500 --restart --refresh
No token is required for a bounded sample; HF_TOKEN raises rate limits for a full inventory.
Repository layout
docs/original-research-2026-10-07.md source of intent (owner chat)
docs/adr/ADR-004-ingestion-first.md reordering decision
specs/005-hf-catalog-crawler/ active SDD feature
backend/src/uaicp/catalog/ HF client, crawler, inventory report
backend/src/uaicp/{db,validation,execution,wiki,graph,ingestion} foundations
wiki/ generated LLM-readable knowledge base
site/ Astro docs site (Cloudflare Workers)
Method
Built with GitHub Spec Kit: constitution → specify → plan → tasks → analyze → implement. Every feature has a spec, plan, tasks and tests.
License
MIT — see LICENSE.
RU: проект начинается с массового сбора HF Spaces; каноническая единица — Capability + Contract, а iframe — лишь способ публикации. Сейчас активен MVP-1 сборщик каталога; вики, валидация контрактов и execution-шлюз — фундамент для следующих слоёв. Полный инвентарь и лимиты API — VERIFY.