{"id":20078130,"url":"https://github.com/quickblox/qb-ai-assistant-proxy-server","last_synced_at":"2025-07-29T11:08:53.489Z","repository":{"id":186083413,"uuid":"674561226","full_name":"QuickBlox/qb-ai-assistant-proxy-server","owner":"QuickBlox","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-24T08:15:21.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-05T18:13:09.527Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuickBlox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-08-04T08:39:15.000Z","updated_at":"2024-03-21T21:19:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b2cda29-9049-4a2f-8c8e-3917eed69a81","html_url":"https://github.com/QuickBlox/qb-ai-assistant-proxy-server","commit_stats":null,"previous_names":["quickblox/qb-ai-assistant-proxy-server"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/QuickBlox/qb-ai-assistant-proxy-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuickBlox%2Fqb-ai-assistant-proxy-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuickBlox%2Fqb-ai-assistant-proxy-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuickBlox%2Fqb-ai-assistant-proxy-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuickBlox%2Fqb-ai-assistant-proxy-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuickBlox","download_url":"https://codeload.github.com/QuickBlox/qb-ai-assistant-proxy-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuickBlox%2Fqb-ai-assistant-proxy-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267677243,"owners_count":24126313,"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-29T02:00:12.549Z","response_time":2574,"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-13T15:13:00.447Z","updated_at":"2025-07-29T11:08:53.465Z","avatar_url":"https://github.com/QuickBlox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QBAIPROXY Server\n\nQBAIPROXY is a server designed for secure storage of API keys using dotenv. It also redirects requests to an AI API.\n\n## Prerequisites\n\n- Node.js (v16 and above)\n- npm (v8 and above)\n\n## Installation\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\n## Configurations\n\nSet up environment variables:\n\n1. Rename the `.env.example` file to `.env`.\n2. Edit the `.env` file and replace the placeholder values with your actual configuration.\n\n### Dev Setup\n1. Connection Protocol:\nFor development purposes, you can use the HTTP protocol. Configure the `.env` file with the following default values for SSL_KEY_FILE and SSL_CERT_FILE:\n```\nSSL_KEY_FILE=''\nSSL_CERT_FILE=''\n```\n\n2. HOST Parameter:\nFor development, set the HOST parameter to `localhost`. This restricts server accessibility to the PC where it is started:\n```\nHOST=localhost\n```\n\n\n### Production Setup\n1. Connection Protocol:\nFor production environments, use the HTTPS protocol. Generate and register certificate keys, then set the paths to the keys in the SSL_KEY_FILE and SSL_CERT_FILE variables:\n```\nSSL_KEY_FILE='certificates/privatekey.pem'\nSSL_CERT_FILE='certificates/certificate.pem'\n```\n\n2. HOST Parameter:\nFor production, set the HOST parameter to a specific IP address that should have access to the server:\n```\nHOST=192.168.0.100\n```\n\n**NOTE:**\nTo allow server access from all network interfaces, set the HOST parameter to `0.0.0.0`. This option is suitable for both production and development processes:\n\n## Usage\n\nTo start the server, run the following command:\n\n```bash\nnpm start\n```\n\nThe server will be started on the specified port (or default port 3000 if not provided).\n\n## QuickBlox\n\nQBAIPROXY required integration with QuickBlox to establish a secure access mechanism for the AI API. By incorporating QuickBlox, a double authentication process is implemented to guarantee that only authorized users can gain access to the API. This involves verifying the registration and authorization of the user attempting to access the AI API, effectively thwarting any unauthorized third-party interference and safeguarding the API against potential attackers.\n\nTo integrate QuickBlox into the QBAIPROXY server, follow these steps:\n\n1. Register and set up your QuickBlox account by following the instructions provided in the QuickBlox [documentation](https://docs.quickblox.com/docs/introduction).\n\n2. Obtain your QuickBlox API URL and ensure that these it is correctly configured in the `.env` file.\n\n## Contributing\n\nContributions are welcome! If you find any issues or want to add new features, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquickblox%2Fqb-ai-assistant-proxy-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquickblox%2Fqb-ai-assistant-proxy-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquickblox%2Fqb-ai-assistant-proxy-server/lists"}