{"id":16878840,"url":"https://github.com/peterj/color-app","last_synced_at":"2025-04-11T19:08:53.752Z","repository":{"id":48892400,"uuid":"314700524","full_name":"peterj/color-app","owner":"peterj","description":"Simple Node.js app with configurable background/foreground color, and a message","archived":false,"fork":false,"pushed_at":"2022-03-01T22:05:35.000Z","size":339,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T15:01:42.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/peterj.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-11-21T00:24:00.000Z","updated_at":"2025-01-21T12:31:49.000Z","dependencies_parsed_at":"2022-09-17T04:40:30.980Z","dependency_job_id":null,"html_url":"https://github.com/peterj/color-app","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/peterj%2Fcolor-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fcolor-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fcolor-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterj%2Fcolor-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterj","download_url":"https://codeload.github.com/peterj/color-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248465313,"owners_count":21108244,"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":[],"created_at":"2024-10-13T15:51:44.256Z","updated_at":"2025-04-11T19:08:53.727Z","avatar_url":"https://github.com/peterj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Color App 🟥🟨🟩🟦\n\nThis app can be used in scenarios where you need multiple website instances that do nothing, but look different. This app displays a web page with a message in the center of the page. The colors (background and foreground) and the message are configurable through environment variables.\n\n## Configuration\n\n| Environment variable name | Description |\n| --- | --- |\n| `BG_COLOR` | Background color for the website (defaults to ⬛️) |\n| `FG_COLOR` | Foreground (text) color (defaults to ⬜️) |\n| `MESSAGE` | Message to be displayed (defaults to background color name, if not provided) |\n| `VERSION` | App version, returned from `/version` endpoint (defaults to package version, if not provided) |\n\nThe colors can be provided as names (`red`, `green`) or as HEX values (`#FF0000`, `#00ff00`).\n\n## Usage\n\n| Command | Rendered Page |\n| --- | --- |\n| `node app.js` | ![Default page](./img/default.png) |\n| `FG_COLOR=blue BG_COLOR=lightgreen node app.js` | ![Light green](./img/light-green.png) |\n| `MESSAGE=\"Hello world!\" FG_COLOR=\"#f3f4f6\" BG_COLOR=\"#2563eb\" node app.js` | ![Blue white with message](./img/blue-white-message.png) |\n\n### Using Docker image\n\nYou can also run the application as a Docker container. You can pull the image from `pj3677/color-app:1.0.0`.\n\nExample usage:\n\n```\ndocker run --env FG_COLOR=\"blue\" -p 3000:3000 pj3677/color-app:1.0.0\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterj%2Fcolor-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterj%2Fcolor-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterj%2Fcolor-app/lists"}