Skip to main content
bunny.net Scripting Bunny Edge Scripting lets you deploy code directly to the edge. Your code runs close to your users, with zero server management.

Edge Scripting Quickstart

Built on Deno and V8 (the engine behind Chrome), Edge Scripting provides a secure, isolated runtime with access to standard Web APIs. Write code in the browser or connect your 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 — no origin server required.

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

  • Browser-based editor — Write, test, and deploy scripts without leaving your browser
  • GitHub integration — Connect a repository for version control and automatic deployments via GitHub Actions
  • Secrets and environment variables — Store API keys and configuration securely
  • Logs and statistics — Debug with real-time logs and monitor execution metrics

Next Steps

Quickstart

Create and deploy your first edge script in minutes.

Examples

See practical examples for standalone and middleware scripts.