# Workers Build, deploy, and scale serverless applications globally with low latency and minimal configuration > Links below point directly to Markdown versions of each page. Any page can also be retrieved as Markdown by sending an `Accept: text/markdown` header to the page's URL without the `index.md` suffix (for example, `curl -H "Accept: text/markdown" https://docs.ahq.lat/workers/`). > > For other Cloudflare products, see the [Cloudflare documentation directory](https://docs.ahq.lat/llms.txt). ## Overview - [Cloudflare Workers](https://docs.ahq.lat/workers/index.md): Build and deploy serverless applications across Cloudflare's global network with Workers. ## Examples - [Examples](https://docs.ahq.lat/workers/examples/index.md): Browse code examples and starter templates for Cloudflare Workers. - [103 Early Hints](https://docs.ahq.lat/workers/examples/103-early-hints/index.md): Allow a client to request static assets while waiting for the HTML response. - [A/B testing with same-URL direct access](https://docs.ahq.lat/workers/examples/ab-testing/index.md): Set up an A/B test by controlling what response is served based on cookies. This version supports passing the request through to test and control on the origin, bypassing random assignment. - [Accessing the Cloudflare Object](https://docs.ahq.lat/workers/examples/accessing-the-cloudflare-object/index.md): Access custom Cloudflare properties and control how Cloudflare features are applied to every request. - [Aggregate requests](https://docs.ahq.lat/workers/examples/aggregate-requests/index.md): Send two GET request to two urls and aggregates the responses into one response. - [Alter headers](https://docs.ahq.lat/workers/examples/alter-headers/index.md): Example of how to add, change, or delete headers sent in a request or returned in a response. - [Write to Analytics Engine](https://docs.ahq.lat/workers/examples/analytics-engine/index.md): Write custom analytics events to Workers Analytics Engine for high-cardinality, time-series data. - [Auth with headers](https://docs.ahq.lat/workers/examples/auth-with-headers/index.md): Allow or deny a request based on a known pre-shared key in a header. This is not meant to replace the WebCrypto API. - [HTTP Basic Authentication](https://docs.ahq.lat/workers/examples/basic-auth/index.md): Shows how to restrict access using the HTTP Basic schema. - [Block on TLS](https://docs.ahq.lat/workers/examples/block-on-tls/index.md): Inspects the incoming request's TLS version and blocks if under TLSv1.2. - [Bulk origin override](https://docs.ahq.lat/workers/examples/bulk-origin-proxy/index.md): Resolve requests to your domain to a set of proxy third-party origin URLs. - [Bulk redirects](https://docs.ahq.lat/workers/examples/bulk-redirects/index.md): Redirect requests to certain URLs based on a mapped object to the request's URL. - [Using the Cache API](https://docs.ahq.lat/workers/examples/cache-api/index.md): Use the Cache API to store responses in Cloudflare's cache. - [Cache POST requests](https://docs.ahq.lat/workers/examples/cache-post-request/index.md): Cache POST requests using the Cache API. - [Cache Tags using Workers](https://docs.ahq.lat/workers/examples/cache-tags/index.md): Send Additional Cache Tags using Workers - [Cache using fetch](https://docs.ahq.lat/workers/examples/cache-using-fetch/index.md): Determine how to cache a resource by setting TTLs, custom cache keys, and cache headers in a fetch request. - [Conditional response](https://docs.ahq.lat/workers/examples/conditional-response/index.md): Return a response based on the incoming request's URL, HTTP method, User Agent, IP address, ASN or device type. - [CORS header proxy](https://docs.ahq.lat/workers/examples/cors-header-proxy/index.md): Add the necessary CORS headers to a third party API response. - [Country code redirect](https://docs.ahq.lat/workers/examples/country-code-redirect/index.md): Redirect a response based on the country code in the header of a visitor. - [Setting Cron Triggers](https://docs.ahq.lat/workers/examples/cron-trigger/index.md): Set a Cron Trigger for your Worker. - [Data loss prevention](https://docs.ahq.lat/workers/examples/data-loss-prevention/index.md): Protect sensitive data to prevent data loss, and send alerts to a webhooks server in the event of a data breach. - [Debugging logs](https://docs.ahq.lat/workers/examples/debugging-logs/index.md): Send debugging information in an errored response to a logging service. - [Cookie parsing](https://docs.ahq.lat/workers/examples/extract-cookie-value/index.md): Given the cookie name, get the value of a cookie. You can also use cookies for A/B testing. - [Fetch HTML](https://docs.ahq.lat/workers/examples/fetch-html/index.md): Send a request to a remote server, read HTML from the response, and serve that HTML. - [Fetch JSON](https://docs.ahq.lat/workers/examples/fetch-json/index.md): Send a GET request and read in JSON from the response. Use to fetch external data. - [Geolocation: Weather application](https://docs.ahq.lat/workers/examples/geolocation-app-weather/index.md): Fetch weather data from an API using the user's geolocation data. - [Geolocation: Custom Styling](https://docs.ahq.lat/workers/examples/geolocation-custom-styling/index.md): Personalize website styling based on localized user time. - [Geolocation: Hello World](https://docs.ahq.lat/workers/examples/geolocation-hello-world/index.md): Get all geolocation data fields and display them in HTML. - [Hot-link protection](https://docs.ahq.lat/workers/examples/hot-link-protection/index.md): Block other websites from linking to your content. This is useful for protecting images. - [Custom Domain with Images](https://docs.ahq.lat/workers/examples/images-workers/index.md): Set up custom domain for Images using a Worker or serve images using a prefix path and Cloudflare registered domain. - [Logging headers to console](https://docs.ahq.lat/workers/examples/logging-headers/index.md): Examine the contents of a Headers object by logging to console with a Map. - [Modify request property](https://docs.ahq.lat/workers/examples/modify-request-property/index.md): Create a modified request with edited properties based off of an incoming request. - [Modify response](https://docs.ahq.lat/workers/examples/modify-response/index.md): Fetch and modify response properties which are immutable by creating a copy first. - [Multiple Cron Triggers](https://docs.ahq.lat/workers/examples/multiple-cron-triggers/index.md): Set multiple Cron Triggers on three different schedules. - [Stream OpenAI API Responses](https://docs.ahq.lat/workers/examples/openai-sdk-streaming/index.md): Use the OpenAI v4 SDK to stream responses from OpenAI. - [Post JSON](https://docs.ahq.lat/workers/examples/post-json/index.md): Send a POST request with JSON data. Use to share data with external servers. - [Using timingSafeEqual](https://docs.ahq.lat/workers/examples/protect-against-timing-attacks/index.md): Protect against timing attacks by safely comparing values using `timingSafeEqual`. - [Read POST](https://docs.ahq.lat/workers/examples/read-post/index.md): Serve an HTML form, then read POST requests. Use also to read JSON or POST data from an incoming request. - [Redirect](https://docs.ahq.lat/workers/examples/redirect/index.md): Redirect requests from one URL to another or from one set of URLs to another set. - [Respond with another site](https://docs.ahq.lat/workers/examples/respond-with-another-site/index.md): Respond to the Worker request with the response from another website (example.com in this example). - [Return small HTML page](https://docs.ahq.lat/workers/examples/return-html/index.md): Deliver an HTML page from an HTML string directly inside the Worker script. - [Return JSON](https://docs.ahq.lat/workers/examples/return-json/index.md): Return JSON directly from a Worker script, useful for building APIs and middleware. - [Rewrite links](https://docs.ahq.lat/workers/examples/rewrite-links/index.md): Rewrite URL links in HTML using the HTMLRewriter. This is useful for JAMstack websites. - [Set security headers](https://docs.ahq.lat/workers/examples/security-headers/index.md): Set common security headers (X-XSS-Protection, X-Frame-Options, X-Content-Type-Options, Permissions-Policy, Referrer-Policy, Strict-Transport-Security, Content-Security-Policy). - [Sign requests](https://docs.ahq.lat/workers/examples/signing-requests/index.md): Verify a signed request using the HMAC and SHA-256 algorithms or return a 403. - [Single Page App (SPA) shell with bootstrap data](https://docs.ahq.lat/workers/examples/spa-shell/index.md): Use HTMLRewriter to inject prefetched bootstrap data into an SPA shell, eliminating client-side data fetching on initial load. Works with Workers Static Assets or an externally hosted SPA. - [Stream large JSON](https://docs.ahq.lat/workers/examples/streaming-json/index.md): Parse and transform large JSON request and response bodies using streaming. - [Turnstile with Workers](https://docs.ahq.lat/workers/examples/turnstile-html-rewriter/index.md): Inject [Turnstile](/turnstile/) implicitly into HTML elements using the HTMLRewriter runtime API. - [Using the WebSockets API](https://docs.ahq.lat/workers/examples/websockets/index.md): Use the WebSockets API to communicate in real time with your Cloudflare Workers. ## Tutorials - [Tutorials](https://docs.ahq.lat/workers/tutorials/index.md): Step-by-step Workers tutorials and video guides to help you build projects on Cloudflare. - [Build a todo list Jamstack application](https://docs.ahq.lat/workers/tutorials/build-a-jamstack-app/index.md): This tutorial explains how to build a todo list application using HTML, CSS, and JavaScript. - [Build a QR code generator](https://docs.ahq.lat/workers/tutorials/build-a-qr-code-generator/index.md): This tutorial shows you how to build and publish a Worker application that generates QR codes. The final version of the codebase is available on GitHub. - [Build a Slackbot](https://docs.ahq.lat/workers/tutorials/build-a-slackbot/index.md): Learn how to build a Slackbot with Hono and TypeScript in Cloudflare Workers - [Connect to and query your Turso database using Workers](https://docs.ahq.lat/workers/tutorials/connect-to-turso-using-workers/index.md): This tutorial will guide you on how to build globally distributed applications with Cloudflare Workers, and Turso, an edge-hosted distributed database based on libSQL. - [Create a fine-tuned OpenAI model with R2](https://docs.ahq.lat/workers/tutorials/create-finetuned-chatgpt-ai-models-with-r2/index.md): In this tutorial, you will use the OpenAI API and Cloudflare R2 to create a fine-tuned model. - [Deploy a real-time chat application](https://docs.ahq.lat/workers/tutorials/deploy-a-realtime-chat-app/index.md): This tutorial shows how to deploy a serverless, real-time chat application. The chat application uses a Durable Object to control each chat room. - [Deploy an Express.js application on Cloudflare Workers](https://docs.ahq.lat/workers/tutorials/deploy-an-express-app/index.md): Learn how to deploy an Express.js application on Cloudflare Workers. - [Generate YouTube thumbnails with Workers and Cloudflare Image Resizing](https://docs.ahq.lat/workers/tutorials/generate-youtube-thumbnails-with-workers-and-images/index.md): This tutorial explains how to programmatically generate a custom YouTube thumbnail using Cloudflare Workers. You may want to customize the thumbnail's design, call-to-actions and images used to encourage more viewers to watch your video. - [GitHub SMS notifications using Twilio](https://docs.ahq.lat/workers/tutorials/github-sms-notifications-using-twilio/index.md): This tutorial shows you how to build an SMS notification system on Workers to receive updates on a GitHub repository. Your Worker will send you a text update using Twilio when there is new activity on your repository. - [Handle form submissions with Airtable](https://docs.ahq.lat/workers/tutorials/handle-form-submissions-with-airtable/index.md): Use Cloudflare Workers and Airtable to persist form submissions from a front-end user interface. Workers will handle incoming form submissions and use Airtables REST API to asynchronously persist the data in an Airtable base. - [Connect to a MySQL database with Cloudflare Workers](https://docs.ahq.lat/workers/tutorials/mysql/index.md): This tutorial explains how to connect to a Cloudflare database using TCP Sockets and Hyperdrive. The Workers application you create in this tutorial will interact with a product database inside of MySQL. - [OpenAI GPT function calling with JavaScript and Cloudflare Workers](https://docs.ahq.lat/workers/tutorials/openai-function-calls-workers/index.md): Build a project that leverages OpenAI's function calling feature, available in OpenAI's latest Chat Completions API models. - [Connect to a PostgreSQL database with Cloudflare Workers](https://docs.ahq.lat/workers/tutorials/postgres/index.md): This tutorial explains how to connect to a Postgres database with Cloudflare Workers. The Workers application you create in this tutorial will interact with a product database inside of Postgres. - [Send Emails With Postmark](https://docs.ahq.lat/workers/tutorials/send-emails-with-postmark/index.md): This tutorial explains how to send transactional emails from Workers using Postmark. - [Send Emails With Resend](https://docs.ahq.lat/workers/tutorials/send-emails-with-resend/index.md): This tutorial explains how to send emails from Cloudflare Workers using Resend. - [Securely access and upload assets with Cloudflare R2](https://docs.ahq.lat/workers/tutorials/upload-assets-with-r2/index.md): This tutorial explains how to create a TypeScript-based Cloudflare Workers project that can securely access files from and upload files to a CloudFlare R2 bucket. - [Set up and use a Prisma Postgres database](https://docs.ahq.lat/workers/tutorials/using-prisma-postgres-with-workers/index.md): This tutorial shows you how to set up a Cloudflare Workers project with Prisma ORM. - [Use Workers KV directly from Rust](https://docs.ahq.lat/workers/tutorials/workers-kv-from-rust/index.md): This tutorial will teach you how to read and write to KV directly from Rust using workers-rs. You will use Workers KV from Rust to build an app to store and retrieve cities. ## Demos and architectures - [Demos and architectures](https://docs.ahq.lat/workers/demos/index.md): Explore demo applications and reference architectures built with Cloudflare Workers. - [Build an Interactive ChatGPT App](https://docs.ahq.lat/workers/demos/chatgpt-app/index.md): Build and deploy an interactive ChatGPT App on Cloudflare Workers with real-time multiplayer state using MCP. ## Development & testing - [Development & testing](https://docs.ahq.lat/workers/development-testing/index.md): Develop and test your Workers locally. - [Supported bindings per development mode](https://docs.ahq.lat/workers/development-testing/bindings-per-env/index.md): Supported bindings per development mode - [Environment variables and secrets](https://docs.ahq.lat/workers/development-testing/environment-variables/index.md): Configuring environment variables and secrets for local development - [Adding local data](https://docs.ahq.lat/workers/development-testing/local-data/index.md): Populating local resources with data - [Share a local dev server](https://docs.ahq.lat/workers/development-testing/local-dev-tunnels/index.md): Expose a local Wrangler or Vite dev server over a public tunnel URL. - [Local Explorer](https://docs.ahq.lat/workers/development-testing/local-explorer/index.md): Browse and edit local binding data from your browser during development. - [Developing with multiple Workers](https://docs.ahq.lat/workers/development-testing/multi-workers/index.md): Learn how to develop with multiple Workers using different approaches and configurations. - [Testing](https://docs.ahq.lat/workers/testing/index.md): Write and run tests for your Cloudflare Workers using Vitest and the Workers testing framework. - [Vite Plugin](https://docs.ahq.lat/workers/vite-plugin/index.md): Develop and build Cloudflare Workers projects using the Workers Vite plugin. - [Choosing between Wrangler & Vite](https://docs.ahq.lat/workers/development-testing/wrangler-vs-vite/index.md): Choosing between Wrangler and Vite for local development ## Playground - [Playground](https://docs.ahq.lat/workers/playground/index.md): Preview and test Cloudflare Workers code in a browser-based sandbox without setup or authentication. ## Configuration - [Configuration](https://docs.ahq.lat/workers/configuration/index.md): Manage Cloudflare Workers project settings, bindings, and deployment options. - [Bindings](https://docs.ahq.lat/workers/runtime-apis/bindings/index.md): The various bindings that are available to Cloudflare Workers. - [Compatibility dates](https://docs.ahq.lat/workers/configuration/compatibility-dates/index.md): Opt into a specific version of the Workers runtime for your Workers project. - [Compatibility flags](https://docs.ahq.lat/workers/configuration/compatibility-flags/index.md): Opt into a specific features of the Workers runtime for your Workers project. - [Cron Triggers](https://docs.ahq.lat/workers/configuration/cron-triggers/index.md): Enable your Worker to be executed on a schedule. - [Environment variables](https://docs.ahq.lat/workers/configuration/environment-variables/index.md): You can add environment variables, which are a type of binding, to attach text strings or JSON values to your Worker. - [Integrations](https://docs.ahq.lat/workers/configuration/integrations/index.md): Integrate with third-party services and products. - [APIs](https://docs.ahq.lat/workers/configuration/integrations/apis/index.md): Integrate Cloudflare Workers with third-party APIs using the Fetch API. - [External Services](https://docs.ahq.lat/workers/configuration/integrations/external-services/index.md): Connect Cloudflare Workers to external services using libraries, SDKs, and secure authentication. - [Multipart upload metadata](https://docs.ahq.lat/workers/configuration/multipart-upload-metadata/index.md): Define Workers configuration in JSON metadata for multipart form-data script uploads. - [Placement](https://docs.ahq.lat/workers/configuration/placement/index.md): Control where your Worker runs to reduce latency. - [Preview URLs](https://docs.ahq.lat/workers/configuration/previews/index.md): Preview URLs allow you to preview new versions of your project without deploying it to production. - [Routes and domains](https://docs.ahq.lat/workers/configuration/routing/index.md): Connect your Worker to an external endpoint (via Routes, Custom Domains or a `workers.dev` subdomain) such that it can be accessed by the Internet. - [Custom Domains](https://docs.ahq.lat/workers/configuration/routing/custom-domains/index.md): Connect a Cloudflare Worker to a domain or subdomain with automatic DNS and certificate management. - [Routes](https://docs.ahq.lat/workers/configuration/routing/routes/index.md): Map URL patterns to Cloudflare Workers to run your code on matching requests. - [workers.dev](https://docs.ahq.lat/workers/configuration/routing/workers-dev/index.md): Deploy Cloudflare Workers on a workers.dev subdomain for quick testing and personal projects. - [Secrets](https://docs.ahq.lat/workers/configuration/secrets/index.md): Store sensitive information, like API keys and auth tokens, in your Worker. - [Workers Sites](https://docs.ahq.lat/workers/configuration/sites/index.md): Use [Workers Static Assets](/workers/static-assets/) to host full-stack applications instead of Workers Sites. Do not use Workers Sites for new projects. - [Workers Sites configuration](https://docs.ahq.lat/workers/configuration/sites/configuration/index.md): Configure Workers Sites settings for static asset hosting in your Wrangler configuration file. - [Start from existing](https://docs.ahq.lat/workers/configuration/sites/start-from-existing/index.md): Deploy an existing static site project to Cloudflare using Workers Sites. - [Start from scratch](https://docs.ahq.lat/workers/configuration/sites/start-from-scratch/index.md): Create a new Workers Sites project from scratch with Wrangler. - [Start from Worker](https://docs.ahq.lat/workers/configuration/sites/start-from-worker/index.md): Add static asset serving to an existing Cloudflare Worker using Workers Sites. - [Versions & Deployments](https://docs.ahq.lat/workers/configuration/versions-and-deployments/index.md): Upload versions of Workers and create deployments to release new versions. - [Gradual deployments](https://docs.ahq.lat/workers/configuration/versions-and-deployments/gradual-deployments/index.md): Incrementally deploy code changes to your Workers with gradual deployments. - [Rollbacks](https://docs.ahq.lat/workers/configuration/versions-and-deployments/rollbacks/index.md): Revert to an older version of your Worker. - [Version overrides](https://docs.ahq.lat/workers/configuration/versions-and-deployments/version-overrides/index.md): Send requests to a specific version of your Worker in a gradual deployment using version overrides. - [Page Rules](https://docs.ahq.lat/workers/configuration/workers-with-page-rules/index.md): Review the interaction between various Page Rules and Workers. ## CI/CD - [CI/CD](https://docs.ahq.lat/workers/ci-cd/index.md): Set up continuous integration and continuous deployment for your Workers. - [Builds](https://docs.ahq.lat/workers/ci-cd/builds/index.md): Use Workers Builds to integrate with Git and automatically build and deploy your Worker when pushing a change - [Advanced setups](https://docs.ahq.lat/workers/ci-cd/builds/advanced-setups/index.md): Learn how to use Workers Builds with more advanced setups - [Builds API reference](https://docs.ahq.lat/workers/ci-cd/builds/api-reference/index.md): Learn how to programmatically trigger builds, manage triggers, and monitor your Workers Builds using the API. - [Automatic pull requests](https://docs.ahq.lat/workers/ci-cd/builds/automatic-prs/index.md): Learn about the pull requests Workers Builds creates to configure your project or resolve issues. - [Build branches](https://docs.ahq.lat/workers/ci-cd/builds/build-branches/index.md): Configure which git branches should trigger a Workers Build - [Build caching](https://docs.ahq.lat/workers/ci-cd/builds/build-caching/index.md): Improve build times by caching build outputs and dependencies - [Build image](https://docs.ahq.lat/workers/ci-cd/builds/build-image/index.md): Understand the build image used in Workers Builds. - [Build watch paths](https://docs.ahq.lat/workers/ci-cd/builds/build-watch-paths/index.md): Reduce compute for your monorepo by specifying paths for Workers Builds to skip - [Configuration](https://docs.ahq.lat/workers/ci-cd/builds/configuration/index.md): Understand the different settings associated with your build. - [Deploy Hooks](https://docs.ahq.lat/workers/ci-cd/builds/deploy-hooks/index.md): Generate unique URLs that trigger new builds when they receive an HTTP POST request. - [Event subscriptions](https://docs.ahq.lat/workers/ci-cd/builds/event-subscriptions/index.md): Subscribe to Workers Builds events and send notifications to Slack, Discord, or webhook endpoints. - [Git integration](https://docs.ahq.lat/workers/ci-cd/builds/git-integration/index.md): Learn how to add and manage your Git integration for Workers Builds - [GitHub integration](https://docs.ahq.lat/workers/ci-cd/builds/git-integration/github-integration/index.md): Learn how to manage your GitHub integration for Workers Builds - [GitLab integration](https://docs.ahq.lat/workers/ci-cd/builds/git-integration/gitlab-integration/index.md): Learn how to manage your GitLab integration for Workers Builds - [Limits & pricing](https://docs.ahq.lat/workers/ci-cd/builds/limits-and-pricing/index.md): Limits & pricing for Workers Builds - [Troubleshooting builds](https://docs.ahq.lat/workers/ci-cd/builds/troubleshoot/index.md): Learn how to troubleshoot common and known issues in Workers Builds. - [External CI/CD](https://docs.ahq.lat/workers/ci-cd/external-cicd/index.md): Integrate Workers development into your existing continuous integration and continuous development workflows, such as GitHub Actions or GitLab Pipelines. - [GitHub Actions](https://docs.ahq.lat/workers/ci-cd/external-cicd/github-actions/index.md): Integrate Workers development into your existing GitHub Actions workflows. - [GitLab CI/CD](https://docs.ahq.lat/workers/ci-cd/external-cicd/gitlab-cicd/index.md): Integrate Workers development into your existing GitLab Pipelines workflows. ## Runtime APIs - [Runtime APIs](https://docs.ahq.lat/workers/runtime-apis/index.md): Explore the JavaScript and web platform APIs available in the Cloudflare Workers runtime. - [Bindings (env)](https://docs.ahq.lat/workers/runtime-apis/bindings/index.md): Worker Bindings that allow for interaction with other Cloudflare Resources. - [AI](https://docs.ahq.lat/workers-ai/get-started/workers-wrangler/#2-connect-your-worker-to-workers-aiindex.md): Run generative AI inference and machine learning models on GPUs, without managing servers or infrastructure. - [Analytics Engine](https://docs.ahq.lat/analytics/analytics-engineindex.md): Write high-cardinality data and metrics at scale, directly from Workers. - [Assets](https://docs.ahq.lat/workers/static-assets/binding/index.md): APIs available in Cloudflare Workers to interact with a collection of static assets. Static assets can be uploaded as part of your Worker. - [Browser Run](https://docs.ahq.lat/browser-run/index.md): Programmatically control and interact with a headless browser instance. - [D1](https://docs.ahq.lat/d1/worker-api/index.md): APIs available in Cloudflare Workers to interact with D1. D1 is Cloudflare's native serverless database. - [Dispatcher (Workers for Platforms)](https://docs.ahq.lat/cloudflare-for-platforms/workers-for-platforms/configuration/dynamic-dispatch/index.md): Let your customers deploy their own code to your platform, and dynamically dispatch requests from your Worker to their Worker. - [Durable Objects](https://docs.ahq.lat/durable-objects/api/index.md): A globally distributed coordination API with strongly consistent storage. - [Environment Variables](https://docs.ahq.lat/workers/configuration/environment-variables/index.md): Add string and JSON values to your Worker. - [Hyperdrive](https://docs.ahq.lat/hyperdriveindex.md): Connect to your existing database from Workers, turning your existing regional database into a globally distributed database. - [Images](https://docs.ahq.lat/images/optimization/transformations/bindings/index.md): Store, transform, optimize, and deliver images at scale. - [KV](https://docs.ahq.lat/kv/api/index.md): Global, low-latency, key-value data storage. - [Media Transformations](https://docs.ahq.lat/stream/transform-videos/bindings/index.md): Optimize, transform, and extract from short-form video. - [mTLS](https://docs.ahq.lat/workers/runtime-apis/bindings/mtls/index.md): Configure your Worker to present a client certificate to services that enforce an mTLS connection. - [Queues](https://docs.ahq.lat/queues/configuration/javascript-apis/index.md): Send and receive messages with guaranteed delivery. - [R2](https://docs.ahq.lat/r2/api/workers/workers-api-reference/index.md): APIs available in Cloudflare Workers to read from and write to R2 buckets. R2 is S3-compatible, zero egress-fee, globally distributed object storage. - [Rate Limiting](https://docs.ahq.lat/workers/runtime-apis/bindings/rate-limit/index.md): Define rate limits and interact with them directly from your Cloudflare Worker - [Secrets](https://docs.ahq.lat/workers/configuration/secrets/index.md): Add encrypted secrets to your Worker. - [Secrets Store](https://docs.ahq.lat/secrets-store/integrations/workers/index.md): Account-level secrets that can be added to Workers applications as a binding. - [Service bindings](https://docs.ahq.lat/workers/runtime-apis/bindings/service-bindings/index.md): Facilitate Worker-to-Worker communication. - [HTTP](https://docs.ahq.lat/workers/runtime-apis/bindings/service-bindings/http/index.md): Facilitate Worker-to-Worker communication by forwarding Request objects. - [RPC (WorkerEntrypoint)](https://docs.ahq.lat/workers/runtime-apis/bindings/service-bindings/rpc/index.md): Facilitate Worker-to-Worker communication via RPC. - [Stream](https://docs.ahq.lat/stream/manage-video-library/bindings/index.md): Upload, manage, and deliver video with Cloudflare Stream. - [Vectorize](https://docs.ahq.lat/vectorize/reference/client-api/index.md): APIs available in Cloudflare Workers to interact with Vectorize. Vectorize is Cloudflare's globally distributed vector database. - [Version metadata](https://docs.ahq.lat/workers/runtime-apis/bindings/version-metadata/index.md): Exposes Worker version metadata (`versionID` and `versionTag`). These fields can be added to events emitted from the Worker to send to downstream observability systems. - [Dynamic Worker Loaders](https://docs.ahq.lat/dynamic-workers/index.md): The Dynamic Worker Loader API, which allows dynamically spawning isolates that run arbitrary code. - [Workflows](https://docs.ahq.lat/workflows/index.md): APIs available in Cloudflare Workers to interact with Workflows. Workflows allow you to build durable, multi-step applications using Workers. - [Cache](https://docs.ahq.lat/workers/runtime-apis/cache/index.md): Control reading and writing from the Cloudflare global network cache. - [Console](https://docs.ahq.lat/workers/runtime-apis/console/index.md): Supported methods of the `console` API in Cloudflare Workers - [Context (ctx)](https://docs.ahq.lat/workers/runtime-apis/context/index.md): The Context API in Cloudflare Workers, including props, exports, waitUntil and passThroughOnException. - [Encoding](https://docs.ahq.lat/workers/runtime-apis/encoding/index.md): Takes a stream of code points as input and emits a stream of bytes. - [EventSource](https://docs.ahq.lat/workers/runtime-apis/eventsource/index.md): EventSource is a server-sent event API that allows a server to push events to a client. - [Fetch](https://docs.ahq.lat/workers/runtime-apis/fetch/index.md): An interface for asynchronously fetching resources via HTTP requests inside of a Worker. - [Handlers](https://docs.ahq.lat/workers/runtime-apis/handlers/index.md): Methods, such as `fetch()`, on Workers that can receive and process external inputs. - [Alarm Handler](https://docs.ahq.lat/durable-objects/api/alarms/index.md): Handle scheduled alarms in Cloudflare Workers using the Durable Objects alarm API. - [Email Handler](https://docs.ahq.lat/email-routing/email-workers/runtime-api/index.md): Process incoming emails in Cloudflare Workers using the Email Routing runtime API. - [Fetch Handler](https://docs.ahq.lat/workers/runtime-apis/handlers/fetch/index.md): Handle incoming HTTP requests in Cloudflare Workers using the fetch() handler and return responses. - [Queue Handler](https://docs.ahq.lat/queues/configuration/javascript-apis/#consumerindex.md): Consume messages from Cloudflare Queues using the queue handler in Workers. - [Scheduled Handler](https://docs.ahq.lat/workers/runtime-apis/handlers/scheduled/index.md): Run Workers on a recurring schedule using the scheduled() handler and Cron Triggers. - [Tail Handler](https://docs.ahq.lat/workers/runtime-apis/handlers/tail/index.md): Process real-time logs from producer Workers using the tail() handler in Tail Workers. - [Headers](https://docs.ahq.lat/workers/runtime-apis/headers/index.md): Access HTTP request and response headers. - [HTMLRewriter](https://docs.ahq.lat/workers/runtime-apis/html-rewriter/index.md): Build comprehensive and expressive HTML parsers inside of a Worker application. - [MessageChannel](https://docs.ahq.lat/workers/runtime-apis/messagechannel/index.md): Channel messaging with MessageChannel and MessagePort - [Node.js compatibility](https://docs.ahq.lat/workers/runtime-apis/nodejs/index.md): Node.js APIs available in Cloudflare Workers - [assert](https://docs.ahq.lat/workers/runtime-apis/nodejs/assert/index.md): Use the Node.js assert module in Cloudflare Workers for testing assertions and value comparisons. - [AsyncLocalStorage](https://docs.ahq.lat/workers/runtime-apis/nodejs/asynclocalstorage/index.md): Use the Node.js AsyncLocalStorage API in Cloudflare Workers to maintain context across asynchronous operations. - [Buffer](https://docs.ahq.lat/workers/runtime-apis/nodejs/buffer/index.md): Use the Node.js Buffer API in Cloudflare Workers to manipulate binary data with encoding and decoding support. - [crypto](https://docs.ahq.lat/workers/runtime-apis/nodejs/crypto/index.md): Use the Node.js crypto module in Cloudflare Workers for hashing, encryption, signing, and verification. - [Diagnostics Channel](https://docs.ahq.lat/workers/runtime-apis/nodejs/diagnostics-channel/index.md): Use the Node.js diagnostics_channel API in Cloudflare Workers for low-overhead diagnostic event reporting. - [dns](https://docs.ahq.lat/workers/runtime-apis/nodejs/dns/index.md): Use the Node.js dns module in Cloudflare Workers for DNS name resolution via DNS over HTTPS. - [EventEmitter](https://docs.ahq.lat/workers/runtime-apis/nodejs/eventemitter/index.md): Use the Node.js EventEmitter API in Cloudflare Workers to emit and listen for named events. - [fs](https://docs.ahq.lat/workers/runtime-apis/nodejs/fs/index.md): Use the Node.js fs module in Cloudflare Workers to access a virtual file system for reading and writing files. - [http](https://docs.ahq.lat/workers/runtime-apis/nodejs/http/index.md): Use the Node.js http module in Cloudflare Workers for client and server-side HTTP functionality. - [https](https://docs.ahq.lat/workers/runtime-apis/nodejs/https/index.md): Use the Node.js https module in Cloudflare Workers for TLS-encrypted HTTP client and server functionality. - [net](https://docs.ahq.lat/workers/runtime-apis/nodejs/net/index.md): Use the Node.js net module in Cloudflare Workers to create TCP socket connections to external servers. - [path](https://docs.ahq.lat/workers/runtime-apis/nodejs/path/index.md): Use the Node.js path module in Cloudflare Workers for file and directory path manipulation utilities. - [process](https://docs.ahq.lat/workers/runtime-apis/nodejs/process/index.md): Use the Node.js process module in Cloudflare Workers for environment variables, event handling, and runtime information. - [Streams](https://docs.ahq.lat/workers/runtime-apis/nodejs/streams/index.md): Use the Node.js streams API in Cloudflare Workers for readable, writable, and transform stream operations. - [StringDecoder](https://docs.ahq.lat/workers/runtime-apis/nodejs/string-decoder/index.md): Use the Node.js string_decoder module in Cloudflare Workers for decoding buffer objects into strings. - [test](https://docs.ahq.lat/workers/runtime-apis/nodejs/test/index.md): Use the Node.js test module MockTracker API in Cloudflare Workers for tracking and managing mock objects. - [timers](https://docs.ahq.lat/workers/runtime-apis/nodejs/timers/index.md): Use the Node.js timers API in Cloudflare Workers to schedule functions with setTimeout, setInterval, and setImmediate. - [tls](https://docs.ahq.lat/workers/runtime-apis/nodejs/tls/index.md): Use the Node.js tls module in Cloudflare Workers to create secure TLS connections to external services. - [url](https://docs.ahq.lat/workers/runtime-apis/nodejs/url/index.md): Use the Node.js url module in Workers for domain-to-ASCII and domain-to-Unicode conversions. - [util](https://docs.ahq.lat/workers/runtime-apis/nodejs/util/index.md): Use the Node.js util module in Workers for promisify, callbackify, types, and MIMEType support. - [zlib](https://docs.ahq.lat/workers/runtime-apis/nodejs/zlib/index.md): Use the Node.js zlib module in Workers for Gzip, Deflate, and Brotli compression. - [Performance and timers](https://docs.ahq.lat/workers/runtime-apis/performance/index.md): Measure timing, performance, and timing of subrequests and other operations. - [Request](https://docs.ahq.lat/workers/runtime-apis/request/index.md): Interface that represents an HTTP request. - [Response](https://docs.ahq.lat/workers/runtime-apis/response/index.md): Interface that represents an HTTP response. - [Remote-procedure call (RPC)](https://docs.ahq.lat/workers/runtime-apis/rpc/index.md): The built-in, JavaScript-native RPC system built into Workers and Durable Objects. - [Error handling](https://docs.ahq.lat/workers/runtime-apis/rpc/error-handling/index.md): How exceptions, stack traces, and logging works with the Workers RPC system. - [Lifecycle](https://docs.ahq.lat/workers/runtime-apis/rpc/lifecycle/index.md): Memory management, resource management, and the lifecycle of RPC stubs. - [Reserved Methods](https://docs.ahq.lat/workers/runtime-apis/rpc/reserved-methods/index.md): Reserved methods with special behavior that are treated differently. - [TypeScript](https://docs.ahq.lat/workers/runtime-apis/rpc/typescript/index.md): How TypeScript types for your Worker or Durable Object's RPC methods are generated and exposed to clients - [Visibility and Security Model](https://docs.ahq.lat/workers/runtime-apis/rpc/visibility/index.md): Which properties are and are not exposed to clients that communicate with your Worker or Durable Object via RPC - [Scheduler](https://docs.ahq.lat/workers/runtime-apis/scheduler/index.md): Use the scheduler.wait() API to delay execution in Workers. - [Streams](https://docs.ahq.lat/workers/runtime-apis/streams/index.md): A web standard API that allows JavaScript to programmatically access and process streams of data. - [ReadableStream](https://docs.ahq.lat/workers/runtime-apis/streams/readablestream/index.md): Learn about the ReadableStream API for reading streamed data in Cloudflare Workers. - [ReadableStream BYOBReader](https://docs.ahq.lat/workers/runtime-apis/streams/readablestreambyobreader/index.md): Use ReadableStreamBYOBReader in Workers to read streamed data into your own buffer. - [ReadableStream DefaultReader](https://docs.ahq.lat/workers/runtime-apis/streams/readablestreamdefaultreader/index.md): Use ReadableStreamDefaultReader in Workers to read chunks from a ReadableStream. - [TransformStream](https://docs.ahq.lat/workers/runtime-apis/streams/transformstream/index.md): Use the TransformStream API in Workers to pipe data between readable and writable streams. - [WritableStream](https://docs.ahq.lat/workers/runtime-apis/streams/writablestream/index.md): Use the WritableStream API in Workers to write data to a stream destination. - [WritableStream DefaultWriter](https://docs.ahq.lat/workers/runtime-apis/streams/writablestreamdefaultwriter/index.md): Use WritableStreamDefaultWriter in Workers to write data directly to a WritableStream. - [TCP sockets](https://docs.ahq.lat/workers/runtime-apis/tcp-sockets/index.md): Use the `connect()` API to create outbound TCP connections from Workers. - [Web Crypto](https://docs.ahq.lat/workers/runtime-apis/web-crypto/index.md): A set of low-level functions for common cryptographic tasks. - [Web standards](https://docs.ahq.lat/workers/runtime-apis/web-standards/index.md): Standardized APIs for use by Workers running on Cloudflare's global network. - [WebAssembly (Wasm)](https://docs.ahq.lat/workers/runtime-apis/webassembly/index.md): Execute code written in a language other than JavaScript or write an entire Cloudflare Worker in Rust. - [Wasm in JavaScript](https://docs.ahq.lat/workers/runtime-apis/webassembly/javascript/index.md): Import and instantiate WebAssembly modules in Cloudflare Workers using JavaScript. - [WebSockets](https://docs.ahq.lat/workers/runtime-apis/websockets/index.md): Communicate in real time with your Cloudflare Workers. ## Static Assets - [Static Assets](https://docs.ahq.lat/workers/static-assets/index.md): Create full-stack applications deployed to Cloudflare Workers. - [Billing and Limitations](https://docs.ahq.lat/workers/static-assets/billing-and-limitations/index.md): Billing, troubleshooting, and limitations for Static assets on Workers - [Configuration and Bindings](https://docs.ahq.lat/workers/static-assets/binding/index.md): Details on how to configure Workers static assets and its binding. - [Direct Uploads](https://docs.ahq.lat/workers/static-assets/direct-upload/index.md): Upload assets through the Workers API. - [Get Started](https://docs.ahq.lat/workers/static-assets/get-started/index.md): Run front-end websites — static or dynamic — directly on Cloudflare's global network. - [Headers](https://docs.ahq.lat/workers/static-assets/headers/index.md): Learn about default and custom headers for Workers static assets, including Cache-Control, ETag, and Content-Type behavior. - [Migrate from Pages to Workers](https://docs.ahq.lat/workers/static-assets/migration-guides/migrate-from-pages/index.md): A guide for migrating from Cloudflare Pages to Cloudflare Workers. Includes a compatibility matrix for comparing the features of Cloudflare Workers and Pages. - [Migrate from Netlify to Workers](https://docs.ahq.lat/workers/static-assets/migration-guides/netlify-to-workers/index.md): Migrate your Netlify application to Cloudflare Workers. You should already have an existing project deployed on Netlified that you would like to host on Workers. - [Migrate from Vercel to Workers](https://docs.ahq.lat/workers/static-assets/migration-guides/vercel-to-workers/index.md): Migrate your Vercel application to Cloudflare Workers. You should already have an existing project deployed on Vercel that you would like to host on Workers. - [Redirects](https://docs.ahq.lat/workers/static-assets/redirects/index.md): Configure redirect rules for Workers static assets using a _redirects file. - [Gradual rollouts](https://docs.ahq.lat/workers/static-assets/routing/advanced/gradual-rollouts/index.md): Provide static asset routing solutions for gradual Worker deployments. - [HTML handling](https://docs.ahq.lat/workers/static-assets/routing/advanced/html-handling/index.md): How to configure a HTML handling and trailing slashes for the static assets of your Worker. - [Serving a subdirectory](https://docs.ahq.lat/workers/static-assets/routing/advanced/serving-a-subdirectory/index.md): How to configure a Worker with static assets on a subpath. - [Full-stack application](https://docs.ahq.lat/workers/static-assets/routing/full-stack-application/index.md): How to configure and use a full-stack application with Workers. - [Single Page Application (SPA)](https://docs.ahq.lat/workers/static-assets/routing/single-page-application/index.md): How to configure and use a Single Page Application (SPA) with Workers. - [Static Site Generation (SSG) and custom 404 pages](https://docs.ahq.lat/workers/static-assets/routing/static-site-generation/index.md): How to configure a Static Site Generation (SSG) application and custom 404 pages with Workers. - [Worker script](https://docs.ahq.lat/workers/static-assets/routing/worker-script/index.md): How the presence of a Worker script influences static asset routing and the related configuration options. ## Testing - [Testing](https://docs.ahq.lat/workers/testing/index.md): Compare testing options for Cloudflare Workers, including Vitest integration, Miniflare, and unstable_startWorker. - [Miniflare](https://docs.ahq.lat/workers/testing/miniflare/index.md): Simulate and test Cloudflare Workers locally with Miniflare, a fully-local development simulator. - [Compatibility Dates](https://docs.ahq.lat/workers/testing/miniflare/core/compatibility/index.md): Configure compatibility dates and flags in Miniflare to match Cloudflare Workers runtime behavior. - [Fetch Events](https://docs.ahq.lat/workers/testing/miniflare/core/fetch/index.md): Dispatch and test HTTP fetch events in Miniflare for Cloudflare Workers. - [Modules](https://docs.ahq.lat/workers/testing/miniflare/core/modules/index.md) - [Multiple Workers](https://docs.ahq.lat/workers/testing/miniflare/core/multiple-workers/index.md) - [Queues](https://docs.ahq.lat/workers/testing/miniflare/core/queues/index.md) - [Scheduled Events](https://docs.ahq.lat/workers/testing/miniflare/core/scheduled/index.md) - [Web Standards](https://docs.ahq.lat/workers/testing/miniflare/core/standards/index.md) - [Variables and Secrets](https://docs.ahq.lat/workers/testing/miniflare/core/variables-secrets/index.md) - [WebSockets](https://docs.ahq.lat/workers/testing/miniflare/core/web-sockets/index.md) - [Attaching a Debugger](https://docs.ahq.lat/workers/testing/miniflare/developing/debugger/index.md): Attach a Node.js debugger to Miniflare for setting breakpoints and inspecting Cloudflare Workers code. - [Live Reload](https://docs.ahq.lat/workers/testing/miniflare/developing/live-reload/index.md): Enable automatic browser refresh in Miniflare when your Workers script changes during local development. - [Get Started](https://docs.ahq.lat/workers/testing/miniflare/get-started/index.md): Install and configure the Miniflare API to dispatch events and test Cloudflare Workers locally. - [Migrating from Version 2](https://docs.ahq.lat/workers/testing/miniflare/migrations/from-v2/index.md): Migrate from Miniflare v2 to v3, which uses the workerd runtime for full Workers compatibility. - [Cache](https://docs.ahq.lat/workers/testing/miniflare/storage/cache/index.md) - [D1](https://docs.ahq.lat/workers/testing/miniflare/storage/d1/index.md) - [Durable Objects](https://docs.ahq.lat/workers/testing/miniflare/storage/durable-objects/index.md) - [KV](https://docs.ahq.lat/workers/testing/miniflare/storage/kv/index.md) - [R2](https://docs.ahq.lat/workers/testing/miniflare/storage/r2/index.md) - [Writing tests](https://docs.ahq.lat/workers/testing/miniflare/writing-tests/index.md): Write integration tests against Workers using Miniflare. - [Wrangler's unstable_startWorker()](https://docs.ahq.lat/workers/testing/unstable_startworker/index.md): Write integration tests using Wrangler's `unstable_startWorker()` API - [Vitest integration](https://docs.ahq.lat/workers/testing/vitest-integration/index.md): Run unit and integration tests for Cloudflare Workers inside the Workers runtime using the Vitest integration. - [Configuration](https://docs.ahq.lat/workers/testing/vitest-integration/configuration/index.md): Vitest configuration specific to the Workers integration. - [Debugging](https://docs.ahq.lat/workers/testing/vitest-integration/debugging/index.md): Debug your Workers tests with Vitest. - [Isolation and concurrency](https://docs.ahq.lat/workers/testing/vitest-integration/isolation-and-concurrency/index.md): Review how the Workers Vitest integration runs your tests, how it isolates tests from each other, and how it imports modules. - [Known issues](https://docs.ahq.lat/workers/testing/vitest-integration/known-issues/index.md): Explore the known issues associated with the Workers Vitest integration. - [Migrate from Miniflare 2's test environments](https://docs.ahq.lat/workers/testing/vitest-integration/migration-guides/migrate-from-miniflare-2/index.md): Migrate from [Miniflare 2](https://github.com/cloudflare/miniflare?tab=readme-ov-file) to the Workers Vitest integration. - [Migrate from unstable_dev](https://docs.ahq.lat/workers/testing/vitest-integration/migration-guides/migrate-from-unstable-dev/index.md): Migrate from the [`unstable_dev`](/workers/wrangler/api/#unstable_dev) API to writing tests with the Workers Vitest integration. - [Recipes and examples](https://docs.ahq.lat/workers/testing/vitest-integration/recipes/index.md): Examples that demonstrate how to write unit and integration tests with the Workers Vitest integration. - [Test APIs](https://docs.ahq.lat/workers/testing/vitest-integration/test-apis/index.md): Runtime helpers for writing tests, exported from `cloudflare:workers` and `cloudflare:test`. - [Write your first test](https://docs.ahq.lat/workers/testing/vitest-integration/write-your-first-test/index.md): Write tests against Workers using Vitest ## Observability - [Observability](https://docs.ahq.lat/workers/observability/index.md): Understand how your Worker projects are performing via logs, traces, metrics, and other data sources. - [DevTools](https://docs.ahq.lat/workers/observability/dev-tools/index.md): Use Chrome DevTools to debug, profile, and inspect Cloudflare Workers locally. - [Breakpoints](https://docs.ahq.lat/workers/observability/dev-tools/breakpoints/index.md): Debug your local and deployed Workers using breakpoints. - [Profiling CPU usage](https://docs.ahq.lat/workers/observability/dev-tools/cpu-usage/index.md): Learn how to profile CPU usage and ensure CPU-time per request stays under Workers limits - [Profiling Memory](https://docs.ahq.lat/workers/observability/dev-tools/memory-usage/index.md): Profile memory usage with DevTools snapshots to optimize Workers and avoid OOM errors. - [Errors and exceptions](https://docs.ahq.lat/workers/observability/errors/index.md): Review Workers errors and exceptions. - [Exporting OpenTelemetry Data](https://docs.ahq.lat/workers/observability/exporting-opentelemetry-data/index.md): Export traces and logs from Cloudflare Workers to any OpenTelemetry-compatible destination. - [Export to Axiom](https://docs.ahq.lat/workers/observability/exporting-opentelemetry-data/axiom/index.md): Send OpenTelemetry traces and logs from Cloudflare Workers to Axiom. - [Export to Grafana Cloud](https://docs.ahq.lat/workers/observability/exporting-opentelemetry-data/grafana-cloud/index.md): Send OpenTelemetry traces and logs from Cloudflare Workers to Grafana Cloud. - [Export to Honeycomb](https://docs.ahq.lat/workers/observability/exporting-opentelemetry-data/honeycomb/index.md): Send OpenTelemetry traces and logs from Cloudflare Workers to Honeycomb. - [Export to PostHog](https://docs.ahq.lat/workers/observability/exporting-opentelemetry-data/posthog/index.md): Send OpenTelemetry logs from Cloudflare Workers to PostHog for analytics. - [Export to Sentry](https://docs.ahq.lat/workers/observability/exporting-opentelemetry-data/sentry/index.md): Export OpenTelemetry traces and logs from Cloudflare Workers to Sentry for monitoring and debugging. - [Logs](https://docs.ahq.lat/workers/observability/logs/index.md): Access, filter, and export logs from Cloudflare Workers for troubleshooting. - [Workers Logpush](https://docs.ahq.lat/workers/observability/logs/logpush/index.md): Send Workers Trace Event Logs to a supported third party, such as a storage or logging provider. - [Real-time logs](https://docs.ahq.lat/workers/observability/logs/real-time-logs/index.md): Debug your Worker application by accessing logs and exceptions through the Cloudflare dashboard or `wrangler tail`. - [Tail Workers](https://docs.ahq.lat/workers/observability/logs/tail-workers/index.md): Track and log Workers on invocation by assigning a Tail Worker to your projects. - [Workers Logs](https://docs.ahq.lat/workers/observability/logs/workers-logs/index.md): Store, filter, and analyze log data emitted from Cloudflare Workers. - [Metrics and analytics](https://docs.ahq.lat/workers/observability/metrics-and-analytics/index.md): Diagnose issues with Workers metrics, and review request data for a zone with Workers analytics. - [Query Builder](https://docs.ahq.lat/workers/observability/query-builder/index.md): Write structured queries to investigate and visualize your telemetry data. - [Source maps and stack traces](https://docs.ahq.lat/workers/observability/source-maps/index.md): Adding source maps and generating stack traces for Workers. - [Traces](https://docs.ahq.lat/workers/observability/traces/index.md): Gain end-to-end visibility into request flows across your Workers application with automatic tracing instrumentation. - [Known limitations](https://docs.ahq.lat/workers/observability/traces/known-limitations/index.md) - [Spans and attributes](https://docs.ahq.lat/workers/observability/traces/spans-and-attributes/index.md): Review the spans and attributes automatically captured by Workers tracing, including fetch calls, bindings, and handler invocations. ## Vite plugin - [Vite plugin](https://docs.ahq.lat/workers/vite-plugin/index.md): A full-featured integration between Vite and the Workers runtime - [Get started](https://docs.ahq.lat/workers/vite-plugin/get-started/index.md): Get started with the Vite plugin - [API](https://docs.ahq.lat/workers/vite-plugin/reference/api/index.md): Vite plugin API - [Cloudflare Environments](https://docs.ahq.lat/workers/vite-plugin/reference/cloudflare-environments/index.md): Using Cloudflare environments with the Vite plugin - [Debugging](https://docs.ahq.lat/workers/vite-plugin/reference/debugging/index.md): Debugging with the Vite plugin - [Migrating from wrangler dev](https://docs.ahq.lat/workers/vite-plugin/reference/migrating-from-wrangler-dev/index.md): Migrating from wrangler dev to the Vite plugin - [Non-JavaScript modules](https://docs.ahq.lat/workers/vite-plugin/reference/non-javascript-modules/index.md): Additional module types that can be imported in your Worker - [Programmatic configuration](https://docs.ahq.lat/workers/vite-plugin/reference/programmatic-configuration/index.md): Configure Workers programmatically using the Vite plugin - [Secrets](https://docs.ahq.lat/workers/vite-plugin/reference/secrets/index.md): Using secrets with the Vite plugin - [Static Assets](https://docs.ahq.lat/workers/vite-plugin/reference/static-assets/index.md): Static assets and the Vite plugin - [Vite Environments](https://docs.ahq.lat/workers/vite-plugin/reference/vite-environments/index.md): Vite environments and the Vite plugin - [Tutorial - React SPA with an API](https://docs.ahq.lat/workers/vite-plugin/tutorial/index.md): Create a React SPA with an API Worker using the Vite plugin ## Languages - [Languages](https://docs.ahq.lat/workers/languages/index.md): Languages supported on Workers, a polyglot platform. - [JavaScript](https://docs.ahq.lat/workers/languages/javascript/index.md): Write Cloudflare Workers using JavaScript standards and web platform APIs. - [Examples](https://docs.ahq.lat/workers/examples/?languages=JavaScriptindex.md): Browse JavaScript code examples for Cloudflare Workers. - [Python Workers](https://docs.ahq.lat/workers/languages/python/index.md): Write Workers in 100% Python - [The Basics](https://docs.ahq.lat/workers/languages/python/basics/index.md): Learn the basics of Python Workers - [Examples](https://docs.ahq.lat/workers/languages/python/examples/index.md): Python code examples demonstrating modules, bindings, and SDK usage in Workers. - [Foreign Function Interface (FFI)](https://docs.ahq.lat/workers/languages/python/ffi/index.md): Call JavaScript APIs, bindings, and globals from Python Workers using the Pyodide FFI. - [How Python Workers Work](https://docs.ahq.lat/workers/languages/python/how-python-workers-work/index.md): Learn how Python Workers run via Pyodide in V8 isolates and how local development works. - [Packages](https://docs.ahq.lat/workers/languages/python/packages/index.md): Manage and use Python packages in Cloudflare Workers with Pywrangler. - [FastAPI](https://docs.ahq.lat/workers/languages/python/packages/fastapi/index.md): Build Python Workers APIs using FastAPI with the built-in ASGI server. - [Langchain](https://docs.ahq.lat/workers/languages/python/packages/langchain/index.md): Use LangChain Python packages to build AI applications on Cloudflare Workers. - [Standard Library](https://docs.ahq.lat/workers/languages/python/stdlib/index.md): Python standard library availability and limitations in Cloudflare Workers. - [Rust](https://docs.ahq.lat/workers/languages/rust/index.md): Write Workers in 100% Rust using the [`workers-rs` crate](https://github.com/cloudflare/workers-rs) - [Supported crates](https://docs.ahq.lat/workers/languages/rust/crates/index.md): Popular Rust crates confirmed to compile to WebAssembly and run on Cloudflare Workers. - [TypeScript](https://docs.ahq.lat/workers/languages/typescript/index.md): Use TypeScript with fully typed APIs to build Cloudflare Workers. - [Examples](https://docs.ahq.lat/workers/examples/?languages=TypeScriptindex.md): Browse TypeScript code examples for Cloudflare Workers. ## Glossary - [Glossary](https://docs.ahq.lat/workers/glossary/index.md): Definitions of terms used in the Cloudflare Workers documentation. ## best-practices - [Workers Best Practices](https://docs.ahq.lat/workers/best-practices/workers-best-practices/index.md): Code patterns and configuration guidance for building fast, reliable, observable, and secure Workers. ## databases - [Analytics Engine](https://docs.ahq.lat/analytics/analytics-engine/index.md): Use Workers to receive performance analytics about your applications, products and projects. - [Connect to databases](https://docs.ahq.lat/workers/databases/connecting-to-databases/index.md): Learn about the different kinds of database integrations Cloudflare supports. - [Cloudflare D1](https://docs.ahq.lat/d1/index.md): Cloudflare’s native serverless database. - [Hyperdrive](https://docs.ahq.lat/hyperdrive/index.md): Use Workers to accelerate queries you make to existing databases. - [3rd Party Integrations](https://docs.ahq.lat/workers/databases/third-party-integrations/index.md): Connect to third-party databases such as Supabase, Turso and PlanetScale) - [Neon](https://docs.ahq.lat/workers/databases/third-party-integrations/neon/index.md): Connect Workers to a Neon Postgres database. - [PlanetScale](https://docs.ahq.lat/workers/databases/third-party-integrations/planetscale/index.md): Connect Cloudflare Workers to a PlanetScale MySQL-compatible database using Hyperdrive or the PlanetScale serverless driver. - [Supabase](https://docs.ahq.lat/workers/databases/third-party-integrations/supabase/index.md): Connect Cloudflare Workers to a Supabase PostgreSQL database using the Supabase client or Hyperdrive. - [Turso](https://docs.ahq.lat/workers/databases/third-party-integrations/turso/index.md): Connect Cloudflare Workers to Turso, an edge-hosted distributed database based on libSQL. - [Upstash](https://docs.ahq.lat/workers/databases/third-party-integrations/upstash/index.md): Connect Cloudflare Workers to Upstash for serverless Redis and Kafka integrations. - [Xata](https://docs.ahq.lat/workers/databases/third-party-integrations/xata/index.md): Connect Cloudflare Workers to a Xata PostgreSQL database using Hyperdrive. - [Vectorize (vector database)](https://docs.ahq.lat/vectorize/index.md): A globally distributed vector database that enables you to build full-stack, AI-powered applications with Cloudflare Workers. ## framework-guides - [Agents SDK](https://docs.ahq.lat/agents/index.md): Build AI agents on Cloudflare Workers using the Agents SDK. - [LangChain](https://docs.ahq.lat/workers/languages/python/packages/langchain/index.md): Build AI-powered applications on Cloudflare Workers using LangChain. - [FastAPI](https://docs.ahq.lat/workers/languages/python/packages/fastapi/index.md): Deploy FastAPI applications on Cloudflare Workers with Python support. - [Hono](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/hono/index.md): Build lightweight web APIs on Cloudflare Workers using the Hono framework. - [Deploy an existing project](https://docs.ahq.lat/workers/framework-guides/automatic-configuration/index.md): Learn how Wrangler automatically detects and configures your project for Cloudflare Workers. - [Astro](https://docs.ahq.lat/workers/framework-guides/web-apps/astro/index.md): Create an Astro application and deploy it to Cloudflare Workers with Workers Assets. - [Microfrontends](https://docs.ahq.lat/workers/framework-guides/web-apps/microfrontends/index.md): Split a single application into independently deployable frontends, using a router worker and service bindings - [More guides...](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/index.md): Additional framework guides for building web applications on Cloudflare Workers. - [Analog](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/analog/index.md): Create an Analog application and deploy it to Cloudflare Workers. - [Angular](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/angular/index.md): Create an Angular application and deploy it to Cloudflare Workers with Workers Assets. - [Docusaurus](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/docusaurus/index.md): Create a Docusaurus application and deploy it to Cloudflare Workers with Workers Assets. - [Gatsby](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/gatsby/index.md): Create a Gatsby application and deploy it to Cloudflare Workers with Workers Assets. - [Hono](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/hono/index.md): Create a Hono application and deploy it to Cloudflare Workers with Workers Assets. - [Nuxt](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/nuxt/index.md): Create a Nuxt application and deploy it to Cloudflare Workers with Workers Assets. - [Qwik](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/qwik/index.md): Create a Qwik application and deploy it to Cloudflare Workers with Workers Assets. - [Solid](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/solid/index.md): Create a Solid application and deploy it to Cloudflare Workers with Workers Assets. - [Waku](https://docs.ahq.lat/workers/framework-guides/web-apps/more-web-frameworks/waku/index.md): Create a Waku application and deploy it to Cloudflare Workers with Workers Assets. - [Next.js](https://docs.ahq.lat/workers/framework-guides/web-apps/nextjs/index.md): Create an Next.js application and deploy it to Cloudflare Workers with Workers Assets. - [React + Vite](https://docs.ahq.lat/workers/framework-guides/web-apps/react/index.md): Create a React application and deploy it to Cloudflare Workers with Workers Assets. - [React Router (formerly Remix)](https://docs.ahq.lat/workers/framework-guides/web-apps/react-router/index.md): Create a React Router application and deploy it to Cloudflare Workers - [RedwoodSDK](https://docs.ahq.lat/workers/framework-guides/web-apps/redwoodsdk/index.md): Create a RedwoodSDK application and deploy it to Cloudflare Workers. - [SvelteKit](https://docs.ahq.lat/workers/framework-guides/web-apps/sveltekit/index.md): Create a SvelteKit application and deploy it to Cloudflare Workers with Workers Assets. - [TanStack Start](https://docs.ahq.lat/workers/framework-guides/web-apps/tanstack-start/index.md): Deploy a TanStack Start application to Cloudflare Workers. - [Vike](https://docs.ahq.lat/workers/framework-guides/web-apps/vike/index.md): Create a Vike application and deploy it to Cloudflare Workers - [Vue](https://docs.ahq.lat/workers/framework-guides/web-apps/vue/index.md): Create a Vue application and deploy it to Cloudflare Workers with Workers Assets. ## get-started - [Dashboard](https://docs.ahq.lat/workers/get-started/dashboard/index.md): Create and deploy a Cloudflare Worker using the Cloudflare dashboard. - [CLI](https://docs.ahq.lat/workers/get-started/guide/index.md): Set up and deploy your first Cloudflare Worker using Wrangler, the command-line interface. - [Prompting](https://docs.ahq.lat/workers/get-started/prompting/index.md): Build Workers apps with AI prompts and MCP servers. - [Templates](https://docs.ahq.lat/workers/get-started/quickstarts/index.md): GitHub repositories that are designed to be a starting point for building a new Cloudflare Workers project. ## platform - [Betas](https://docs.ahq.lat/workers/platform/betas/index.md): Cloudflare developer platform and Workers features beta status. - [Built with Cloudflare button](https://docs.ahq.lat/workers/platform/built-with-cloudflare/index.md): Set up a Built with Cloudflare button - [Changelog](https://docs.ahq.lat/workers/platform/changelog/index.md): Review recent changes to Cloudflare Workers. - [Workers (Historic)](https://docs.ahq.lat/workers/platform/changelog/historical-changelog/index.md): Review pre-2023 changes to Cloudflare Workers. - [Deploy to Cloudflare buttons](https://docs.ahq.lat/workers/platform/deploy-buttons/index.md): Set up a Deploy to Cloudflare button - [Infrastructure as Code (IaC)](https://docs.ahq.lat/workers/platform/infrastructure-as-code/index.md): Deploy and manage Cloudflare Workers using Terraform, Pulumi, and the Cloudflare API SDKs. - [Known issues](https://docs.ahq.lat/workers/platform/known-issues/index.md): Known issues and bugs to be aware of when using Workers. - [Limits](https://docs.ahq.lat/workers/platform/limits/index.md): Cloudflare Workers plan and platform limits. - [Pricing](https://docs.ahq.lat/workers/platform/pricing/index.md): Workers plans and pricing information. - [Choose a data or storage product](https://docs.ahq.lat/workers/platform/storage-options/index.md): Storage and database options available on Cloudflare's developer platform. - [Workers for Platforms](https://docs.ahq.lat/cloudflare-for-platforms/workers-for-platforms/index.md): Deploy custom code on behalf of your users or let your users directly deploy their own code to your platform, managing infrastructure. ## reference - [How the Cache works](https://docs.ahq.lat/workers/reference/how-the-cache-works/index.md): How Workers interacts with the Cloudflare cache. - [How Workers works](https://docs.ahq.lat/workers/reference/how-workers-works/index.md): The difference between the Workers runtime versus traditional browsers and Node.js. - [Migrate from Service Workers to ES Modules](https://docs.ahq.lat/workers/reference/migrate-to-module-workers/index.md): Write your Worker code in ES modules syntax for an optimized experience. - [Protocols](https://docs.ahq.lat/workers/reference/protocols/index.md): Supported protocols on the Workers platform. - [Security model](https://docs.ahq.lat/workers/reference/security-model/index.md): Understand the Workers security architecture, including V8 isolate sandboxing and Spectre mitigations. ## wrangler - [API](https://docs.ahq.lat/workers/wrangler/api/index.md): A set of programmatic APIs that can be integrated with local Cloudflare Workers-related workflows. - [Bundling](https://docs.ahq.lat/workers/wrangler/bundling/index.md): Review Wrangler's default bundling. - [Commands](https://docs.ahq.lat/workers/wrangler/commands/index.md): Create, develop, and deploy your Cloudflare Workers with Wrangler commands. - [Artifacts](https://docs.ahq.lat/workers/wrangler/commands/artifacts/index.md): Manage Artifacts namespaces, repositories, and repo-scoped tokens using Wrangler. - [Browser](https://docs.ahq.lat/workers/wrangler/commands/browser/index.md): Wrangler commands for interacting with Cloudflare Browser Run. - [Certificates](https://docs.ahq.lat/workers/wrangler/commands/certificates/index.md): Wrangler commands for managing mTLS and CA certificates, for use standalone or with Hyperdrive. - [Containers](https://docs.ahq.lat/workers/wrangler/commands/containers/index.md): Wrangler commands for interacting with Cloudflare's Container Platform. - [D1](https://docs.ahq.lat/workers/wrangler/commands/d1/index.md): Wrangler commands for interacting with Cloudflare D1. - [General commands](https://docs.ahq.lat/workers/wrangler/commands/general/index.md): General Wrangler commands for authentication, telemetry, and shell completions. - [Hyperdrive](https://docs.ahq.lat/workers/wrangler/commands/hyperdrive/index.md): Wrangler commands for managing Hyperdrive database configurations. - [KV](https://docs.ahq.lat/workers/wrangler/commands/kv/index.md): Wrangler commands for managing Workers KV namespaces and key-value pairs. - [Pages](https://docs.ahq.lat/workers/wrangler/commands/pages/index.md): Wrangler commands for configuring Cloudflare Pages. - [Pipelines](https://docs.ahq.lat/workers/wrangler/commands/pipelines/index.md): Wrangler commands for managing Cloudflare Pipelines. - [Queues](https://docs.ahq.lat/workers/wrangler/commands/queues/index.md): Wrangler commands for managing Workers Queues configurations. - [R2](https://docs.ahq.lat/workers/wrangler/commands/r2/index.md): Wrangler commands for managing Workers R2 buckets and objects. - [Secrets Store](https://docs.ahq.lat/workers/wrangler/commands/secrets-store/index.md): Wrangler commands for managing account secrets within a Secrets Store. - [Tunnel](https://docs.ahq.lat/workers/wrangler/commands/tunnel/index.md): Wrangler commands for managing Cloudflare Tunnels. - [Vectorize](https://docs.ahq.lat/workers/wrangler/commands/vectorize/index.md): Wrangler commands for interacting with Vectorize vector databases. - [VPC](https://docs.ahq.lat/workers/wrangler/commands/vpc/index.md): Wrangler commands for managing Workers VPC services. - [Workers](https://docs.ahq.lat/workers/wrangler/commands/workers/index.md): Wrangler commands for creating, developing, deploying, and managing Workers. - [Workers for Platforms](https://docs.ahq.lat/workers/wrangler/commands/workers-for-platforms/index.md): Wrangler commands for managing Workers for Platforms dispatch namespaces. - [Workflows](https://docs.ahq.lat/workers/wrangler/commands/workflows/index.md): Wrangler commands for managing and configuring Cloudflare Workflows. - [Configuration](https://docs.ahq.lat/workers/wrangler/configuration/index.md): Use a configuration file to customize the development and deployment setup for your Worker project and other Developer Platform products. - [Custom builds](https://docs.ahq.lat/workers/wrangler/custom-builds/index.md): Customize how your code is compiled, before being processed by Wrangler. - [Deprecations](https://docs.ahq.lat/workers/wrangler/deprecations/index.md): The differences between Wrangler versions, specifically deprecations and breaking changes. - [Environments](https://docs.ahq.lat/workers/wrangler/environments/index.md): Use environments to create different configurations for the same Worker application. - [Install/Update Wrangler](https://docs.ahq.lat/workers/wrangler/install-and-update/index.md): Get started by installing Wrangler, and update to newer versions by following this guide. - [Migrate from Wrangler v2 to v3](https://docs.ahq.lat/workers/wrangler/migration/update-v2-to-v3/index.md): Update Wrangler from v2 to v3 with no special migration steps required. Review deprecations and known issues. - [Migrate from Wrangler v3 to v4](https://docs.ahq.lat/workers/wrangler/migration/update-v3-to-v4/index.md): Upgrade Wrangler from v3 to v4, including breaking changes, updated Node.js requirements, and new defaults. - [1. Migrate webpack projects](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/eject-webpack/index.md): Migrate webpack-based Workers projects from Wrangler v1 to v2 by ejecting your bundler configuration. - [2. Update to Wrangler v2](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/update-v1-to-v2/index.md): Install Wrangler v2 and update your Workers project configuration, including wrangler.toml changes. - [Authentication](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/wrangler-legacy/authentication/index.md): Set up authentication for Wrangler v1 using API tokens, environment variables, or the login command. - [Commands](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/wrangler-legacy/commands/index.md): Reference for all Wrangler v1 CLI commands, including generate, publish, and preview. Now deprecated. - [Configuration](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/wrangler-legacy/configuration/index.md): Learn how to configure your Cloudflare Worker using Wrangler v1. This guide covers top-level and environment-specific settings, key types, and deployment options. - [Install / Update](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/wrangler-legacy/install-update/index.md): Install or update Wrangler v1 using npm or Cargo. Now deprecated in favor of the latest Wrangler release. - [Webpack](https://docs.ahq.lat/workers/wrangler/migration/v1-to-v2/wrangler-legacy/webpack/index.md): Learn how to migrate from Wrangler v1 to v2 using webpack. This guide covers configuration, custom builds, and compatibility for Cloudflare Workers. - [System environment variables](https://docs.ahq.lat/workers/wrangler/system-environment-variables/index.md): Local environment variables that can change Wrangler's behavior.