{"id":16681438,"url":"https://github.com/awernick/google-assistant-node","last_synced_at":"2026-05-01T20:31:14.029Z","repository":{"id":51412062,"uuid":"93791597","full_name":"awernick/google-assistant-node","owner":"awernick","description":"Google Assistant SDK wrapper for Node (DEPRECATED use https://github.com/endoplasmic/google-assistant)","archived":false,"fork":false,"pushed_at":"2023-01-11T11:26:37.000Z","size":602,"stargazers_count":0,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T09:48:05.046Z","etag":null,"topics":["google-assistant","google-assistant-sdk","googleapi"],"latest_commit_sha":null,"homepage":"","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/awernick.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}},"created_at":"2017-06-08T21:02:17.000Z","updated_at":"2020-05-18T08:02:15.000Z","dependencies_parsed_at":"2023-02-09T02:45:54.379Z","dependency_job_id":null,"html_url":"https://github.com/awernick/google-assistant-node","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/awernick/google-assistant-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awernick%2Fgoogle-assistant-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awernick%2Fgoogle-assistant-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awernick%2Fgoogle-assistant-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awernick%2Fgoogle-assistant-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awernick","download_url":"https://codeload.github.com/awernick/google-assistant-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awernick%2Fgoogle-assistant-node/sbom","scorecard":{"id":218979,"data":{"date":"2025-08-11","repo":{"name":"github.com/awernick/google-assistant-node","commit":"395e11cd21d62aab2aa967df9cdaa879ebc0191c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/29 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":"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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"63 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-rvg8-pwq2-xj7q","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-rq8g-5pc5-wrhr","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-hr2v-3952-633q","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-xf7w-r453-m56c","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-7543-mr7h-6v86","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-pp75-xfpw-37g9","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-g6ww-v8xp-vmwg","Warn: Project is vulnerable to: GHSA-762f-c2wg-m8c8","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-6g33-f262-xjp4","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-w5fc-gj3h-26rx","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-j44m-qm6p-hp7m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"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-17T02:08:33.436Z","repository_id":51412062,"created_at":"2025-08-17T02:08:33.436Z","updated_at":"2025-08-17T02:08:33.436Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32512662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["google-assistant","google-assistant-sdk","googleapi"],"created_at":"2024-10-12T14:04:12.996Z","updated_at":"2026-05-01T20:31:13.801Z","avatar_url":"https://github.com/awernick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Assistant SDK for Node\n\n**DEPRECATED** Use https://github.com/endoplasmic/google-assistant instead.\n\nThis wrapper allows you to use the Google Assistant api in any Node application.\nIt handles events, audio buffering, and client connection automatically.\n\nThis module uses the GRPC implementation of the Google Assistant SDK.\nMore info can be found [here](https://developers.google.com/assistant/sdk/reference/rpc/google.assistant.embedded.v1alpha1).\n\n## Installation\n```sh\nnpm install google-assistant-node\n```\n\n## Usage\n```js\nlet GoogleAssistant = require('google-assistant-node');\nlet constants = GoogleAssistant.Constants;\nlet encodings = constants.Encoding;\n\nlet assistant = new GoogleAssistant({\n  input: {\n    encoding: encodings.LINEAR16,\n    sampleRateHertz: 16000\n  },\n  output: {\n    encoding: encodings.MP3,\n    sampleRateHertz: 16000,\n    volumePercentage: 100\n  }\n});\n\n// Audio Data (bytes)\nassistant.on('audio-data', (data) =\u003e {\n});\n\n//  Reponse Text (string)\nassistant.on('response-text', (text) =\u003e {\n});\n\n//  Request Text (string)\nassistant.on('request-text', (text) =\u003e {\n});\n\n//  Conversation State (bytes)\nassistant.on('state', (state) =\u003e {\n});\n\n//  Microphone Mode (int)\nassistant.on('mic-mode', (mode) =\u003e {\n});\n\n// Authorization error (error)\n// E.g. Did not authenticate with OAuth client\nassistant.on('unauthorized', (error) =\u003e {\n})\n\n//  Error (error)\nassistant.on('error', (error) =\u003e {\n});\n\n// Assistant is ready to accept audio data. NOTE: .once() is used.\nassistant.once('ready', (wstream) =\u003e {\n  audioData.pipe(wstream);\n});\n\n// Current conversation is over. \n// NOTE: 'end' will be called even if there is a 'follow-on' event.\nassistant.once('end', () =\u003e {\n});\n\n// Assistant is expecting a follow-on response from user.\nassistant.on('follow-on', () =\u003e {\n  \n  // Setup follow-on 'ready' and 'end' event handler to change audio source\n  // if desired (or if you used .once()).\n  assistant.once('ready', (wstream) =\u003e { \n    moreAudioData.pipe(wstream)\n  });\n  \n  // Handle follow-on conversation end.\n  assistant.once('end', () =\u003e {\n    moreAudioData.end();\n  }) \n\n  // Don't forget to call .converse() to resume conversation\n  assistant.converse();\n})\n\n// Use Google OAuth Client to authenticate: \n// https://github.com/google/google-auth-library-nodejs \n// or\n// https://github.com/google/google-api-nodejs-client\nassistant.authenticate(authClient);\n\n// Start conversation\nassistant.converse();\n```\n\n### Constants\n#### Encoding\n- LINEAR16: Uncompressed 16-bit signed little-endian samples.\n- FLAC: Free Lossless Audio Codec. Input audio only.\n- MP3: MP3 Audio Encoding. Output audio only.\n- OPUS_IN_OGG: Opus-encoded audio wrapped in an ogg container. Output audio only.\n\n#### MicMode\n- CLOSE_MICROPHONE: The service is not expecting a follow-on question from the user. \n- DIALOG_FOLLOW_ON: The service is expecting a follow-on question from the user. \n\n## Contributing\nPlease feel free to make pull requests if you want to include a feature or\nif you fix an issue previously reported in the tracker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawernick%2Fgoogle-assistant-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawernick%2Fgoogle-assistant-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawernick%2Fgoogle-assistant-node/lists"}