{"id":16111116,"url":"https://github.com/mjpitz/emc","last_synced_at":"2026-01-15T22:14:58.121Z","repository":{"id":57697210,"uuid":"494792317","full_name":"mjpitz/emc","owner":"mjpitz","description":"(mirror) The minimal, declarative service catalog. (0 dependencies, \u003c400 LOC)","archived":false,"fork":false,"pushed_at":"2024-09-30T01:02:09.000Z","size":598,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T14:03:15.753Z","etag":null,"topics":["golang","iac","infrastructure-as-code","service-catalog"],"latest_commit_sha":null,"homepage":"https://code.pitz.tech/mya/emc","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjpitz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-05-21T13:32:52.000Z","updated_at":"2022-10-06T04:15:36.000Z","dependencies_parsed_at":"2024-10-27T17:29:13.279Z","dependency_job_id":"43c2cfe6-6b25-4324-9999-3c83753339f6","html_url":"https://github.com/mjpitz/emc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mjpitz/emc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Femc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Femc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Femc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Femc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjpitz","download_url":"https://codeload.github.com/mjpitz/emc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjpitz%2Femc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:13:38.078Z","status":"ssl_error","status_checked_at":"2026-01-15T22:12:11.737Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","iac","infrastructure-as-code","service-catalog"],"created_at":"2024-10-09T19:40:24.411Z","updated_at":"2026-01-15T22:14:58.102Z","avatar_url":"https://github.com/mjpitz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emc\n\n_The minimal, declarative service catalog._\n\n## Background\n\nIn the last three jobs I've worked at, it's always been a hassle trying to locate the various dashboards, documentation,\nand support for a given project. I joined effx to try and help address just that. As I've been spinning up a new cluster,\nI found myself wanting a landing page for the systems that I use regularly.\n\n## Building your catalog\n\nThe `emc` service catalog is defined using a simple Golang script. This makes it easy for engineers to drop in their\nown functionality for rendering links, link groups, or services. For an example, see the provided `grafana` package\nwhich includes several of my personal dashboards for different systems.\n\n```go\n// catalog.go\n\n//go:build ignore\n// +build ignore\n\npackage main\n\nimport (\n\t\"code.pitz.tech/mya/emc/catalog\"\n\t\"code.pitz.tech/mya/emc/catalog/grafana\"\n\t\"code.pitz.tech/mya/emc/catalog/linkgroup\"\n\t\"code.pitz.tech/mya/emc/catalog/service\"\n)\n\nfunc main() {\n\tcatalog.Serve(\n\t\tcatalog.Service(\n\t\t\t\"Drone\",\n\t\t\tservice.LogoURL(\"https://path/to/drone-logo.png\"),\n\t\t\tservice.URL(\"https://drone.example.com\"),\n\t\t\tservice.Description(\"Drone is a self-service Continuous Integration platform for busy development teams.\"),\n\t\t\tservice.Metadata(\"Contact\", \"drone@example.com\"),\n\t\t\tservice.LinkGroup(\n\t\t\t\t\"Dashboards\",\n\t\t\t\tlinkgroup.Link(\"Drone\", grafana.Drone(\"cicd\", \"drone\")),\n\t\t\t\tlinkgroup.Link(\"Golang\", grafana.Golang(\"cicd\", \"drone\")),\n\t\t\t\tlinkgroup.Link(\"Litestream\", grafana.Litestream(\"cicd\", \"drone\")),\n\t\t\t\tlinkgroup.Link(\"Redis Queue\", grafana.Redis(\"cicd\", \"drone-redis-queue\")),\n\t\t\t),\n\t\t\tservice.LinkGroup(\n\t\t\t\t\"Documentation\",\n\t\t\t\tlinkgroup.Link(\"docs.drone.io\", \"https://docs.drone.io/\"),\n\t\t\t),\n\t\t),\n\t\t// ...\n\t)\n}\n```\n\n## Hosting your catalog\n\nOnce you've built your catalog, you can easily run a landing page by executing the catalog file.\n\n```sh\n$ go run ./catalog.go\n```\n\nThis starts a web server for you to interact with on `localhost:8080`. If `:8080` is already in use, you can configure\nthe bind address by passing the `-bind_address` flag with the desired host and port.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshot.png\" alt=\"Screenshot\" width=\"72%\"/\u003e\n\u003c/p\u003e\n\n### Exporting your catalog\n\nInstead of needing to compile a binary or host your catalog using `go run`, you can export your catalog to HTML or JSON.\nThis makes it easy to drop into existing self-host platforms or leverage with other popular systems.\n\n```sh\n$ go run ./catalog.go -output html \u003e index.html\n$ go run ./catalog.go -output json \u003e catalog.json\n```\n\n### Protecting your catalog using oauth-proxy\n\nRegardless of how you host your catalog, you'll likely want to protect access to it. An easy way to do this is using the\n[oauth-proxy][] project. This project provides common OAuth2 client functionality to any project, making it easy to\nrequire authentication in order to access a system / project.\n\n\u003c!-- TODO: write up guide and link to it from here --\u003e\n\nUntil I have more of a concrete guide, you can follow my setup [here](https://github.com/mjpitz/mjpitz/blob/main/infra/helm/catalog/values.yaml).\nA simple analogy to this deployment would be a docker compose file with two services, one for the oauth-proxy and the\nother for the catalog (bound to 127.0.0.1). Using the new `-output` functionality, this deployment could definitely\nbe simplified.\n\n[oauth-proxy]: https://oauth2-proxy.github.io/oauth2-proxy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjpitz%2Femc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjpitz%2Femc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjpitz%2Femc/lists"}