{"id":50454213,"url":"https://github.com/mizcausevic-dev/semantic-metrics-catalog","last_synced_at":"2026-06-01T01:05:45.860Z","repository":{"id":357974056,"uuid":"1239361638","full_name":"mizcausevic-dev/semantic-metrics-catalog","owner":"mizcausevic-dev","description":"Python FastAPI catalog for governed metric definitions, ownership lanes, freshness posture, and AI-readable semantic contracts.","archived":false,"fork":false,"pushed_at":"2026-05-15T03:23:54.000Z","size":1903,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-15T05:33:16.831Z","etag":null,"topics":["ai-search","analytics-engineering","backend","business-intelligence","data-governance","fastapi","metrics","portfolio","python","semantic-layer"],"latest_commit_sha":null,"homepage":"https://kineticgain.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mizcausevic-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T02:46:16.000Z","updated_at":"2026-05-15T03:23:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mizcausevic-dev/semantic-metrics-catalog","commit_stats":null,"previous_names":["mizcausevic-dev/semantic-metrics-catalog"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mizcausevic-dev/semantic-metrics-catalog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fsemantic-metrics-catalog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fsemantic-metrics-catalog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fsemantic-metrics-catalog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fsemantic-metrics-catalog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mizcausevic-dev","download_url":"https://codeload.github.com/mizcausevic-dev/semantic-metrics-catalog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mizcausevic-dev%2Fsemantic-metrics-catalog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33755379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-search","analytics-engineering","backend","business-intelligence","data-governance","fastapi","metrics","portfolio","python","semantic-layer"],"created_at":"2026-06-01T01:05:45.752Z","updated_at":"2026-06-01T01:05:45.840Z","avatar_url":"https://github.com/mizcausevic-dev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic Metrics Catalog\r\n\r\nGoverned metric catalog for **semantic contracts, ownership lanes, freshness posture, and AI-readable analytics definitions**.\r\n\r\n\u003e **What this repo proves**\r\n\u003e\r\n\u003e Analytics definitions become much safer when every KPI carries an explicit owner, contract state, freshness expectation, and semantic export surface instead of living as dashboard folklore.\r\n\r\n## Why this repo exists\r\n\r\nMost teams can name their key metrics faster than they can explain them. That\r\ngap is where analytics debt grows:\r\n\r\n- the same KPI label means different things across teams\r\n- freshness expectations are implied instead of enforced\r\n- ownership gets fuzzy once a metric spreads beyond one dashboard\r\n- AI systems answer confidently from screenshots and stale wiki fragments\r\n\r\n`semantic-metrics-catalog` models the missing control surface. It treats metric\r\ndefinitions as governed products with status, versioning, lineage pressure, and\r\nmachine-readable publication.\r\n\r\n## Screenshots\r\n\r\n### Overview\r\n\r\n![Overview](./screenshots/01-overview.png)\r\n\r\n### Catalog Lane\r\n\r\n![Catalog Lane](./screenshots/02-catalog-lane.png)\r\n\r\n### Contract Board\r\n\r\n![Contract Board](./screenshots/03-contract-board.png)\r\n\r\n### API Summary\r\n\r\n![API Summary](./screenshots/04-api-summary.png)\r\n\r\n## What it includes\r\n\r\n- FastAPI service for governed metric catalog routes\r\n- sample metric contracts across revenue, finance, product, support, and lifecycle\r\n- owner lane and contract review surfaces\r\n- JSON-LD `DataCatalog` export for AI-readable semantic retrieval\r\n- real HTML proof scenes and PNG screenshots generated from the repo\r\n- changelog, origin story, docs, tests, and CI\r\n\r\n## Local run\r\n\r\n```powershell\r\ncd semantic-metrics-catalog\r\npy -3.11 -m venv .venv\r\n.\\.venv\\Scripts\\python.exe -m pip install -r requirements.txt\r\n.\\.venv\\Scripts\\python.exe -m app.main\r\n```\r\n\r\nOpen:\r\n\r\n- [http://127.0.0.1:4994/](http://127.0.0.1:4994/)\r\n- [http://127.0.0.1:4994/catalog](http://127.0.0.1:4994/catalog)\r\n- [http://127.0.0.1:4994/contracts](http://127.0.0.1:4994/contracts)\r\n- [http://127.0.0.1:4994/owners](http://127.0.0.1:4994/owners)\r\n- [http://127.0.0.1:4994/docs](http://127.0.0.1:4994/docs)\r\n\r\nIf that port is occupied:\r\n\r\n```powershell\r\n$env:PORT = \"4998\"\r\n.\\.venv\\Scripts\\python.exe -m app.main\r\n```\r\n\r\n## Validation\r\n\r\n```powershell\r\ncd semantic-metrics-catalog\r\n.\\.venv\\Scripts\\python.exe -m unittest discover -s tests\r\n.\\.venv\\Scripts\\python.exe scripts\\run_demo.py\r\n.\\.venv\\Scripts\\python.exe scripts\\smoke_check.py\r\n.\\.venv\\Scripts\\python.exe scripts\\render_readme_assets.py\r\n```\r\n\r\n## API routes\r\n\r\n- `GET /api/dashboard/summary`\r\n- `GET /api/catalog`\r\n- `GET /api/metrics`\r\n- `GET /api/metrics/{metric_name}`\r\n- `GET /api/contracts`\r\n- `GET /api/owners`\r\n- `GET /api/sample`\r\n- `GET /semantic/catalog.jsonld`\r\n\r\n## Example metric contract\r\n\r\n```json\r\n{\r\n  \"name\": \"net_revenue_retention\",\r\n  \"owner\": \"Finance Analytics\",\r\n  \"contract_status\": \"watch\",\r\n  \"freshness_status\": \"within_sla\",\r\n  \"contract_version\": \"1.8\"\r\n}\r\n```\r\n\r\n## Architecture\r\n\r\n```mermaid\r\nflowchart LR\r\n  A[\"Metric contract YAML\"] --\u003e B[\"Catalog service\"]\r\n  B --\u003e C[\"Owner lanes\"]\r\n  B --\u003e D[\"Contract board\"]\r\n  B --\u003e E[\"JSON-LD export\"]\r\n  C --\u003e F[\"Operator review surfaces\"]\r\n  D --\u003e F\r\n  E --\u003e G[\"AI and retrieval consumers\"]\r\n```\r\n\r\nMore detail lives in [docs/architecture.md](./docs/architecture.md).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fsemantic-metrics-catalog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmizcausevic-dev%2Fsemantic-metrics-catalog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmizcausevic-dev%2Fsemantic-metrics-catalog/lists"}