Repository navigation
v0.1.4
Matrix Hub v0.1.4 — First Public Release 🎉
Release date: 2025-08-18
Production API: https://api.matrixhub.io/
This is the first public GitHub release of Matrix Hub — a production-ready catalog & installer for AI agents, tools, and MCP servers. It includes a stable Top-5 Meta Search API, safe installer workflows, and clean docs you can put behind your site/CDN.
Highlights
- Top-5 Search (public contract):
GET /catalog/searchreturns the best five matches across agents/tools/MCP servers. - One-click friendly results: every hit includes
manifest_urlandinstall_url(additive fields). - Snippets on demand:
with_snippets=truereturns a short preview from summary/description. - Prod-safe: backward compatible, no DB migrations; SQLite works for dev, Postgres recommended for prod.
What’s New
APIs
-
GET /catalog/search- New param:
with_snippets(bool, defaultfalse). type=anysearches across all types.- Public default Top-5 (
limit=5); response remains backward compatible. - Items include
manifest_url,install_url,snippet(all optional/additive).
- New param:
-
(Optional)
GET /catalog/manifest/{entity_id}
Redirects to the entity’s external manifest (source_url) when available.
Configuration
-
PUBLIC_BASE_URL— used to build absolute links in API responses.- Default:
http://127.0.0.1:7300 - Production:
PUBLIC_BASE_URL=https://api.matrixhub.io
- Default:
Code Changes (additive only)
src/config.py— addedPUBLIC_BASE_URL.src/schemas.py—SearchItemextended withmanifest_url,install_url,snippet.src/services/search/util.py—serialize_hit(...)enriched; supportswith_snippets.src/routes/catalog.py— Top-5 defaults;type=any; wireswith_snippets; optional manifest redirect.
Docs & DX
- New:
docs/api/search-api.md— public Top-5 Search contract. - README: “Official Search API (Top-5)” quickstart added.
- MkDocs nav: API → Top-5 Search API.
- Tests:
tests/test_search_top5.pyguards the public contract (example run: 13 passed).
Compatibility & Deployment
-
Breaking changes: none (all fields/params are additive).
-
Database migrations: none.
-
Production recommendation: Postgres with
pg_trgmfor strong keyword ranking; enablepgvectorlater for semantic. -
Key env:
PUBLIC_BASE_URL=https://api.matrixhub.io- (Optional)
SEARCH_LEXICAL_BACKEND=pgtrgm - (Optional)
SEARCH_VECTOR_BACKEND=pgvector
Quickstart (Search & Install)
# Top-5 search (public)
curl -s 'https://api.matrixhub.io/catalog/search?q=extract%20pdf%20tables&type=any&limit=5&with_snippets=true' | jq# Install a selected item (canonical flow)
curl -s -X POST 'https://api.matrixhub.io/catalog/install' \
-H 'Content-Type: application/json' \
-d '{"id":"tool:pdf_table_extractor@1.1.0","target":"./"}' | jqKnown Limitations (v0.1.4)
- Semantic-only returns no results unless embeddings + a vector backend (e.g.,
pgvector) are enabled. - Hyphenated tokens (e.g.,
Hello-World) may match less robustly on SQLite; Postgrespg_trgmimproves fuzziness. - ETag caching may not appear unless enabled in your stack; consider short CDN caching on
/catalog/search.
Changelog
- Add
PUBLIC_BASE_URLsetting. - Add
manifest_url,install_url,snippettoSearchItem. - Add
with_snippetsparam; supporttype=any; default Top-5 on/catalog/search. - Add optional
GET /catalog/manifest/{entity_id}redirect. - Add
docs/api/search-api.mdand README “Official Search API.” - Add
tests/test_search_top5.py. - Polish: backward compatible; zero DB changes.
— Ready for api.matrixhub.io 🚀