{"id":15777281,"url":"https://github.com/healeycodes/project-mood","last_synced_at":"2026-01-03T04:39:46.167Z","repository":{"id":112378214,"uuid":"174847672","full_name":"healeycodes/project-mood","owner":"healeycodes","description":"Node.js API for generating GitHub badges depending on a repository's mood 🌸🔵☀️🌃","archived":false,"fork":false,"pushed_at":"2024-07-07T11:56:08.000Z","size":71,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-05T17:43:19.579Z","etag":null,"topics":["badge","github-badge","nodejs"],"latest_commit_sha":null,"homepage":"","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/healeycodes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-10T16:09:51.000Z","updated_at":"2024-06-26T16:11:53.000Z","dependencies_parsed_at":"2024-10-25T22:30:15.033Z","dependency_job_id":"3e250a7f-d23b-443c-9fa8-908f9e612702","html_url":"https://github.com/healeycodes/project-mood","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/healeycodes/project-mood","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fproject-mood","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fproject-mood/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fproject-mood/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fproject-mood/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/healeycodes","download_url":"https://codeload.github.com/healeycodes/project-mood/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/healeycodes%2Fproject-mood/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269371262,"owners_count":24406265,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["badge","github-badge","nodejs"],"created_at":"2024-10-04T17:43:24.455Z","updated_at":"2026-01-03T04:39:46.130Z","avatar_url":"https://github.com/healeycodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/healeycodes/project-mood.svg?branch=master)](https://travis-ci.org/healeycodes/project-mood)\n\n## Project Mood\n\nCreate a badge by pointing an image markup tag to `/:owner/:repo.svg` e.g. `/healeycodes/project-mood.svg`. The API works with any public repository.\n\nGit commits are scanned using the GitHub API to create a dynamic badge based off average commit time.\n\nSVGs will have the average commit time as hover text via the inner-SVG tag `\u003ctitle\u003e`.\n\n\u003cbr\u003e\n\n| ![](https://github.com/healeycodes/project-mood/blob/master/samples/project%20mood-morning.svg) | ![](https://github.com/healeycodes/project-mood/blob/master/samples/project%20mood-day-time.svg) | ![](https://github.com/healeycodes/project-mood/blob/master/samples/project%20mood-twilight.svg) | ![](https://github.com/healeycodes/project-mood/blob/master/samples/project%20mood-night-time.svg)\n| - | - | - | -\n\n\n\n\n### Roadmap 🚗\n\nIf I continue working on this, these are the things that will need to be addressed:\n\n- Caching:\n  - Repositories should be scanned infrequently rather than per request.\n  - We can store the most recently requested SVGs in memory.\n  - Basically, don't generate the SVG for every request (which is used for the prototype).\n- Blended colors depending on average time rather than fixed colors.\n\n\u003cbr\u003e\n\n### Install\n\n`npm i`\n\n\u003cbr\u003e\n\n### Authentication\n\nFor running and testing, set `GHTOKEN` to your GitHub [personal access token](https://github.com/settings/tokens), and `USERAGENT` to a custom user-agent (required by GitHub).\n\n\u003cbr\u003e\n\n### Run\n\n(Optional) set a port via `PORT` -- `8080` by default.\n\n`npm start`\n\n\u003cbr\u003e\n\n### Test\n\nThis repo uses Travis CI which currently builds and tests for commits/branches/PRs\n\nThe test framework is Mocha/SuperTest.\n\nSet `NODE_ENV` to `test`.\n\n`npm test`\n\n```\n  GET /healeycodes/project-mood\n    √ responds with an SVG (586ms)\n\n  GET /healeycodes/missing-or-mispelled-project\n    √ responds with the default errored SVG (395ms)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fproject-mood","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhealeycodes%2Fproject-mood","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhealeycodes%2Fproject-mood/lists"}