Genkit is an open-source framework built by Google you can use to build AI-powered applications. The framework gives you structured output and tool calling, RAG, streaming, and generative UI. It also gives you tools around your AI application for tracing and evaluation, plus a user interface to test and observe the application.
Genkit has support for many model providers through an ai.generate() API, which means you can swap Gemini for OpenAI or Claude without rewriting your application.
Cloudflare Workers is a serverless platform that runs your code close to your users. Workers run your JavaScript app in V8 isolates. These are lightweight sandboxes that start in milliseconds, so you don't have any cold start problems like you would've had in cloud serverless environments.
In this tutorial, you'll build an AI application called Explainer.…