{"id":13809826,"url":"https://github.com/recombee/js-api-client","last_synced_at":"2026-03-06T09:06:31.460Z","repository":{"id":39580171,"uuid":"156203410","full_name":"recombee/js-api-client","owner":"recombee","description":"JavaScript client for easy use of the Recombee recommendation API from frontend","archived":false,"fork":false,"pushed_at":"2026-02-07T10:33:22.000Z","size":855,"stargazers_count":23,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-02-23T12:19:50.810Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.recombee.com/js_client","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/recombee.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,"zenodo":null}},"created_at":"2018-11-05T10:58:24.000Z","updated_at":"2025-12-02T12:46:51.000Z","dependencies_parsed_at":"2023-02-08T19:31:31.859Z","dependency_job_id":"b03dcd9c-0b44-42ca-b6bc-61cbd84f36d5","html_url":"https://github.com/recombee/js-api-client","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"9478225eaf8d44498726aba5d506109de3bacc08"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/recombee/js-api-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fjs-api-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fjs-api-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fjs-api-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fjs-api-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/recombee","download_url":"https://codeload.github.com/recombee/js-api-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/recombee%2Fjs-api-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30168626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-04T02:00:36.938Z","updated_at":"2026-03-06T09:06:31.129Z","avatar_url":"https://github.com/recombee.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/recombee/.github/refs/heads/main/assets/mark.svg\" width=\"64px\" align=\"center\" alt=\"Recombee\" /\u003e\n  \u003cbr/\u003e\n  \u003ch1\u003eRecombee API Client\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/recombee-js-api-client\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/recombee-js-api-client\" alt=\"Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" rel=\"nofollow\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/recombee-js-api-client\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://docs.recombee.com/js_client\"\u003eDocumentation\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"https://github.com/recombee/js-api-client/issues/new\"\u003eIssues\u003c/a\u003e\n  \u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n  \u003ca href=\"mailto:support@recombee.com\"\u003eSupport\u003c/a\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n## ✨ Features\n\n- Thin JavaScript wrapper around the Recombee API\n- Supported endpoints: [Interactions](https://docs.recombee.com/api#user-item-interactions), [Recommendations](https://docs.recombee.com/api#recommendations) \u0026 [Search](https://docs.recombee.com/api#search)\n- UMD-compatible\n- TypeScript definitions included\n\n## 🚀 Getting Started\n\nThere are two ways to include the library in your project:\n\n### 🔌 Install via code snippet\n\nYou can add the following `\u003cscript\u003e` tag into your HTML file:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/recombee-js-api-client@6.1.0/dist/recombee-api-client.min.js\"\u003e\u003c/script\u003e\n```\n\nAfter this script is included, you can access the client using the global `recombee` object (also available as `window.recombee`).\n\n### 📦 Install via package manager\n\nIf you prefer, you can also use a package manager:\n\n```sh\nnpm install recombee-js-api-client\n# or\nyarn add recombee-js-api-client\n# or\npnpm add recombee-js-api-client\n# or\nbun add recombee-js-api-client\n```\n\nAfterwards, you can import the `recombee` object:\n\n```js\nimport recombee from 'recombee-js-api-client'\n```\n\n### 🏗️ Example\n\nWith the `recombee` object, you can send user-item interactions and receive recommendations as follows:\n\n```js\n// Initialize the API client with the ID of your database and the associated PUBLIC token\nexport const client = new recombee.ApiClient(\n  'database-id',\n  '...db-public-token...',\n  {\n    // the region of your database (default: 'eu-west')\n    region: 'us-west',\n  },\n);\n\n// Send interactions\nclient.send(\n  new recombee.AddDetailView('user-4395', 'item-129', {\n    cascadeCreate: true,\n    recommId: '23eaa09b-0e24-4487-ba9c-8e255feb01bb',\n  }),\n);\n\n// Request recommendations\nclient\n  .send(\n    new recombee.RecommendItemsToItem('item-356', 'user-13434', 5, {\n      returnProperties: true,\n      includedProperties: ['title'],\n    }),\n  )\n  .then((response) =\u003e {\n    // `recommId` needs to be sent with interactions based on recommendations\n    console.log(response.recommId);\n\n    // The `recomms` object contains the `id` (and `values` if `returnProperties` is true)\n    response.recomms.forEach((item) =\u003e {\n      console.log(`ID: ${item.id}, Title: ${item.values.title}`);\n    });\n  })\n  .catch((error) =\u003e {\n    console.log(error);\n    // use fallback...\n  });\n```\n\n## 📝 Documentation\n\nDiscover the full [JavaScript API Client documentation](https://docs.recombee.com/js_client) for comprehensive guides and examples.\n\nFor a complete breakdown of all endpoints and their responses, check out our [API Reference](https://docs.recombee.com/api).\n\n## 🤝 Contributing\n\nWe welcome all contributions—whether it’s fixing a bug, improving documentation, or suggesting a new feature.\n\nTo contribute, simply fork the repository, make your changes, and submit a pull request. Be sure to provide a clear description of your changes.\n\nThanks for helping make this project better!\n\n## 🔧 Troubleshooting\n\nAre you having issues? We recommend checking [our documentation](https://docs.recombee.com/js_client) to see if it contains a possible solution.\n\nIf you want to reach out, you can either [open a GitHub issue](https://github.com/recombee/js-api-client/issues/new) or send an email to support@recombee.com.\n\n## 📄 License\n\nThe Recombee JavaScript API Client is provided under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecombee%2Fjs-api-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecombee%2Fjs-api-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecombee%2Fjs-api-client/lists"}