Akamai EdgeWorkers helps deliver superior web experiences by enabling developers to run JavaScript at the Edge to customize web traffic, rather than using origin servers for these tasks. EdgeKV provides a global, low-latency key-value data store at the Edge to complement EdgeWorkers. The code snippets in this repository represent a starting point to help you build logic that will solve a range of use-cases via Akamai EdgeWorkers and EdgeKV.
These code samples are offered as-is, and are working code samples within the EdgeWorkers and EdgeKV products. Feel free to use, modify and extend what you find here!
When contributing to the repository please describe the change or examples in detail in the pull request.
- Create a pull request against the
public_examples
folder. - Once the pull request is created, If the contributing user has not previously signed a Contributor License Agreement (CLA), they must complete the CLA signing steps as indicated in the pull request. The CLA signature will be stored in an Akamai private repository in Github.
- A static analysis tool will be applied on the code, and this scan must successfully pass. This static analysis will be checking for certain types of coding errors.
- The code will be scanned for open-source license vulnerabilities, and this scan must successfully pass without any vulnerabilities being detected.
- A code review will be performed by multiple Akamai members of the edgeworkers-examples repository. The code review must receive at least 2 approvals.
- The pull request will be merged once all of the above criteria have been met.
For more information on EdgeWorkers and EdgeKV, refer to the following resources:
- EdgeWorkers Developer Page
- EdgeWorkers User Guide
- EdgeWorkers API Guide
- Akamai CLI for EdgeWorkers
- EdgeKV Getting Started Guide
If you experience any issues with these code samples, please raise a GitHub issue. Or create a pull request with fixes, suggestions, or your own contributed example.