{"id":31765852,"url":"https://github.com/mybigday/react-native-qnn-llm","last_synced_at":"2026-05-18T02:01:29.381Z","repository":{"id":307844459,"uuid":"1030808183","full_name":"mybigday/react-native-qnn-llm","owner":"mybigday","description":"QNN LLM binding for React Native","archived":false,"fork":false,"pushed_at":"2026-04-01T08:43:13.000Z","size":1740,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-24T23:12:28.876Z","etag":null,"topics":["ai","llm","npu","npu-llm","qnn","qualcomm","qualcomm-npu","react-native"],"latest_commit_sha":null,"homepage":"","language":"C++","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/mybigday.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-02T11:17:38.000Z","updated_at":"2026-04-01T08:43:17.000Z","dependencies_parsed_at":"2025-10-02T13:03:07.494Z","dependency_job_id":null,"html_url":"https://github.com/mybigday/react-native-qnn-llm","commit_stats":null,"previous_names":["mybigday/react-native-qnn-llm"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mybigday/react-native-qnn-llm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-qnn-llm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-qnn-llm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-qnn-llm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-qnn-llm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mybigday","download_url":"https://codeload.github.com/mybigday/react-native-qnn-llm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mybigday%2Freact-native-qnn-llm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["ai","llm","npu","npu-llm","qnn","qualcomm","qualcomm-npu","react-native"],"created_at":"2025-10-10T00:27:06.454Z","updated_at":"2026-05-18T02:01:29.317Z","avatar_url":"https://github.com/mybigday.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-qnn-llm\n\nQualcomm lib Genie binding for React Native\n\n## Installation\n\n```sh\nnpm install react-native-qnn-llm\n```\n\n### Android Setup\n\n#### Download and setup env\n\n1. Download SDK from [here](https://www.qualcomm.com/developer/software/qualcomm-ai-engine-direct-sdk)\n2. Setup env `source path/to/QNN/SDK/bin/envsetup.sh`\n\n#### QNN libs\n\nAdd QNN libs dependency into `android/app/build.gradle`\n\n```diff\ndependencies {\n+   implementation \"com.qualcomm.qti:qnn-runtime:latest.integration@aar\"\n```\n\nOr set `useQnnSdkLib=true` in `android/gradle.properties`\n\nNotes: If you use dependency, the version should match QNN SDK version\n\n#### Proguard\n\n```diff\n+ -keep class com.qnnllm.** { *; }\n```\n\n## Usage\n\n```js\nimport { Context, SentenceCode } from 'react-native-qnn-llm';\n\nconst context = await Context.create(/* Genie config object */);\n// Or load bundled\n// const context = await Context.load({ bundle_path: 'path/to/bundle', unpack_dir: 'path/to/store/unpacked', n_thread?: Number })\n\nawait context.query('Hello, world!', (result, sentenceCode) =\u003e {\n  console.log(result);\n});\n\nawait context.save_session('path/to/session-directory');\n\nawait context.restore_session('path/to/session-directory');\n\nawait context.set_stop_words(['stop_word1', 'stop_word2']);\n\nawait context.apply_sampler_config({\n  /* Genie sampler config */\n});\n\nawait context.release();\n```\n\n## Bundled File\n\nTo easier to deploy model, we announced packed file struct.\n\n- Constant entry config path.\n- Auto resolve file path.\n- Patch config on load.\n\nYou can quickly pack your model files use [pack.py](https://github.com/mybigday/node-qnn-llm/blob/main/pack.py).\n\nUsage: `pack.py path/to/config.json`\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://bricks.tools\"\u003e\n    \u003cimg width=\"90px\" src=\"https://avatars.githubusercontent.com/u/17320237?s=200\u0026v=4\"\u003e\n  \u003c/a\u003e\n  \u003cp align=\"center\"\u003e\n    Built and maintained by \u003ca href=\"https://bricks.tools\"\u003eBRICKS\u003c/a\u003e.\n  \u003c/p\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybigday%2Freact-native-qnn-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmybigday%2Freact-native-qnn-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmybigday%2Freact-native-qnn-llm/lists"}