> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-add-new-partner-apis.mintlify.site/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.

<img src="https://mintcdn.com/bunnynet-cb9733c2-add-new-partner-apis/HVNe6KVwLmGTGfJi/images/scripting/scripting.png?fit=max&auto=format&n=HVNe6KVwLmGTGfJi&q=85&s=8b36fefaa3efff1b3e05867c9ed51d17" alt="bunny.net Scripting" width="1030" height="520" data-path="images/scripting/scripting.png" />

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

<Card title="Edge Scripting Quickstart" href="/scripting/quickstart" icon="rocket" horizontal />

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

<CardGroup cols={2}>
  <Card title="Standalone Scripts" icon="server" href="/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.
  </Card>

  <Card title="Middleware Scripts" icon="shuffle" href="/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.
  </Card>
</CardGroup>

## 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

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/scripting/quickstart">
    Create and deploy your first edge script in minutes.
  </Card>

  <Card title="Examples" icon="code" href="/scripting/standalone/examples/return-json">
    See practical examples for standalone and middleware scripts.
  </Card>
</CardGroup>
