> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-docs-edge-scripting-astro-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Create and deploy your first Edge Script in minutes.

<Steps>
  <Step title="Login and navigate to scripting">
    Login to [bunny.net dashboard](https://dash.bunny.net/auth/login?pk_buttonlocation=menu), then navigate to **Edge Platform** > **Scripting** and click **Add Script**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/QO0lQ_MGVJkLHWgA/images/docs/0b5bff4662563e07b358a70392b77a8be85f58aa8e1cd21968b2dfef2f88b34e-image.png?fit=max&auto=format&n=QO0lQ_MGVJkLHWgA&q=85&s=148d716d96286214541e004c28908dab" alt="" width="1484" height="776" data-path="images/docs/0b5bff4662563e07b358a70392b77a8be85f58aa8e1cd21968b2dfef2f88b34e-image.png" />
    </Frame>
  </Step>

  <Step title="Select a script type">
    Provide a name for your script and select a script type:

    <Tabs>
      <Tab title="Standalone">
        Select **Standalone** type and then **Default standalone** template.

        <Frame>
          <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/P4Psp-ufms1k8t_u/images/docs/68f18ff3816d5947d7acd499028840c65c3e6c7dc5461a8e81d1f8807cc3548e-image.png?fit=max&auto=format&n=P4Psp-ufms1k8t_u&q=85&s=de02351be9a55419c9d9415f61074d33" alt="" width="1491" height="1265" data-path="images/docs/68f18ff3816d5947d7acd499028840c65c3e6c7dc5461a8e81d1f8807cc3548e-image.png" />
        </Frame>

        Standalone scripts handle HTTP requests directly at the edge, without an origin server behind them. Use them for REST APIs, UI applications, and data processing.

        [Learn more about standalone scripts](/scripting/standalone/overview)
      </Tab>

      <Tab title="Middleware">
        Select **Middleware** type and then **Default middleware** template.

        Middleware scripts intercept and modify requests and responses as they flow through the CDN. Use them for authentication, header manipulation, and content transformation.

        [Learn more about middleware scripts](/scripting/middleware/overview)
      </Tab>
    </Tabs>

    Click **Add script**.
  </Step>

  <Step title="Explore the script editor">
    A pull zone is created for your script, so it is reachable from the outside through a unique URL. The script starts with a placeholder function that returns "Hello from" when you open that URL.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/AOntjG8dCf818tF6/images/docs/da2454f3d77252f3af19246fb567d36fcd0d40a767a564e238f3f481d3f4fcb5-image.png?fit=max&auto=format&n=AOntjG8dCf818tF6&q=85&s=f77f36a78687460a5a30e6d059ae8c50" alt="" width="1814" height="1738" data-path="images/docs/da2454f3d77252f3af19246fb567d36fcd0d40a767a564e238f3f481d3f4fcb5-image.png" />
    </Frame>

    The bottom left panel is a preview pane where you can enter a URL and run the script currently open in the editor. Running it here doesn't change the deployed script, so you can test your code before publishing it.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/QO0lQ_MGVJkLHWgA/images/docs/23d1b7ac94614fa713ed6fb811bc5284d46539c1c2b8b0019d7ca6a344c9f7c0-image.png?fit=max&auto=format&n=QO0lQ_MGVJkLHWgA&q=85&s=786a05aba3ea4427d5353b279ef15180" alt="" width="1358" height="714" data-path="images/docs/23d1b7ac94614fa713ed6fb811bc5284d46539c1c2b8b0019d7ca6a344c9f7c0-image.png" />
    </Frame>

    On the bottom right, the dashboard includes a logs pane. This pane captures and displays output from any `console.log` calls made by the script when it is run in the preview pane.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/AOntjG8dCf818tF6/images/docs/d5c773703340b197b87dbc664e48ae7fc0eae31d410d70ad2fca4acbb07994da-image.png?fit=max&auto=format&n=AOntjG8dCf818tF6&q=85&s=010e77ce29b6a3ab5b27f017d69e4f68" alt="" width="1340" height="522" data-path="images/docs/d5c773703340b197b87dbc664e48ae7fc0eae31d410d70ad2fca4acbb07994da-image.png" />
    </Frame>

    Use it to trace what the script did on the last run and to confirm it behaved the way you expected.
  </Step>

  <Step title="Edit and test your script">
    Replace the placeholder with your own code, then open the script URL to check
    that your changes work.
  </Step>

  <Step title="Save and publish">
    When you are happy with your script, click **Save** and **Publish**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-docs-edge-scripting-astro-guide/P4Psp-ufms1k8t_u/images/docs/a3a37ccbb4b2fbbad74ad195292713e3875f727a99bb2bba411cc3e7c11e977a-image.png?fit=max&auto=format&n=P4Psp-ufms1k8t_u&q=85&s=c1253d619e070ed5fd987f276f82e78b" alt="" width="1286" height="500" data-path="images/docs/a3a37ccbb4b2fbbad74ad195292713e3875f727a99bb2bba411cc3e7c11e977a-image.png" />
    </Frame>

    Published changes take effect immediately.
  </Step>
</Steps>
