{"id":13433869,"url":"https://github.com/Mergifyio/react-crisp","last_synced_at":"2025-03-17T13:31:02.428Z","repository":{"id":47038833,"uuid":"306583323","full_name":"Mergifyio/react-crisp","owner":"Mergifyio","description":"React implementation for Crisp","archived":true,"fork":false,"pushed_at":"2021-09-16T07:17:51.000Z","size":5414,"stargazers_count":10,"open_issues_count":4,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-28T16:13:47.997Z","etag":null,"topics":["crisp","react"],"latest_commit_sha":null,"homepage":"https://github.com/Mergifyio/react-crisp","language":"JavaScript","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/Mergifyio.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":null,"security":null,"support":null}},"created_at":"2020-10-23T09:04:43.000Z","updated_at":"2023-10-10T06:04:09.000Z","dependencies_parsed_at":"2022-09-23T11:03:44.729Z","dependency_job_id":null,"html_url":"https://github.com/Mergifyio/react-crisp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mergifyio%2Freact-crisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mergifyio%2Freact-crisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mergifyio%2Freact-crisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mergifyio%2Freact-crisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mergifyio","download_url":"https://codeload.github.com/Mergifyio/react-crisp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244041429,"owners_count":20388237,"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":["crisp","react"],"created_at":"2024-07-31T02:01:38.589Z","updated_at":"2025-03-17T13:31:02.014Z","avatar_url":"https://github.com/Mergifyio.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![Mergify Status][mergify-status]][mergify]\n\n[mergify]: https://mergify.io\n[mergify-status]: https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/Mergifyio/react-crisp\u0026style=flat\n\n# ⚠️ Repository Status ⚠️\n\nThis repository is not maintained anymore.\n\n# React-Crisp\n\nReact implementation for the messaging application [Crisp](https://crisp.chat/)\n\n# Install\n\n```shell\nnpm add react-crisp\nor\nyarn add react-crisp\n```\n\n# Usage\n\n```javascript\n/* Import the component */\nimport Crisp from 'react-crisp';\n\n/* Insert the componenent */\n\u003cCrisp crispWebsiteId=\"the-website-id-given-by-crisp\" /\u003e\n```\n\n# Identify the user and assign attributes\n\n```javascript\n\u003cCrisp\n    crispWebsiteId=\"the-website-id-given-by-crisp\" // Required\n    crispTokenId=\"a-unique-token-for-the-user\"\n    attributes={{\n        \"user:email\": [\"foo@bar.com\"],\n        \"user:nickname\": [\"foo42\"],\n    }}\n/\u003e\n```\n\nFor a complete list of attributes please see the [Crisp's Docs](https://help.crisp.chat/en/article/how-to-use-dollarcrisp-javascript-sdk-10ud15y/#2-set-a-value).\n\n# Configuration\n\n```javascript\n\u003cCrisp\n    crispWebsiteId=\"the-website-id-given-by-crisp\" // Required\n    crispTokenId=\"a-unique-token-for-the-user\"\n    configuration={{\n        \"position:reverse\": [true],\n    }}\n/\u003e\n```\nFor a complete list of parameters please see the [Crisp's Docs](https://help.crisp.chat/en/article/how-to-use-dollarcrisp-javascript-sdk-10ud15y/#2-changes-runtime-configuration).\n\n# Safe mode\n\nTo prevent Crisp to emit errors when an exception occurs, you may enable the Safe Mode (see [Crisp's Docs](https://help.crisp.chat/en/article/how-to-use-dollarcrisp-javascript-sdk-10ud15y/#1-disable-warnings-amp-errors). With `react-crisp` it's done like this:\n```javascript\n\u003cCrisp\n    crispWebsiteId=\"the-website-id-given-by-crisp\" // Required\n    safeMode\n/\u003e\n```\n\n# Set `CRISP_RUNTIME_CONFIG`\n\n```javascript\n\u003cCrisp\n    crispWebsiteId=\"the-website-id-given-by-crisp\" // Required\n    crispRuntimeConfig={{\n      session_merge: true,\n    }}\n/\u003e\n```\n\nFor more details about the variable `CRISP_RUNTIME_CONFIG` see [Crisp's Docs](https://help.crisp.chat/en/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMergifyio%2Freact-crisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMergifyio%2Freact-crisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMergifyio%2Freact-crisp/lists"}