Skip to main content
bunny.net Scripting Bunny Edge Scripting lets you deploy code directly to the edge, close to your users, without running your own servers.

Edge Scripting Quickstart

Edge Scripting runs on Deno and V8, the engine behind Chrome. Each script gets an isolated runtime with access to standard Web APIs. You can write the code in the browser or connect a GitHub repository for continuous deployment.

Script types

Standalone Scripts

Independent scripts that handle HTTP requests directly. Build REST APIs, serve dynamic HTML, process data, or call external services like AI models, all without an origin server.

Middleware Scripts

Intercept and modify requests and responses as they flow through Bunny CDN. Add authentication, manipulate headers, transform content, or implement custom caching logic.

Features

  • Write, test, and deploy scripts in the browser editor
  • Connect a GitHub repository for version control and automatic deployments through GitHub Actions
  • Store API keys and configuration as environment variables or secrets
  • Debug with live logs and track execution metrics

Next steps

Quickstart

Create and deploy your first edge script in minutes.

Examples

See practical examples for standalone and middleware scripts.
Last modified on August 17, 2026