{"id":42460407,"url":"https://github.com/seshchat/react-native-mesa","last_synced_at":"2026-01-28T09:17:32.730Z","repository":{"id":38887066,"uuid":"260194616","full_name":"seshchat/react-native-mesa","owner":"seshchat","description":"📲 Mesa component for React Native apps","archived":false,"fork":false,"pushed_at":"2023-01-06T06:45:57.000Z","size":1048,"stargazers_count":1,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T13:13:01.819Z","etag":null,"topics":["cryb","mesa","react-native","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/seshchat.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-04-30T11:35:41.000Z","updated_at":"2020-07-17T07:51:44.000Z","dependencies_parsed_at":"2023-02-05T13:45:20.291Z","dependency_job_id":null,"html_url":"https://github.com/seshchat/react-native-mesa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seshchat/react-native-mesa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seshchat%2Freact-native-mesa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seshchat%2Freact-native-mesa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seshchat%2Freact-native-mesa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seshchat%2Freact-native-mesa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seshchat","download_url":"https://codeload.github.com/seshchat/react-native-mesa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seshchat%2Freact-native-mesa/sbom","scorecard":{"id":813165,"data":{"date":"2025-08-11","repo":{"name":"github.com/seshchat/react-native-mesa","commit":"6ec08973bb3c38a3fc369ab506a9d52a61272b67"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"48 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-f5x2-xv93-4p23","Warn: Project is vulnerable to: GHSA-gmpm-xp43-f7g6","Warn: Project is vulnerable to: GHSA-pf27-929j-9pmm","Warn: Project is vulnerable to: GHSA-327c-qx3v-h673","Warn: Project is vulnerable to: GHSA-x4cf-6jr3-3qvp","Warn: Project is vulnerable to: GHSA-mph8-6787-r8hw","Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-v8v8-6859-qxm4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-7f53-fmmv-mfjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T13:37:33.031Z","repository_id":38887066,"created_at":"2025-08-23T13:37:33.031Z","updated_at":"2025-08-23T13:37:33.031Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28843430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cryb","mesa","react-native","websocket"],"created_at":"2026-01-28T09:17:32.019Z","updated_at":"2026-01-28T09:17:32.720Z","avatar_url":"https://github.com/seshchat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-mesa\n[Mesa](https://github.com/crybapp/mesa) component for React Native, utilising [mesa-js-client](https://github.com/neoncloth/mesa-js-client)\n\n## Installation\nThis module library is available on the [NPM registry](https://www.npmjs.com/package/react-native-mesa). To install, run:\n```bash\nnpm i react-native-mesa --save\n```\nIf you're using [Yarn](https://yarnpkg.com), run:\n\n```bash\nyarn add react-native-mesa\n```\n\n## Setup\nThere are two ways you can setup `react-native-mesa` in your project.\n\nIf you just want to use it in a simple application, follow the Basic Usage example. If you want to use `react-native-mesa` in a more complex manor, such as being able to send messages from multiple components, follow the Advanced Usage example\n\n### Basic Usage\n`react-native-mesa` is incredibly easy to setup for basic usage. Below is an example of how to get going:\n```jsx\nimport Mesa from 'react-native-mesa'\n\nfunction App() {\n  function onConnected() {\n    console.log('Connected to Mesa')\n  }\n\n  function onMessage(opcode: number, data: any, type: string) {\n    console.log('Recieved', opcode, data, type)\n  }\n\n  function onDisconnected() {\n    console.log('Disconnected from Mesa')\n  }\n\n  function onError(error) {\n    console.log('Mesa error occured', error)\n  }\n\n  return (\n    \u003cFragment\u003e\n      \u003cMesa\n        url=\"ws://localhost:4000\"\n        \n        onConnected={onConnected}\n        onDisconnected={onDisconnected}\n\n        onMessage={onMessage}\n        onError={onError}\n      /\u003e\n    \u003c/Fragment\u003e\n  )\n}\n```\n\n#### Authentication\n`react-native-mesa` support authentication. Simply pass the component an `authorization` object containing whatever you need for your Mesa client to be authenticated with your server:\n```jsx\n\u003cMesa\n  url=\"ws://localhost:4000\"\n  authorization={{ token: fetchToken() }}\n/\u003e\n```\n\nYour client will sent the authorization message as soon as it makes a connection\n\n### Advanced Usage\nIf you wish to use `react-native-mesa` in multiple components, requires a little bit of setup in your project to get going.\n\nFirstly, wrap your top-level component with `\u003cMesaProvider /\u003e`.\n\n*Note: `\u003cMesaProvider /\u003e` takes in the exact same props as the `\u003cMesa /\u003e` component from the example above.*\n\n```jsx\nimport { MesaProvider } from 'react-native-mesa'\n\nfunction App() {\n  function onConnected() {\n    console.log('Connected to Mesa')\n  }\n\n  function onMessage(opcode: number, data: any, type: string) {\n\n  }\n\n  function onDisconnected() {\n    console.log('Disconnected from Mesa')\n  }\n\n  function onError(error) {\n    console.log('Mesa error occured', error)\n  }\n\n  return (\n    \u003cMesaProvider\n      url={getGatewayUrl()}\n\n      onConnected={onConnected}\n      onDisconnected={onDisconnected}\n\n      onMessage={onMessage}\n      onError={onError}\u003e\n      \u003cMessageList /\u003e\n      \u003cMessageBar /\u003e\n    \u003c/MesaProvider\u003e\n  )\n}\n```\n\n*Note: MesaProvider doesn't have to be the very, very top level component but high enough in the hierarchy to cover any components you want to send messages from.*\n\nAny components you want to send messages from have to be located (not directly) inside of `\u003cMesaProvider /\u003e`.\n\nYou then need to connect your component with `connectMesa`. After this is completed, you can send a message using `Props.sendMessage`:\n```jsx\nimport { connectMesa } from 'react-native-mesa'\n\nclass MessageBar extends Component {\n  onSend(content) {\n    this.props.sendMessage({\n      opcode: 0,\n      data: { content },\n      type: 'NEW_MESSAGE'\n    })\n  }\n\n  render() {\n    return \u003cInput onSend={this.onSend} /\u003e\n  }\n}\n\nconst ConnectedMessageBar = connectMesa(MessageBar)\n\nexport default ConnectedMessageBar\n```\n\nIf you're using React 16.8, you can use a Hook instead of a higher order component:\n```tsx\nimport { useMesa } from 'react-native-mesa'\n\nexport default function MessageBar({ sendMessage }) {\n  const { sendMessage } = useMesa()\n\n  function onSend(content) {\n    sendMessage({\n      opcode: 0,\n      data: { content },\n      type: 'NEW_MESSAGE'\n    })\n  }\n\n  return \u003cInput onSend={onSend} /\u003e\n}\n```\n\n## Questions / Issues\nIf you have an issues with `react-native-mesa`, please either open a GitHub issue or contact a maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseshchat%2Freact-native-mesa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseshchat%2Freact-native-mesa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseshchat%2Freact-native-mesa/lists"}