{"id":15175666,"url":"https://github.com/rsnlabs/rsnchat-js","last_synced_at":"2025-03-08T12:35:04.395Z","repository":{"id":215568271,"uuid":"738952395","full_name":"rsnlabs/rsnchat-js","owner":"rsnlabs","description":"A package for interacting with GPT4-based chat services, OpenChat, Bard, Gemini, Bing, LlaMa, CodeLlama, Mixtral, Claude, Naomi, Prodia, Kandinsky, Absolutebeauty, Sdxl, Dalle and AI Icon","archived":false,"fork":false,"pushed_at":"2024-06-02T09:47:19.000Z","size":63,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-20T03:46:48.511Z","etag":null,"topics":["ai","artificial-intelligence","chat","chatbot"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rsnchat","language":"JavaScript","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/rsnlabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["Rstacx"]}},"created_at":"2024-01-04T12:34:15.000Z","updated_at":"2024-07-01T02:45:16.000Z","dependencies_parsed_at":"2024-08-14T09:06:30.902Z","dependency_job_id":"18fae07b-c39d-42e5-877a-130eee3dfc99","html_url":"https://github.com/rsnlabs/rsnchat-js","commit_stats":{"total_commits":20,"total_committers":5,"mean_commits":4.0,"dds":0.55,"last_synced_commit":"01377c34cda45847a57ca1d552d92094dc38d4fd"},"previous_names":["rsngpt/rsnchat-js","rsnlabs/rsnchat-js"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnlabs%2Frsnchat-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnlabs%2Frsnchat-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnlabs%2Frsnchat-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsnlabs%2Frsnchat-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsnlabs","download_url":"https://codeload.github.com/rsnlabs/rsnchat-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221064096,"owners_count":16749624,"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":["ai","artificial-intelligence","chat","chatbot"],"created_at":"2024-09-27T12:39:51.301Z","updated_at":"2025-03-08T12:35:04.365Z","avatar_url":"https://github.com/rsnlabs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Rstacx"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003cb\u003eRsnChat\u003c/b\u003e \u003cimg src=\"https://i.ibb.co/0J89TrT/rsn-bot-1.png\" width=\"30\" style=\"border-radius: 50%; margin-bottom: -5px\"\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\u003ci\u003eThe ultimate AI-powered RsnChat\u003c/i\u003e\u003c/p\u003e\n\nThis package for AI chats and AI images.\n\n## Installation\n\n**Installation For CLI**\n\n```bash\nnpm i -g rsnchat\n```\n\n**Installation**\n\n```bash\nnpm i rsnchat\n```\n\n# APIKEY\n\nDiscord : [https://api.rnilaweera.lk/discord](https://api.rnilaweera.lk/discord)\n\nJoin discord server and create account with **/register** slash command and get your apikey with **/generate-key** slash command for free!\n\n## Usage Available Models\n\n```javascript\nconst { RsnChat } = require(\"rsnchat\");\n\nconst rsnchat = new RsnChat(\"rsnlabs_××××××××××××××××××××××××××××××\");\n\nrsnchat.getModels().then((models) =\u003e {\n  console.log(\"Active Chat Models:\", models.chatModels);\n  console.log(\"Active Image Models:\", models.imageModels);\n}).catch((error) =\u003e {\n  console.error(error.message);\n});\n```\n\n## Usage Chat Completion\n\n```javascript\nconst { RsnChat } = require(\"rsnchat\");\n\nconst rsnchat = new RsnChat(\"rsnlabs_××××××××××××××××××××××××××××××\");\n\nconst prompt = \"Hello, what is your name?\"\nconst model = \"gemini\" // gpt, grok-2, llama, etc... (https://api.rnilaweera.lk/api/models)\n\nrsnchat.chat(prompt, model).then((response) =\u003e {\n  console.log(response);\n}).catch((error) =\u003e {\n  console.error(error.message);\n});\n```\n\n## Usage Image Generation\n\n```javascript\nconst { RsnChat } = require(\"rsnchat\");\n\nconst rsnchat = new RsnChat(\"rsnlabs_××××××××××××××××××××××××××××××\");\n\nconst prompt = \"beautiful girl\";\nconst model = \"flux\"; // rsnlabs, photograpy, etc... (https://api.rnilaweera.lk/api/models)\n\nrsnchat.image(prompt, model).then((response) =\u003e {\n  console.log(response);\n}).catch((error) =\u003e {\n  console.error(error.message);\n});\n```\n\n## Usage Check NSFW\n\n```javascript\nconst { RsnChat } = require(\"rsnchat\");\n\nconst rsnchat = new RsnChat(\"rsnlabs_××××××××××××××××××××××××××××××\");\n\nconst image_url = \"\";\n\nrsnchat.checkNSFW(image_url).then((response) =\u003e {\n  console.log(response);\n}).catch((error) =\u003e {\n  console.error(error.message);\n});\n```\n\n**Example CLI Command**\n\n```hs\nrsnchat\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsnlabs%2Frsnchat-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsnlabs%2Frsnchat-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsnlabs%2Frsnchat-js/lists"}