{"id":22514696,"url":"https://github.com/cityssm/node-sectorflow","last_synced_at":"2025-08-03T16:31:11.875Z","repository":{"id":237525535,"uuid":"794553781","full_name":"cityssm/node-sectorflow","owner":"cityssm","description":"An unofficial wrapper around the SectorFlow API, allowing you to easily connect to over a dozen AI models.","archived":false,"fork":false,"pushed_at":"2024-11-12T16:41:05.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-12T17:22:54.936Z","etag":null,"topics":["ai","chatbot","claude","language-model","llm","openai","sectorflow"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@cityssm/sectorflow","language":"TypeScript","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/cityssm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-01T12:57:03.000Z","updated_at":"2024-11-12T16:39:53.000Z","dependencies_parsed_at":"2024-11-14T12:16:13.615Z","dependency_job_id":null,"html_url":"https://github.com/cityssm/node-sectorflow","commit_stats":null,"previous_names":["cityssm/node-sectorflow"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-sectorflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-sectorflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-sectorflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cityssm%2Fnode-sectorflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cityssm","download_url":"https://codeload.github.com/cityssm/node-sectorflow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228553640,"owners_count":17936017,"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","chatbot","claude","language-model","llm","openai","sectorflow"],"created_at":"2024-12-07T03:20:29.524Z","updated_at":"2025-08-03T16:31:11.861Z","avatar_url":"https://github.com/cityssm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SectorFlow API for Node\n\n[![DeepSource](https://app.deepsource.com/gh/cityssm/node-sectorflow.svg/?label=active+issues\u0026show_trend=true\u0026token=JNfvxWju1bt6LN1oizyHvJ2Q)](https://app.deepsource.com/gh/cityssm/node-sectorflow/)\n\nAn unofficial wrapper around the [SectorFlow API](https://docs.sectorflowai.com/reference),\nallowing you to easily connect to [over a dozen AI models](https://docs.sectorflowai.com/docs/available-models).\n\n## What is SectorFlow?\n\nFrom the SectorFlow documentation:\n\n\u003e SectorFlow is an AI integration platform that simplifies and enhances the way businesses use Large Language Models (LLMs) to gain actionable insights from their data. It's designed for ease of use, offering powerful AI capabilities without requiring in-depth technical knowledge.\n\n[More about SectorFlow](https://sectorflow.ai/)\n\n## Installation\n\n```sh\nnpm install @cityssm/sectorflow\n```\n\n## Usage\n\n**TypeScript ready and JSDocs included for easy use!**\n\n```javascript\nimport { SectorFlow } from '@cityssm/sectorflow'\n\nconst sectorFlow = new SectorFlow(API_KEY)\n\n/*\n * Get the model id for ChatGPT\n */\n\nconst chatGPT = await sectorFlow.getModelIdByKeywords('ChatGPT')\n\n/*\n * Create a workspace\n */\n\nconst workspace = await sectorFlow.createWorkspace({\n  name: `My SectorFlow Workspace`,\n  modelIds: [chatGPT],\n  chatHistoryType: 'TEAM',\n  contextType: 'SHARED',\n  sharingType: 'TEAM'\n})\n\n/*\n * Chat\n */\n\nconst firstChatResponse = await sectorFlow.sendChatMessage(\n  workspace.id,\n  'Tell me a joke.'\n)\n\nconsole.log(firstChatResponse.choices[0].choices[0].message.content)\n// =\u003e \"Why don't scientists trust atoms? Because they make up everything!\"\n\nconst secondChatResponse = await sectorFlow.sendChatMessage(\n  workspace.id,\n  'Tell me another joke.',\n  {\n    threadId: firstChatResponse.threadId\n  }\n)\n\nconsole.log(secondChatResponse.choices[0].choices[0].message.content)\n// =\u003e \"What do dentists call their x-rays? Tooth pics!\"\n```\n\n🧙‍♂️ This package also offers \"wizards\" to handle some of the heavy lifting\nassociated with raw API calls.\n\n```javascript\nimport { SectorFlow, wizards } from '@cityssm/sectorflow'\n\nconst sectorFlow = new SectorFlow(API_KEY)\n\nconst wizardPersonResponse = await wizards.isPersonName(\n  sectorFlow,\n  'JAKE RAJNOVICH'\n)\n\nconsole.log(wizardPersonResponse)\n// =\u003e true\n\nconst wizardOtherResponse = await wizards.isPersonName(\n  sectorFlow,\n  'BILL JONES AND SONS TRUCKING'\n)\n\nconsole.log(wizardOtherResponse)\n// =\u003e false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-sectorflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcityssm%2Fnode-sectorflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcityssm%2Fnode-sectorflow/lists"}