{"id":24778354,"url":"https://github.com/muhiris/free-chatbot","last_synced_at":"2026-02-16T19:36:03.185Z","repository":{"id":274656011,"uuid":"923628891","full_name":"muhiris/free-chatbot","owner":"muhiris","description":"Free AI chatbots without API keys for Node.js applications. Access multiple AI providers including Phind, DuckDuckGo, and Blackbox AI.","archived":false,"fork":false,"pushed_at":"2025-01-28T15:42:08.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-01T16:26:01.700Z","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/muhiris.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":"2025-01-28T15:36:22.000Z","updated_at":"2025-01-28T15:42:12.000Z","dependencies_parsed_at":"2025-01-28T16:43:58.232Z","dependency_job_id":null,"html_url":"https://github.com/muhiris/free-chatbot","commit_stats":null,"previous_names":["muhiris/free-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muhiris/free-chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiris%2Ffree-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiris%2Ffree-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiris%2Ffree-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiris%2Ffree-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhiris","download_url":"https://codeload.github.com/muhiris/free-chatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhiris%2Ffree-chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29516170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2025-01-29T08:19:16.697Z","updated_at":"2026-02-16T19:36:03.166Z","avatar_url":"https://github.com/muhiris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# free-chatbot\n\n![npm](https://img.shields.io/npm/v/free-chatbot) ![npm](https://img.shields.io/npm/dt/free-chatbot)\n\nFree AI chatbots without API keys for Node.js applications. Access multiple AI providers including Phind, DuckDuckGo, and Blackbox AI.\n\n## Installation\n\n```bash\nnpm install free-chatbot\n```\n\n## Basic Usage\n\n```javascript\nimport {\n  createPhindChat,\n  createDuckDuckGoChat,\n  createBlackboxChat,\n} from \"free-chatbot\";\n\n// Initialize providers\nconst phind = createPhindChat();\nconst ddg = createDuckDuckGoChat();\nconst blackbox = createBlackboxChat();\n\n// Basic Usage Example\nasync function basicExample() {\n  try {\n    // Using Phind\n    const phindResponse = await phind.chat(\"What is JavaScript?\");\n    console.log(\"Phind response:\", phindResponse);\n\n    // Using DuckDuckGo\n    const ddgResponse = await ddg.chat(\"What is Python?\");\n    console.log(\"DuckDuckGo response:\", ddgResponse);\n\n    // Using Blackbox\n    const blackboxResponse = await blackbox.chat(\"Write a quicksort algorithm\");\n    console.log(\"Blackbox response:\", blackboxResponse);\n  } catch (error) {\n    console.error(\"Error:\", error);\n  }\n}\n```\n\n## Providers and Their Features\n\n### 1. Phind (Recommended for Programming)\n```javascript\nconst phind = createPhindChat();\n\n// Supports context and model options\nconst response = await phind.chat(\"What is JavaScript?\", {\n  model: \"Phind-70B\",  // Optional, default is \"Phind-70B\"\n  previousMessages: [   // Optional, for conversation context\n    { role: \"user\", content: \"Let's talk about programming\" },\n    { role: \"assistant\", content: \"Sure! What would you like to know?\" }\n  ]\n});\n```\n\n### 2. DuckDuckGo (Recommended for General Knowledge)\n```javascript\nconst ddg = createDuckDuckGoChat();\n\n// Supports model selection but NOT context\nconst response = await ddg.chat(\"What is Python?\", {\n  model: \"gpt-4o-mini\"  // Optional, default is \"gpt-4o-mini\"\n  // Note: DuckDuckGo doesn't support previousMessages\n});\n```\n\n### 3. Blackbox (Recommended for Code Generation)\n```javascript\nconst blackbox = createBlackboxChat();\n\n// Supports context and token limit\nconst response = await blackbox.chat(\"Write a function\", {\n  maxTokens: 1024,      // Optional, control response length\n  previousMessages: [   // Optional, for conversation context\n    { role: \"user\", content: \"Let's write some code\" },\n    { role: \"assistant\", content: \"Sure, what would you like to create?\" }\n  ]\n});\n```\n\n## Provider Capabilities\n\n| Feature | Phind | DuckDuckGo | Blackbox |\n|---------|-------|------------|----------|\n| Context Support | ✅ | ❌ | ✅ |\n| Model Selection | ✅ | ✅ | ❌ |\n| Token Control | ❌ | ❌ | ✅ |\n| Code Generation | ✅ | ❌ | ✅ |\n| General Knowledge | ✅ | ✅ | ✅ |\n\n## Error Handling\n\n```javascript\ntry {\n  const response = await phind.chat(\"Hello\");\n  console.log(response);\n} catch (error) {\n  console.error(\"Error:\", error);\n}\n```\n\n## Best Practices\n\n1. **Phind**\n   - Best for programming questions\n   - Good with technical context\n   - Supports conversation history\n\n2. **DuckDuckGo**\n   - Use for single, standalone questions\n   - Good for general knowledge\n   - Don't use previousMessages with this provider\n\n3. **Blackbox**\n   - Excellent for code generation\n   - Good with context\n   - Use maxTokens to control response length\n\n## Limitations\n\n- DuckDuckGo doesn't support conversation context\n- Response times may vary between providers\n- Rate limiting may apply\n- Internet connection required\n- Services may occasionally be unavailable\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhiris%2Ffree-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhiris%2Ffree-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhiris%2Ffree-chatbot/lists"}