Discover and explore top open-source AI tools and projects—updated daily.
cloudflareCloudflare AI SDKs for building multimodal applications
Top 39.5% on SourcePulse
This repository provides packages and examples for integrating AI capabilities into applications hosted on Cloudflare. It targets developers seeking to leverage Cloudflare's infrastructure for AI workloads, offering pre-built providers for popular AI SDKs like Vercel AI SDK and TanStack AI, enabling features such as chat, image generation, embeddings, and more, with enhanced control via Cloudflare's AI Gateway.
How It Works
The project offers modular packages that act as adapters, bridging Cloudflare's Workers AI services and AI Gateway with frontend AI SDKs. workers-ai-provider integrates directly with the Vercel AI SDK for core AI tasks. @cloudflare/tanstack-ai extends TanStack AI with Workers AI and AI Gateway support, enabling routing to various third-party models (OpenAI, Anthropic, Gemini, Grok, OpenRouter) through the gateway for centralized management. The AI Gateway provider specifically adds caching, rate limiting, and observability to AI requests.
Quick Start & Requirements
pnpm install. To run an example, cd examples/workers-ai and execute pnpm dev.pnpm package manager. End-to-end tests necessitate Cloudflare credentials.examples/workers-ai, examples/tanstack-aipackages/workers-ai-providerHighlighted Details
Maintenance & Community
The release process is managed via Changesets, automating version bumping and publishing to npm upon merging PRs to the main branch. No explicit community channels (like Discord or Slack) or roadmap links are provided in the README.
Licensing & Compatibility
The license is not explicitly stated in the provided README content. This omission requires further investigation for commercial use or integration into closed-source projects.
Limitations & Caveats
The project is tightly coupled with the Cloudflare ecosystem. Development and testing rely on the pnpm package manager, and running end-to-end tests requires valid Cloudflare credentials. The absence of a stated license is a significant caveat for adoption.
2 days ago
Inactive
microsoft