Tencent EdgeOne | Edge Functions
🚀 Fast | 🔑 Secure | ☁️ Serverless | 💫 Innovative
EdgeOne Edge Functions is a serverless compute platform that allows you to run JavaScript code at the edge, close to your users. This repository contains examples demonstrating various use cases and capabilities of EdgeOne Edge Functions.
Features • Get Started • Documentation • Examples • Contribute • License
- 3200+ Global CDN PoP
- 200Tbps Global Network Bandwidth
- 100+ Custom CDN Abilities
- L4/L7 Intelligent Acceleration
- 15 Tbps Global Bandwidth for DDoS Mitigation
- 3 Seconds Time-To-Mitigation Against DDoS Attacks
- 20+ Customizable Security Features
- Minute-level Data Statistical Analysis
- Programmable in Edge
- Adaptive images in Edge
- Application in Edge
- 99.5% Upload Success Rate
- 89% Bitrate Reduced
- <1s Transcoding Time
Detailed instructions can be found in our Getting Started.
This repository contains various examples demonstrating the capabilities of EdgeOne Edge Functions. Each example is contained in its own directory with a README explaining its purpose and usage.
Some of the classic examples include:
- M3U8 Rewrite and Authentication: Demonstrates how to rewrite M3U8 files and implement authentication for streaming content.
- Geolocation-based Blocking: Shows how to implement country-level access restrictions based on geographical location.
- URL Authentication: Illustrates how to implement URL authentication using timestamps and MD5 hashing.
- Adaptive WebP Images: Showcases how to dynamically serve WebP images to supported browsers for improved performance.
Feel free to explore these examples and use them as a starting point for your own Edge Functions!
For more examples, see Examples.
Detailed documentation can be found in our Documentation.
We welcome all forms of contributions! Please check our Contribution Guidelines for more information.
This project is licensed under the MIT License - see the LICENSE file for details.