> ## Documentation Index
> Fetch the complete documentation index at: https://bunny.net/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Bunny Edge Scripting

> Run JavaScript and TypeScript at the edge. Build APIs, dynamic UIs, AI-powered functions, or extend Bunny CDN with middleware, all without managing servers.

![bunny.net Scripting](https://mintcdn.com/bunnynet-cb9733c2/54-4KCQKoNVNuoyW/images/scripting/scripting.png?fit=max\&auto=format\&n=54-4KCQKoNVNuoyW\&q=85\&s=7af372b01d80183b289100960e6adc3a)

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

> **[Edge Scripting Quickstart](/docs/scripting/quickstart)**

Edge Scripting runs on [Deno](https://deno.com/) 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](/docs/scripting/standalone/overview)**
>
> 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](/docs/scripting/middleware/overview)**
>
> 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](/docs/scripting/quickstart)**
>
> Create and deploy your first edge script in minutes.

> **[Examples](/docs/scripting/standalone/examples/return-json)**
>
> See practical examples for standalone and middleware scripts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.