{"id":23969035,"url":"https://github.com/rxliuli/fastapi-poe-javascript","last_synced_at":"2025-10-26T08:34:08.368Z","repository":{"id":253926014,"uuid":"844953546","full_name":"rxliuli/fastapi-poe-javascript","owner":"rxliuli","description":"Create PoeAI server bot with JavaScript and Cloudflare Workers","archived":false,"fork":false,"pushed_at":"2024-08-21T17:22:56.000Z","size":55,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T14:15:42.646Z","etag":null,"topics":["ai","bot","poe"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fastapi-poe","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/rxliuli.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":"2024-08-20T09:42:23.000Z","updated_at":"2024-12-21T11:46:45.000Z","dependencies_parsed_at":"2024-08-20T11:56:40.387Z","dependency_job_id":null,"html_url":"https://github.com/rxliuli/fastapi-poe-javascript","commit_stats":null,"previous_names":["rxliuli/fastapi-poe-javascript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxliuli%2Ffastapi-poe-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxliuli%2Ffastapi-poe-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxliuli%2Ffastapi-poe-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxliuli%2Ffastapi-poe-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxliuli","download_url":"https://codeload.github.com/rxliuli/fastapi-poe-javascript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248742056,"owners_count":21154428,"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","bot","poe"],"created_at":"2025-01-07T00:58:35.431Z","updated_at":"2025-10-26T08:34:03.320Z","avatar_url":"https://github.com/rxliuli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastapi-poe\n\nCreate PoeAI server bot with JavaScript and Cloudflare Workers.\n\n## Bootstrap Project\n\n```bash\npnpm dlx fastapi-poe@latest init \u003cproject-name\u003e\n```\n\n### Development\n\n```sh\ncd \u003cproject-name\u003e\npnpm i\npnpm dev\n```\n\n### Deployment\n\n```sh\npnpm run deploy\necho \u003caccess-key\u003e | pnpm wrangler secret put ACCESS_KEY\n```\n\n## Basic Usage\n\n```ts\nimport { Hono } from 'hono'\nimport { poe } from 'fastapi-poe'\n\nconst app = new Hono()\n\ninterface Env {\n  ACCESS_KEY: string\n}\n\nconst bot = poe({\n  name: 'poe-bot-template',\n  getSettings() {\n    return {\n      server_bot_dependencies: {\n        'Claude-3.5-Sonnet': 1,\n      },\n    }\n  },\n  async *getResponse(req) {\n    for await (const response of bot.streamRequest(req, 'Claude-3.5-Sonnet')) {\n      yield {\n        text: response.text,\n      }\n    }\n  },\n})\n\napp.post('/', bot.handler)\napp.get('/', async (c) =\u003e c.text('Hello Hono!'))\n\nexport default {\n  async fetch(request: Request, env: Env, ctx: ExecutionContext) {\n    bot.accessKey = env.ACCESS_KEY\n    return app.fetch(request, env, ctx)\n  },\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxliuli%2Ffastapi-poe-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxliuli%2Ffastapi-poe-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxliuli%2Ffastapi-poe-javascript/lists"}