{"id":21068495,"url":"https://github.com/matheusfillipe/irc.js","last_synced_at":"2025-03-14T02:20:47.853Z","repository":{"id":101329843,"uuid":"496376913","full_name":"matheusfillipe/irc.js","owner":"matheusfillipe","description":"Tiny simple irc client for the browser using webscoket. It can be used for unrealircd with websocket module or with my ws2irc bridge.","archived":false,"fork":false,"pushed_at":"2022-05-25T23:37:18.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T21:37:48.450Z","etag":null,"topics":["irc","webirc","websocket"],"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/matheusfillipe.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":"2022-05-25T20:15:11.000Z","updated_at":"2022-05-25T20:17:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"64c9fb66-6064-400d-a6e3-d14049ae7736","html_url":"https://github.com/matheusfillipe/irc.js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfillipe%2Firc.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfillipe%2Firc.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfillipe%2Firc.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matheusfillipe%2Firc.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matheusfillipe","download_url":"https://codeload.github.com/matheusfillipe/irc.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510056,"owners_count":20302296,"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","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":["irc","webirc","websocket"],"created_at":"2024-11-19T18:22:19.411Z","updated_at":"2025-03-14T02:20:47.842Z","avatar_url":"https://github.com/matheusfillipe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# irc.js\n\n## Example usage\n\nAdd to the head of the document:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/matheusfillipe/irc.js@0.0.1/irc.min.js\"\u003e\u003c/script\u003e\n```\n\nUse it like this:\n\n```javascript\n// You can change these defaults\n// WsIrcClient.default_username = 'username'\n// WsIrcClient.default_nick_prefix = 'web-'\n\nlet irc_client = new WsIrcClient({\n  server: \"irc.someircwebsocket.com\",\n  port: 7669,\n  is_ssl: true,\n  debug: true\n})\n  .onmessage(function (channel, from, message) {\n    console.log(`${channel} -\u003e ${from}: ${message}`)\n    this.send(channel, \"${from}: I'm running on someone's browser\")\n  })\n  .onconnect(function () {\n    this.join(irc_channel)\n    this.send(channel, \"Hello folks!\")\n  })\n  .onjoin(function (channel) {\n    console.log(`Joined ${channel}`)\n  })\n  .onpart(function (channel) {\n    console.log(`Leaving ${channel}`)\n  })\n  .onnames(function (channel, names) {\n    console.log(channel + \" - Names: \" + names.join(\" \"))\n  })\n  .onnickinuse(function () {\n    console.log(\"That nickname is already in use!\")\n  })\n  .onnickchange(function (nick) {\n    console.log(`You are now know as: ${nick}`)\n  })\n  .connect()\n\n  // You can keep using client methods from here...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusfillipe%2Firc.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatheusfillipe%2Firc.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatheusfillipe%2Firc.js/lists"}