{"id":21894394,"url":"https://github.com/pocket/firefox-android-home-recommendations","last_synced_at":"2025-07-17T17:34:03.795Z","repository":{"id":36992601,"uuid":"394806514","full_name":"Pocket/firefox-android-home-recommendations","owner":"Pocket","description":"REST API endpoint for Firefox Android home recommendations","archived":false,"fork":false,"pushed_at":"2024-10-03T21:33:03.000Z","size":2065,"stargazers_count":5,"open_issues_count":3,"forks_count":2,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-28T22:07:18.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pocket.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-10T23:36:16.000Z","updated_at":"2024-10-03T21:32:08.000Z","dependencies_parsed_at":"2024-11-28T14:02:18.620Z","dependency_job_id":null,"html_url":"https://github.com/Pocket/firefox-android-home-recommendations","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/Pocket%2Ffirefox-android-home-recommendations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pocket%2Ffirefox-android-home-recommendations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pocket%2Ffirefox-android-home-recommendations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pocket%2Ffirefox-android-home-recommendations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pocket","download_url":"https://codeload.github.com/Pocket/firefox-android-home-recommendations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249102177,"owners_count":21213159,"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-11-28T13:22:24.629Z","updated_at":"2025-04-15T15:44:02.392Z","avatar_url":"https://github.com/Pocket.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firefox Android Home Recommendations API\n\nProvides recommendations to be consumed by Firefox for Android.\n\n## Application Overview\n\n[Express](https://expressjs.com/) is the Node framework, [Apollo Client](https://www.apollographql.com/docs/apollo-server/) is used in Express to request data from [Client API](https://github.com/Pocket/client-api/).\n\n### Caching\n\nBecause all Firefox Android clients will be hitting this endpoint, caching is _very_ aggressive.\n\nIn AWS (but _not_ for local development), our cache header on the Express endpoint is `'Cache-control', 'public, max-age=1800'`. We also have a CDN in place which respects this cache header, meaning the _most_ frequent the underlying service will be hit is every 30 minutes.\n\nAs of this writing (2021-08-19), the underlying recommendation service will update _at most_ every hour. We have chosen a 30 minute cache for practicality (a faster expire time just in case), and performance reasons (2 service hits per hour is well within our application service limits).\n\n## Local Development\n\n### Fresh Setup\n\nClone the repo:\n\n- `git clone git@github.com:Pocket/firefox-android-home-recommendations.git`\n- `cd firefox-android-home-recommendations`\n\nInstall the packages:\n\n- `npm install`\n\n### Running Tests\n\nTest are run via `npm` commands:\n\n- Unit/functional: `npm test`\n\n#### Testing Client API\n\n- Run `npm run start:dev`.\n- Load up `http://localhost:4005` in your browser. There you go.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocket%2Ffirefox-android-home-recommendations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocket%2Ffirefox-android-home-recommendations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocket%2Ffirefox-android-home-recommendations/lists"}