{"id":18340846,"url":"https://github.com/amercier/kitten-as-a-service","last_synced_at":"2026-04-30T09:37:12.727Z","repository":{"id":143103428,"uuid":"112737625","full_name":"amercier/kitten-as-a-service","owner":"amercier","description":"Web service written in NodeJS that displays a kitten image randomly picked from Bing Images","archived":false,"fork":false,"pushed_at":"2020-05-31T00:34:37.000Z","size":3290,"stargazers_count":1,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:49:47.612Z","etag":null,"topics":["bing","bing-api","bing-image","image","image-search","kaas","kitten","kittens","nodejs","service","web","webservice"],"latest_commit_sha":null,"homepage":"https://kitten.amercier.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amercier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2017-12-01T12:29:48.000Z","updated_at":"2023-03-08T16:54:06.000Z","dependencies_parsed_at":"2023-04-12T08:47:37.692Z","dependency_job_id":null,"html_url":"https://github.com/amercier/kitten-as-a-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amercier/kitten-as-a-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amercier%2Fkitten-as-a-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amercier%2Fkitten-as-a-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amercier%2Fkitten-as-a-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amercier%2Fkitten-as-a-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amercier","download_url":"https://codeload.github.com/amercier/kitten-as-a-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amercier%2Fkitten-as-a-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32460781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["bing","bing-api","bing-image","image","image-search","kaas","kitten","kittens","nodejs","service","web","webservice"],"created_at":"2024-11-05T20:24:25.307Z","updated_at":"2026-04-30T09:37:12.712Z","avatar_url":"https://github.com/amercier.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"kitten-as-a-service\n===================\n\n\u003e Web service written in NodeJS that displays a kitten image randomly picked from Bing Images.\n\n[![Build Status](https://img.shields.io/travis/amercier/kitten-as-a-service/master.svg)](https://travis-ci.org/amercier/kitten-as-a-service)\n[![Test Coverage](https://img.shields.io/codecov/c/github/amercier/kitten-as-a-service/master.svg)](https://codecov.io/github/amercier/kitten-as-a-service?branch=master)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/amercier/kitten-as-a-service.svg)](https://codeclimate.com/github/amercier/kitten-as-a-service)\n[![Greenkeeper](https://badges.greenkeeper.io/amercier/kitten-as-a-service.svg)](https://github.com/amercier/kitten-as-a-service/issues?q=label%3Agreenkeeper)\n\n\u003csup\u003e\u003csub\u003e_Created with [npm-p\u0026#97;ckage-skeleton](https://github.com/\u0026#97;mercier/npm-p\u0026#97;ckage-skeleton)._\u003c/sup\u003e\u003c/sub\u003e\n\nThe web service exposes mainly two URLs:\n- `/`: a web page, written in HTML/CSS/JS\n- `/kitten-{size}.jpg`: the endpoint for the random image, which can be used programatically, where `{size}` is one of the following:\n    - `small`: 480p or more, 30kB to 100kB\n    - `medium`: 720p or more, 50kB to 300kB\n    - `large`: 1080p or more, 100kb to 500kB\n    - `huge`: 2160p or more, 500kB to 5MB\n\nDemo\n----\n\n- Web: visit http://kitten.amercier.com/\n- Download a random kitten image programatically:\n```bash\ncurl --progress-bar -L http://kitten.amercier.com/kitten-huge.jpg -o kitten-huge.jpg\n```\n\nRequirements\n------------\n\n- You need an **API key for** the [Bing Images Search API](https://azure.microsoft.com/en-us/services/cognitive-services/bing-image-search-api/).\n- The following software:\n  - [NodeJS](https://nodejs.org/en/) \u003e= 8.9 ([NVM](https://github.com/creationix/nvm) recommended)\n  - [Yarn](https://yarnpkg.com/en/)\n\nMacOS install instructions using Homebrew:\n```bash\nbrew install nvm\nnvm install node\nnpm install -g yarn\n```\n\n\nLocal setup\n-----------\n\n1. Clone this repository\n```bash\ngit clone https://github.com/amercier/kitten-as-a-service.git\ncd kitten-as-a-service\n```\n2. Install dependencies\n```bash\nyarn install\n```\n3. Start server\n```bash\nexport MICROSOFT_AZURE_API_KEY=********* yarn start\n```\n4. Visit http://localhost:3000/\n\n\nDeployment\n----------\n\nDeploy on a NodeJS server (ex: Heroku), with the following environment variables:\n- `NODE_ENV` set to `production`\n- `MICROSOFT_AZURE_API_KEY` set to your [Bing Images Search API](https://azure.microsoft.com/en-us/services/cognitive-services/bing-image-search-api/) key\n\nAlso, you can set `DEBUG` to `true` to display more verbose logging.\n\n\nLicense\n-------\n\nThis project is released under [ISC License](LICENSE.md).\nAll Microsoft, Bing, Azure brands are property of their respective owners.\nAll pictures are property of their respective owners.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famercier%2Fkitten-as-a-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famercier%2Fkitten-as-a-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famercier%2Fkitten-as-a-service/lists"}