{"id":23108612,"url":"https://github.com/venryx/react-native-libmuse","last_synced_at":"2025-08-16T17:32:45.761Z","repository":{"id":57338029,"uuid":"74509415","full_name":"Venryx/react-native-libmuse","owner":"Venryx","description":"Bridge between libmuse and react-native. (used for my other project)","archived":false,"fork":false,"pushed_at":"2023-07-04T09:59:41.000Z","size":1486,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-16T09:43:34.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/Venryx.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":"2016-11-22T20:14:27.000Z","updated_at":"2023-07-03T17:23:57.000Z","dependencies_parsed_at":"2022-09-12T13:12:40.821Z","dependency_job_id":null,"html_url":"https://github.com/Venryx/react-native-libmuse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Venryx/react-native-libmuse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venryx%2Freact-native-libmuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venryx%2Freact-native-libmuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venryx%2Freact-native-libmuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venryx%2Freact-native-libmuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Venryx","download_url":"https://codeload.github.com/Venryx/react-native-libmuse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Venryx%2Freact-native-libmuse/sbom","scorecard":{"id":147618,"data":{"date":"2025-08-11","repo":{"name":"github.com/Venryx/react-native-libmuse","commit":"1a0915068625d8aed8404216a86f32c4a0edb736"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Binary-Artifacts","score":7,"reason":"binaries present in source code","details":["Warn: binary detected: android/Libraries/libmuse_android.jar:1","Warn: binary detected: android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: android/src/main/jniLibs/armeabi-v7a/libmuse_android.so:1"],"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-16T09:42:58.485Z","repository_id":57338029,"created_at":"2025-08-16T09:42:58.485Z","updated_at":"2025-08-16T09:42:58.485Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270746671,"owners_count":24638391,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":[],"created_at":"2024-12-17T01:28:32.172Z","updated_at":"2025-08-16T17:32:45.248Z","avatar_url":"https://github.com/Venryx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-libmuse\n\nBridge between Muse EEG headsets and custom Android apps. (with passthrough API for react-native)\n\nNOTE: The NPM package hasn't been updated in a long time, so rather than \"npm install ...\" below, just clone this repo for the latest version for now.\n\n# Install\n\n1) Run \"npm install react-native-libmuse --save\".\n\n### Link module with Android app\n\n- in `android/app/build.gradle`:\n\n```diff\nandroid {\n    defaultConfig {\n+        ndk { abiFilters \"armeabi-v7a\" }\n    }\n}\n\ndependencies {\n    [...]\n    compile \"com.facebook.react:react-native:+\"  // from node_modules\n+   compile project(':react-native-libmuse')\n}\n```\n\n- in `android/settings.gradle`:\n\n```diff\n[...]\ninclude ':app'\n+ include ':react-native-libmuse'\n+ project(':react-native-libmuse').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-libmuse/android')\n```\n\n### Expose passthrough API for react-native (requires v0.29+)\n\n- in `MainApplication.java`:\n\n```diff\n+ import com.v.LibMuse;\n\n  public class MainApplication extends Application implements ReactApplication {\n    [...]\n    @Override\n    protected List\u003cReactPackage\u003e getPackages() {\n      return Arrays.\u003cReactPackage\u003easList(\n+         new LibMuse(),\n          new MainReactPackage()\n      );\n    }\n    [...]\n  }\n```\n\n# Usage (Android API) [WIP]\n\n```kotlin\nimport VMuse from v.LibMuse;\n\nfun Start() {\n    val vMuse = VMuse()\n    vMuse.Init()\n    vMuse.StartSearch()\n    vMuse.AddEventListener(\"OnChangeMuseList\") { args -\u003e\n        var museList = args[0] as WritableArray\n        Log.i(TAG, \"MuseListSize: ${museList.size()}\");\n        if (museList.size() \u003e 0) {\n            vMuse.Connect()\n        }\n    }\n    vMuse.AddEventListener(\"OnChangeMuseConnectStatus\") { args -\u003e\n        var status = args[0] as String\n        Log.i(TAG, \"Status: $status\");\n    }\n    vMuse.AddEventListener(\"OnReceiveMuseDataPacket_Android\") { args -\u003e\n        var packet = args[0] as VMuseDataPacket\n        Log.i(TAG, \"Type: ${packet.type} ChannelValues: ${packet.eegValues.contentToString()}\");\n        // ex: \"Type: eeg ChannelValues: [0.0,728.901098901099,998.0586080586081,1517.838827838828,-1000000000,-1000000000]\"\n        // note that -1000000000 signifies \"not a number\", i.e. no data (communication channel doesn't support NaN)\n    }\n}\n```\n\n# Usage (react-native API)\n\n```javascript\nvar LibMuse = require(\"react-native-libmuse\");\nLibMuse.Init();\nLibMuse.StartSearch();\nLibMuse.AddListener_OnChangeMuseList(museList=\u003e {\n    console.log(`MuseListSize: ${museList.length}`);\n\tif (museList.length) {\n        LibMuse.Connect();\n    }\n});\nLibMuse.AddListener_OnChangeMuseConnectStatus(status=\u003e {\n    console.log(`Status: ${status}`);\n});\nLibMuse.AddListener_OnReceiveMuseDataPacket(packet=\u003e {\n    console.log(packet);\n    // ex: {eegValues: [0.0,728.901098901099,998.0586080586081,1517.838827838828,-1000000000,-1000000000]}\n\t// note that -1000000000 signifies \"not a number\", i.e. no data (communication channel doesn't support NaN)\n});\n```\n\n# Troubleshooting\n\n\u003e I hit an error: \"Duplicate class com.facebook.jni.CppException found in modules [...].jar\"\n\nYou're most likely using another Facebook library like pytorch, which contains duplicates of the Facebook JNI classes defined in react-native. To fix this, add `excludeReactNative = true` to your app's `gradle.properties` file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenryx%2Freact-native-libmuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenryx%2Freact-native-libmuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenryx%2Freact-native-libmuse/lists"}