{"id":16326469,"url":"https://github.com/mudassir0909/stackoverflow-card","last_synced_at":"2025-03-22T21:33:14.652Z","repository":{"id":25541388,"uuid":"28974201","full_name":"mudassir0909/stackoverflow-card","owner":"mudassir0909","description":"Unofficial embeddable Stackoverflow profile summary card","archived":false,"fork":false,"pushed_at":"2022-11-19T14:15:20.000Z","size":524,"stargazers_count":11,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T15:16:51.111Z","etag":null,"topics":["card","html","javascript","stackoverflow","stackoverflow-card"],"latest_commit_sha":null,"homepage":"http://mudassir0909.github.io/stackoverflow-card/","language":"JavaScript","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/mudassir0909.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-08T16:17:14.000Z","updated_at":"2022-11-19T16:04:28.000Z","dependencies_parsed_at":"2023-01-14T02:55:30.093Z","dependency_job_id":null,"html_url":"https://github.com/mudassir0909/stackoverflow-card","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Fstackoverflow-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Fstackoverflow-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Fstackoverflow-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Fstackoverflow-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudassir0909","download_url":"https://codeload.github.com/mudassir0909/stackoverflow-card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245023831,"owners_count":20548784,"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":["card","html","javascript","stackoverflow","stackoverflow-card"],"created_at":"2024-10-10T23:08:29.535Z","updated_at":"2025-03-22T21:33:14.350Z","avatar_url":"https://github.com/mudassir0909.png","language":"JavaScript","readme":"# stackoverflow-card\r\nEmbed your Stackoverflow account summary into your website using these beautiful cards.\r\n![screenshot](https://raw.githubusercontent.com/mudassir0909/stackoverflow-card/master/assets/img/so-card.png)\r\n# Usage\r\nInsert the following tag in your document where you wish to include the card. **_This card occupies available parent container's `width`, so give some meaningful width to the parent element._**\r\n```html\r\n\u003cdiv id=\"so-card-widget\" data-userid=\"1482899\" data-theme=\"default\"\u003e\u003c/div\u003e\r\n```\r\n\r\n* `data-userid` must be your stackoverflow user id(you can find that in your stackoverflow profile url).\r\n* `data-theme` is the name of the theme you wish to use (default or minimal or custom). If no theme is specified the default theme `default` is used.\r\n\r\nIn addition to that you need to include the following `script` tag \u0026 voila !\r\n```html\r\n\u003cscript type=\"text/javascript\" src=\"//mudassir0909.github.io/stackoverflow-card/dist/1.0.0/so-card-widget.min.js\"\u003e\u003c/script\u003e\r\n```\r\n\r\n# Callback\r\nThis card fires a callback if it is done rendering the card. You should have a function named `soAsyncInit` defined globally. Stackoverflow profile data is passed along the callback;\r\n\r\n```javascript\r\nwindow.soAsyncInit = function(profile_data) {\r\n    // Do stuff;\r\n}\r\n```\r\n\r\n# Look and feel Customization\r\nThe card supports two themes out of the box\r\n\r\n### default\r\n![Default Theme](https://raw.githubusercontent.com/mudassir0909/stackoverflow-card/master/assets/img/so-card.png)\r\n\r\n### minimal\r\nThis removes profile picture from the card\r\n\r\n![screenshot](https://raw.githubusercontent.com/mudassir0909/stackoverflow-card/master/assets/img/so-card-theme-minimal.png)\r\n\r\n### custom\r\nWhen you specify this as an option. The stylesheet related to this card is not downloaded. You have to specify your own styles based on the class names. You can find the HTML structure [here](https://github.com/mudassir0909/stackoverflow-card/blob/master/lib/so-card-template.html)\r\n\r\n\r\n#### Note\r\nThese cards are not inserted using `iframe`, so change the look and feel as you like using your website's css. You can find the css [here](https://github.com/mudassir0909/stackoverflow-card/blob/master/widget.less). Feel free to override them classes !\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudassir0909%2Fstackoverflow-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudassir0909%2Fstackoverflow-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudassir0909%2Fstackoverflow-card/lists"}