{"id":20169933,"url":"https://github.com/cnocon/express-github-stats-card","last_synced_at":"2025-04-10T02:25:51.902Z","repository":{"id":57102812,"uuid":"324422053","full_name":"cnocon/express-github-stats-card","owner":"cnocon","description":"A stats card for GitHub activity built for Node + Express applications.","archived":false,"fork":false,"pushed_at":"2021-01-28T09:42:20.000Z","size":189,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T21:37:09.404Z","etag":null,"topics":["express","express-js","expressjs","github","github-stats","github-stats-card","github-user-stats","npm"],"latest_commit_sha":null,"homepage":"","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/cnocon.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}},"created_at":"2020-12-25T19:34:51.000Z","updated_at":"2024-01-27T10:32:37.000Z","dependencies_parsed_at":"2022-08-20T23:50:20.363Z","dependency_job_id":null,"html_url":"https://github.com/cnocon/express-github-stats-card","commit_stats":null,"previous_names":["cnocon/github-stats-card"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnocon%2Fexpress-github-stats-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnocon%2Fexpress-github-stats-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnocon%2Fexpress-github-stats-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cnocon%2Fexpress-github-stats-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cnocon","download_url":"https://codeload.github.com/cnocon/express-github-stats-card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247704579,"owners_count":20982299,"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":["express","express-js","expressjs","github","github-stats","github-stats-card","github-user-stats","npm"],"created_at":"2024-11-14T01:14:24.921Z","updated_at":"2025-04-10T02:25:51.868Z","avatar_url":"https://github.com/cnocon.png","language":"JavaScript","readme":"# Express GitHub Stats Card\n\n[Demo application](https://github.com/cnocon/express-github-stats-card-demo)\n\n\u003cimg src=\"github-stats-card-screenshot.png\" alt=\"Widget screenshot\" width=\"320\" /\u003e\n\nPass in a minimum of your [GitHub access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) and a [GitHub username](https://docs.github.com/en/free-pro-team@latest/github/setting-up-and-managing-your-github-user-account/remembering-your-github-username-or-email) and get this:\n\n## Installation\n\n```bash\nnpm install express-github-stats-card\n```\n## Example using Express:\n\nThe Card function returns an HTML string you can append anywhere. The first argument is the GitHub username, the second is your GitHub access token, and the third is an optional `Boolean` for whether or not you want to style the card with the included theme. Defaults to `false`.\n\nBelow is code for a `server.js` file you can use as a guide for setting up this component in your own Express application. You can also check out the [demo app code](https://github.com/cnocon/express-github-stats-card-demo).\n\n```js\n// /server.js (command to run: node server.js)\nconst express = require('express');\nconst Card = require('./components/Card').Card;\n\nconst app = express();\n\napp.get('/', async (req, res) =\u003e {\n  // I used the dotenv npm package with a .env file containing GITHUB_ACCESS_TOKEN.\n  // THE .env file is in my .gitignore and will not show up here\n  const statsCard = await Card('cnocon', process.env.GITHUB_ACCESS_TOKEN, true);\n  res.send(statsCard);\n});\n\napp.listen(3000, () =\u003e {\n\tconsole.log('Server running on port 3000');\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnocon%2Fexpress-github-stats-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnocon%2Fexpress-github-stats-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnocon%2Fexpress-github-stats-card/lists"}