Cloudflare AI
by Cloudflare
This repository contains packages and demo apps for consuming Cloudflare's AI offerings on the client-side. It's a monorepo powered by Nx and Changesets.
Last updated: N/A
What is Cloudflare AI?
This repository provides tools and examples for using Cloudflare's AI services, particularly Workers AI, in client-side applications. It includes a custom provider for the Vercel AI SDK.
How to use Cloudflare AI?
To use this repository, clone it, install dependencies using npm install, and use Nx commands to develop, test, and build specific apps or packages. The create-demo script helps in scaffolding new demo applications.
Key features of Cloudflare AI
- Workers AI integration 
- Vercel AI SDK compatibility 
- Monorepo structure with Nx 
- Automated versioning with Changesets 
- Demo applications for various use cases 
Use cases of Cloudflare AI
- Integrating AI models into web applications 
- Building AI-powered features with Cloudflare Workers 
- Experimenting with different AI models through demo apps 
- Creating custom AI providers for specific platforms 
FAQ from Cloudflare AI
How do I install dependencies?
How do I install dependencies?
Run npm install in the root directory.
How do I start a development server for a specific app?
How do I start a development server for a specific app?
Use npx nx dev <app-name>.
How do I run tests?
How do I run tests?
Use npx nx test:ci <project-name> for CI tests, or npx nx test <project-name> for watch mode.
How do I create a new demo app?
How do I create a new demo app?
Use npm run create-demo <demo-name>.
How do I contribute?
How do I contribute?
Fork the repository, create a branch, make changes, add tests, and submit a pull request. Use npx changeset if your changes affect a published package.
