Download the helper library

To access the EdgeKV database, your EdgeWorkers code bundle must include the JavaScript helper library.

The edgekv.js library file:

  • Allows you to set the namespace and/or group to use.
  • Uses the methods provided in the library to access the specified namespace and group in the EdgeKV database.
  • Provides read/write/delete methods that allow you to easily access the data from within an EdgeWorker.
  • Leverages the EdgeWorkers async promise-based capabilities.
  • Allows you to set a timeout on the EdgeKV request to specify the maximum time to wait for the response.
  1. Go to the Akamai EdgeWorkers GitHub repository and download the edgekv.js file.

    For detailed library documentation refer to the Helper library section.

  2. When you create your code bundle, copy the edgekv.js file to your code bundle folder.


The edgekv.js helper file is not required when using the administrative APIs to control EdgeKV database functions outside of EdgeWorkers code.