{"id":13825915,"url":"https://github.com/saurabhdaware/DEV-widget","last_synced_at":"2025-07-08T22:32:38.148Z","repository":{"id":98520036,"uuid":"211044520","full_name":"saurabhdaware/DEV-widget","owner":"saurabhdaware","description":"Unofficial Widget/profile card for https://dev.to/","archived":false,"fork":false,"pushed_at":"2023-05-06T21:12:44.000Z","size":110,"stargazers_count":95,"open_issues_count":6,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-17T23:08:10.809Z","etag":null,"topics":["dev","dev-to","dev-widget","hacktoberfest","profile-card","widget"],"latest_commit_sha":null,"homepage":"https://dev-widget.netlify.app/create","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/saurabhdaware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2019-09-26T08:54:47.000Z","updated_at":"2024-11-06T18:36:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"80ece2cf-d2ed-4a9b-8c87-94a0374ec904","html_url":"https://github.com/saurabhdaware/DEV-widget","commit_stats":{"total_commits":58,"total_committers":7,"mean_commits":8.285714285714286,"dds":0.1724137931034483,"last_synced_commit":"6c2e980a5fe3ba2931bb9d9d72e0040de9aab5f2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2FDEV-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2FDEV-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2FDEV-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2FDEV-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saurabhdaware","download_url":"https://codeload.github.com/saurabhdaware/DEV-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470631,"owners_count":17479366,"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":["dev","dev-to","dev-widget","hacktoberfest","profile-card","widget"],"created_at":"2024-08-04T09:01:29.081Z","updated_at":"2024-11-20T04:30:59.306Z","avatar_url":"https://github.com/saurabhdaware.png","language":"JavaScript","readme":"# DEV widget\n\u003cp align=\"left\"\u003e\n\u003cimg alt=\"GitHub package.json version\" src=\"https://img.shields.io/github/package-json/v/saurabhdaware/dev-widget?style=flat-square\"\u003e \u003ca href=\"CONTRIBUTING.md\"\u003e\u003cimg alt=\"Contributions to DEV Widget are welcomed\" src=\"https://img.shields.io/badge/contributions-welcome-brightgreen?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n***GUI to Generate Card***: [https://dev-widget.netlify.app/create](https://dev-widget.netlify.app/create)\n\n***Codepen***: [https://codepen.io/saurabhdaware/pen/NWWbOvv](https://codepen.io/saurabhdaware/pen/NWWbOvv)\n\nUnofficial Widget / profile card for [dev.to](https://dev.to/). \n\nYou can use it in your website/blog and show off your DEV.to articles :sunflower:\n\u003cbr\u003e\u003cbr\u003e\n\n[![Screenshot of the DEV.to Widget](https://res.cloudinary.com/saurabhdaware/image/upload/v1582470292/npm/Screenshot_from_2020-02-23_20-33-03.png)](#installation-and-usage)\n\n---\n\n## Installation and Usage\n\n\n### - Through script tag\n\n```html\n    \u003cdev-widget data-username=\"saurabhdaware\"\u003e\u003c/dev-widget\u003e\n\n    \u003c!-- Place script tag before the end of the body tag --\u003e\n    \u003cscript src=\"https://unpkg.com/dev-widget@^1/dist/card.component.min.mjs\" type=\"module\"\u003e\u003c/script\u003e\n```\n\n\n### - As NPM module\nThis can be used in React, Vue and almost any other frontend framework \n```sh\nnpm install --save dev-widget\n```\n\nInside your framework component\n```js\nimport 'dev-widget'\n```\n\n\n--- \n\n## Attributes Guide\n\n| attributes    | description                   | default                  | \n|---------------|-------------------------------|--------------------------|\n| data-username | Your DEV.to Username          |                          |\n| data-width    | Width of the card             | 300px                    |\n| data-contentheight | Height of the Aricles Container | 300px             |\n| data-theme    | **Theme of the card** (`dark`, `ocean`, `pink`, `cobalt2`, `default`) | default                  |\n| data-name (optional)    | Name to display on card       | Will be fetched from API |\n| data-limit    | Number of articles to display | 30                       |\n| data-sortby   | Sort articles (`date`, `reactions`) | date                |\n\n\n**Note:** Value of `data-limit` should not be too high. An API request has to be made for every 30 articles so for `data-limit=200` 7 API requests will be made synchronously.\n\nSo a full example with every attribute would look something like\n```html\n\u003cdev-widget \n    data-username=\"saurabhdaware\" \n    data-theme=\"ocean\" \n    data-sortby=\"reactions\" \n    data-width=\"320px\" \n    data-contentheight=\"200px\" \n    data-limit=\"3\" \n    data-name=\"Saurabh 😎\" \n\u003e\u003c/dev-widget\u003e\n\n\u003c!-- Place script tag before the end of the body tag --\u003e\n\u003cscript src=\"https://unpkg.com/dev-widget@^1/dist/card.component.min.mjs\" type=\"module\"\u003e\u003c/script\u003e\n```\n*Note: Only `data-username` is neccessary and every other attribute is optional*\n\n\n---\n## Themes\n`default` `ocean`  `pink`  `dark` `cobalt2`\n![DEV Widget themes](https://res.cloudinary.com/saurabhdaware/image/upload/v1574802681/saurabhdawaretk/dev-widget-2.png)\n\n---\n\n## Changelog\n**[RELEASES](https://github.com/saurabhdaware/DEV-widget/releases)**\n\n---\n\n## Contributing\n\nI would love to have some of your contributions to this project. You can checkout [CONTRIBUTING.md](CONTRIBUTING.md) for Contribution guidelines.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurabhdaware%2FDEV-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaurabhdaware%2FDEV-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurabhdaware%2FDEV-widget/lists"}