{"id":15770016,"url":"https://github.com/crazywoola/dify-extensions-worker","last_synced_at":"2025-11-03T16:16:03.564Z","repository":{"id":215538805,"uuid":"739190736","full_name":"crazywoola/dify-extensions-worker","owner":"crazywoola","description":"A simple dify extension using cloudflare workers.","archived":false,"fork":false,"pushed_at":"2024-01-23T01:05:13.000Z","size":715,"stargazers_count":36,"open_issues_count":0,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T13:51:51.347Z","etag":null,"topics":["api","chatgpt","cloudflare","dify","openai"],"latest_commit_sha":null,"homepage":"","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/crazywoola.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-01-05T01:30:26.000Z","updated_at":"2025-04-26T10:05:04.000Z","dependencies_parsed_at":"2024-01-22T16:08:55.163Z","dependency_job_id":null,"html_url":"https://github.com/crazywoola/dify-extensions-worker","commit_stats":null,"previous_names":["crazywoola/dify-ext-workers","crazywoola/dify-extension-workers","crazywoola/dify-extensions-worker"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/crazywoola/dify-extensions-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazywoola%2Fdify-extensions-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazywoola%2Fdify-extensions-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazywoola%2Fdify-extensions-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazywoola%2Fdify-extensions-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazywoola","download_url":"https://codeload.github.com/crazywoola/dify-extensions-worker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazywoola%2Fdify-extensions-worker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260987848,"owners_count":23093383,"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":["api","chatgpt","cloudflare","dify","openai"],"created_at":"2024-10-04T14:21:32.340Z","updated_at":"2025-11-03T16:16:03.509Z","avatar_url":"https://github.com/crazywoola.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dify Extension Workers\n\n\u003e Simplicity is the ultimate sophistication. - Leonardo da Vinci\n\n![img](./assets/simplicity.png)\n## Description\n\n### What is this repository for?\n\nThis is designed to use [API-based Extension](https://docs.dify.ai/advanced/extension/api_based_extension) in [Dify](https://dify.ai/).\n\nIt includes the following features to make sure your application is secure and reliable.\n\n- [x] Bearer token authentication\n- [x] Schema validation\n- [x] Deploy to [Cloudflare Workers](https://workers.cloudflare.com/)\n\n### Tools used\n\n- [Hono](https://hono.dev/) - Fast, Lightweight, Web-standards, Runs on any JavaScript runtime.\n- [Zod](https://zod.dev/) - TypeScript-first schema validation with static type inference.\n\n## Usage\n\n### Development\n\nYou can run the following commands to start the development server.\n\nOpen this page in browser http://localhost:8787 to see the result. If you would like to have swagger ui to test the API, please follow [this](https://github.com/honojs/middleware/tree/main/packages/swagger-ui) instruction.\n\n```bash\nnpm install\nnpm run dev\n```\n\n### Deployment\n\nYou should be able to access the workers.dev domain after deploying to Cloudflare Workers.\n\n```\nnpm run deploy\n```\n\n### In Dify Console\n\n### Example\n\n```\nname: \u003cyour-extension-name\u003e\napi_endpoint: https://\u003cyour-subdomain\u003e.workers.dev/endpoint\napi_key: \u003cyour-token\u003e \u003cthis is set in the wrangler.toml\u003e \n```\n\n#### Example send to Endpoint\n\nThis is an example of sending a check request to the endpoint.\n\n```json\n{\n    \"point\": \"ping\",\n}\n```\n\nThis is an example of sending a query request to the endpoint.\n```json\n{\n    \"point\": \"app.external_data_tool.query\",\n    \"params\": {\n        \"app_id\": \"61248ab4-1125-45be-ae32-0ce91334d021\",\n        \"tool_variable\": \"breaking_bad_quotes\",\n        \"inputs\": {\n            \"count\": 5\n        },\n        \"query\": \"Display the quotes in markdown quote\"\n    }\n}\n```\n## License\n\n[MIT](./LICENSE.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazywoola%2Fdify-extensions-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazywoola%2Fdify-extensions-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazywoola%2Fdify-extensions-worker/lists"}