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

# 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-add-new-partner-apis/VGQSmK4NZjhav3kT/images/docs/0b5bff4662563e07b358a70392b77a8be85f58aa8e1cd21968b2dfef2f88b34e-image.png?fit=max&auto=format&n=VGQSmK4NZjhav3kT&q=85&s=5178f40cd4aa315366ec4851c7512a8e" 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-add-new-partner-apis/skVYlD6SY4HxvcnU/images/docs/68f18ff3816d5947d7acd499028840c65c3e6c7dc5461a8e81d1f8807cc3548e-image.png?fit=max&auto=format&n=skVYlD6SY4HxvcnU&q=85&s=5dbf9f35d4654ec7068a5b8d3f3a7327" 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-add-new-partner-apis/HDJ3Mo8hdY58eSDA/images/docs/da2454f3d77252f3af19246fb567d36fcd0d40a767a564e238f3f481d3f4fcb5-image.png?fit=max&auto=format&n=HDJ3Mo8hdY58eSDA&q=85&s=a67eeb93af4902c80423c7fe22e85156" 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-add-new-partner-apis/VGQSmK4NZjhav3kT/images/docs/23d1b7ac94614fa713ed6fb811bc5284d46539c1c2b8b0019d7ca6a344c9f7c0-image.png?fit=max&auto=format&n=VGQSmK4NZjhav3kT&q=85&s=bbeb885941868ab80967196996c4bca2" 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-add-new-partner-apis/HDJ3Mo8hdY58eSDA/images/docs/d5c773703340b197b87dbc664e48ae7fc0eae31d410d70ad2fca4acbb07994da-image.png?fit=max&auto=format&n=HDJ3Mo8hdY58eSDA&q=85&s=851a1de4f85fba0d535ce0758053434c" 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-add-new-partner-apis/skVYlD6SY4HxvcnU/images/docs/a3a37ccbb4b2fbbad74ad195292713e3875f727a99bb2bba411cc3e7c11e977a-image.png?fit=max&auto=format&n=skVYlD6SY4HxvcnU&q=85&s=8465b75dd0de71bf26edae8902afceef" alt="" width="1286" height="500" data-path="images/docs/a3a37ccbb4b2fbbad74ad195292713e3875f727a99bb2bba411cc3e7c11e977a-image.png" />
    </Frame>

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