{"id":19603125,"url":"https://github.com/hack-chat/hackchat-engine","last_synced_at":"2025-07-30T12:33:29.678Z","repository":{"id":57260120,"uuid":"293209011","full_name":"hack-chat/hackchat-engine","owner":"hack-chat","description":"A NodeJS and browser friendly JavaScript library used to interact with a hackchat server","archived":false,"fork":false,"pushed_at":"2025-03-26T15:45:50.000Z","size":86,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T11:55:47.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hack-chat.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-06T05:20:04.000Z","updated_at":"2025-03-26T15:45:55.000Z","dependencies_parsed_at":"2025-01-09T08:28:07.590Z","dependency_job_id":"6c05ec8f-0306-44bf-921a-feef7b51aeaf","html_url":"https://github.com/hack-chat/hackchat-engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hack-chat/hackchat-engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hack-chat%2Fhackchat-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hack-chat%2Fhackchat-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hack-chat%2Fhackchat-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hack-chat%2Fhackchat-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hack-chat","download_url":"https://codeload.github.com/hack-chat/hackchat-engine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hack-chat%2Fhackchat-engine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267867803,"owners_count":24157357,"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-07-30T02:00:09.044Z","response_time":70,"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-11-11T09:28:13.542Z","updated_at":"2025-07-30T12:33:29.656Z","avatar_url":"https://github.com/hack-chat.png","language":"JavaScript","readme":"# hackchat-engine\n\nA NodeJS and browser friendly JavaScript library used to interact with a hackchat server.\n\n# Installation\n\n## Prerequisites\n\n- [node.js 14.15](https://nodejs.org/en/download/package-manager/) or higher\n- [npm 6](https://nodejs.org/en/download/package-manager/) or higher\n\n## Install\n\n`npm i hackchat-engine`\n\n# Usage\n\n## Minimum Usage\n\n```javascript\n  const { Client } = require('hackchat-engine');\n  const hcClient = new Client();\n\n  const testName = 'testBot';\n  const testPass = 'testBot';\n  const testChannel = 'programming';\n\n  hcClient.on('connected', () =\u003e console.log('Connected!'));\n\n  hcClient.on('session', (payload) =\u003e {\n    console.log(payload);\n    hcClient.join(testName, testPass, testChannel);\n  });\n\n  hcClient.on('channelJoined', (payload) =\u003e {\n    console.log(payload);\n    hcClient.say(testChannel, 'Bep boop i r bot');\n  });\n\n  hcClient.on('message', (payload) =\u003e {\n    console.log(payload);\n    hcClient.say(testChannel, 'No u');\n  });\n```\n\n## Advanced Usage\n\n** Need to update this, still **\n\n### Changing the connection\n\nBy default, this engine will connect to 'wss://hack.chat/chat-ws'. To change this, add a `ws.gateway` property to the `options` object, for example:\n\n```javascript\nconst hcClient = new Client({\n  ws: {\n    gateway: 'ws://1.1.1.1:6060/',\n  }\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhack-chat%2Fhackchat-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhack-chat%2Fhackchat-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhack-chat%2Fhackchat-engine/lists"}