{"id":21493604,"url":"https://github.com/alienkevin/elm-github-cards","last_synced_at":"2026-03-19T20:37:51.107Z","repository":{"id":97740240,"uuid":"260339014","full_name":"AlienKevin/elm-github-cards","owner":"AlienKevin","description":"Card for your GitHub profile and GitHub repositories in Elm Applications","archived":false,"fork":false,"pushed_at":"2022-07-21T01:19:45.000Z","size":270,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T19:03:17.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://alienkevin.github.io/elm-github-cards","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlienKevin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2020-04-30T23:20:59.000Z","updated_at":"2020-05-01T00:10:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"d430a9d8-4d98-49c5-9e7c-f1506905884c","html_url":"https://github.com/AlienKevin/elm-github-cards","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlienKevin/elm-github-cards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Felm-github-cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Felm-github-cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Felm-github-cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Felm-github-cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlienKevin","download_url":"https://codeload.github.com/AlienKevin/elm-github-cards/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlienKevin%2Felm-github-cards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-23T15:43:38.181Z","updated_at":"2026-02-15T21:31:59.503Z","avatar_url":"https://github.com/AlienKevin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-github-cards\n\nShow cards of Github repos and users\n\n![github cards demo](/media/github-cards-demo.png)\n\nAlso supports Medium theme:\n\n![github cards in Medium theme](/media/medium-theme.png)\n\nThis project is based on lepture's [github-cards](https://github.com/lepture/github-cards)\n\n# Usage\nAdapt `public/index.html` and `src/Main.elm` to your Elm project.\n\nIf you encounter CORS policy restriction or GitHub API rate limits, try registering your app on GitHub following instructions [here](https://developer.github.com/v3/guides/basics-of-authentication/#implementing-persistent-authentication)\nThe followings are sample `client-id` and `client-secret`, you should generate your own.\n```html\n\u003cmeta name=\"gc:client-id\" content=\"e1278ru7243sa42s\"\u003e\n\u003cmeta name=\"gc:client-secret\" content=\"iese2834024jks82248jkwe\"\u003e\n```\n\n# Customization\n\nData parameters:\n\n* user: GitHub username\n* repo: GitHub repository name\n* width: Embed width you want, default is 400\n* height: Embed height you want, default is 200\n* theme: GitHub card theme, default is default\n* target: If you want to open links in new tab, set it to blank\n* client_id: Your app client_id, optional\n* client_secret: Your app client_secret, optional\n\nAdd or modify data attributes using `Html.Attributes.attribute` in the `viewGithubCard` function:\n\n```elm\nviewGithubCard : List (Html.Attribute Msg) -\u003e Html Msg\nviewGithubCard attributes =\n    Html.div\n        ([ Html.Attributes.class \"github-card\"\n        , Html.Attributes.attribute \"data-width\" \"300\"\n        , Html.Attributes.attribute \"data-height\" \"\"\n        , Html.Attributes.attribute \"data-theme\" \"default\"\n        , Html.Attributes.attribute \"data-target\" \"blank\"\n        ] ++ attributes)\n        []\n```\n\n# Ad Blockers\nSome Ad Blockers like [Privacy Badger](https://chrome.google.com/webstore/detail/privacy-badger/pkehgijcmpdhfbdbbnkijodmdjhbjlgp) might block the api requests, make sure to unblock them to see the cards.\n\n# Development\nRun the example with [`elm-live`](https://github.com/wking-io/elm-live)\n```\nsed -i 's+src=\"elm.js\"+src=\"/public/elm.js\"+' public/index.html\nelm-live src/Main.elm --start-page public/index.html -- --output=public/elm.js\n```\n\n# Deployment\nRun the build script\n```\n./build.sh\n```\n\n\u003e Note: you may have to enable execution permission for the build script using `chmod +x ./build.sh` before you can run it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Felm-github-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falienkevin%2Felm-github-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falienkevin%2Felm-github-cards/lists"}