{"id":28387578,"url":"https://github.com/httpcats/http-cat-element","last_synced_at":"2026-03-19T01:38:30.224Z","repository":{"id":18224311,"uuid":"21365089","full_name":"httpcats/http-cat-element","owner":"httpcats","description":":cat: Web Component for embedding HTTP Cats images","archived":false,"fork":false,"pushed_at":"2025-03-30T22:52:53.000Z","size":173,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T13:19:26.010Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://httpcats.github.io/http-cat-element/","language":"JavaScript","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/httpcats.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":"2014-06-30T20:34:57.000Z","updated_at":"2025-03-31T18:30:09.000Z","dependencies_parsed_at":"2025-03-30T23:01:39.925Z","dependency_job_id":"d72be6ec-23db-4cdd-8921-83504b24977b","html_url":"https://github.com/httpcats/http-cat-element","commit_stats":null,"previous_names":["httpcats/http-cat-element","rogeriopvl/http-cat-element"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/httpcats/http-cat-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpcats%2Fhttp-cat-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpcats%2Fhttp-cat-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpcats%2Fhttp-cat-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpcats%2Fhttp-cat-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/httpcats","download_url":"https://codeload.github.com/httpcats/http-cat-element/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/httpcats%2Fhttp-cat-element/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262139506,"owners_count":23265169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-05-30T18:37:54.699Z","updated_at":"2026-01-07T15:53:50.342Z","avatar_url":"https://github.com/httpcats.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-cat\n\n\u003cimg src=\"https://http.cat/204\" alt=\"http status cat 204\" width=\"250\"\u003e\n\nThis is a web component for embedding images from [HTTP Cats](https://http.cat).\n\nHere's a [live demo](http://httpcats.github.io/http-cat-element).\n\n## Install\n\n```shell\nnpm install @http.cat/http-cat-element\n```\n\n## Import\n\nIf installed via NPM:\n\n```js\nimport \"@http.cat/http-cat-element\";\n```\n\nOr just import the component file in your HTML:\n\n```html\n\u003cscript type=\"module\" src=\"http-cat.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\nTo use it just add the following markup to your HTML:\n\n```html\n\u003chttp-cat status=\"404\"\u003e\u003c/http-cat\u003e\n```\n\n### Attributes\n\n- `status`: change it so that the image matches the corresponding HTTP status code\n\nThis component supports all `img` element attributes.\n\n## Why didn't you extend the `img` native element instead?\n\nSafari does not currently support custom elements that extend native elements. Therefore, an autonomous custom element is used to ensure maximum browser compatibility.\n\n## LICENSE\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpcats%2Fhttp-cat-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttpcats%2Fhttp-cat-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttpcats%2Fhttp-cat-element/lists"}