> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-support-migration.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-support-migration/Z09ZI7FyatCuoSuT/images/docs/0b5bff4662563e07b358a70392b77a8be85f58aa8e1cd21968b2dfef2f88b34e-image.png?fit=max&auto=format&n=Z09ZI7FyatCuoSuT&q=85&s=e478de548b405324885a1a5f1b8dec43" 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-support-migration/RpQ-CUm87OlkPU-U/images/docs/68f18ff3816d5947d7acd499028840c65c3e6c7dc5461a8e81d1f8807cc3548e-image.png?fit=max&auto=format&n=RpQ-CUm87OlkPU-U&q=85&s=622edca6f44fe38aff530b1eeb01d60b" alt="" width="1491" height="1265" data-path="images/docs/68f18ff3816d5947d7acd499028840c65c3e6c7dc5461a8e81d1f8807cc3548e-image.png" />
        </Frame>

        Standalone scripts run independently and handle HTTP requests directly at the edge without an origin server. They're ideal 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. They're perfect 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">
    An underlying pull zone is automatically set up for your script, making it accessible from the outside through a unique URL. Your new script starts with a placeholder function that issues a simple "Hello from" when accessed through its URL.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/w32H-OuMiEPPh72G/images/docs/da2454f3d77252f3af19246fb567d36fcd0d40a767a564e238f3f481d3f4fcb5-image.png?fit=max&auto=format&n=w32H-OuMiEPPh72G&q=85&s=066d180592501abe68b1b6fc8ae5c23a" alt="" width="1814" height="1738" data-path="images/docs/da2454f3d77252f3af19246fb567d36fcd0d40a767a564e238f3f481d3f4fcb5-image.png" />
    </Frame>

    The bottom left panel is a preview pane where you can input a URL and execute the script currently open in the editor. Executing the script here doesn't alter the actual deployed script, allowing you to safely test and refine your code before publishing.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/Z09ZI7FyatCuoSuT/images/docs/23d1b7ac94614fa713ed6fb811bc5284d46539c1c2b8b0019d7ca6a344c9f7c0-image.png?fit=max&auto=format&n=Z09ZI7FyatCuoSuT&q=85&s=ab462bee96cd9599086cb1249984ef60" 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-support-migration/w32H-OuMiEPPh72G/images/docs/d5c773703340b197b87dbc664e48ae7fc0eae31d410d70ad2fca4acbb07994da-image.png?fit=max&auto=format&n=w32H-OuMiEPPh72G&q=85&s=e2f6e7a548dbfc8f91883d005dd65487" alt="" width="1340" height="522" data-path="images/docs/d5c773703340b197b87dbc664e48ae7fc0eae31d410d70ad2fca4acbb07994da-image.png" />
    </Frame>

    It serves as a crucial debugging aid, providing real-time insights into the script's performance and helping you identify any issues or confirm operations through the log outputs.
  </Step>

  <Step title="Edit and test your script">
    Edit your script to customize its functionality. You can replace the
    placeholder with your desired code. Use the provided URL to test your script
    and ensure your changes work as expected.
  </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-support-migration/RpQ-CUm87OlkPU-U/images/docs/a3a37ccbb4b2fbbad74ad195292713e3875f727a99bb2bba411cc3e7c11e977a-image.png?fit=max&auto=format&n=RpQ-CUm87OlkPU-U&q=85&s=b29e123362b2042aa8f815fc1a71a700" alt="" width="1286" height="500" data-path="images/docs/a3a37ccbb4b2fbbad74ad195292713e3875f727a99bb2bba411cc3e7c11e977a-image.png" />
    </Frame>

    Once you save and publish your changes, they are applied immediately, allowing for real-time updates and modifications.
  </Step>
</Steps>
