https://github.com/ignema/goseek
simple edge function workflow
https://github.com/ignema/goseek
cloudflare-workers github-actions go goquery webassembly
Last synced: about 1 month ago
JSON representation
simple edge function workflow
- Host: GitHub
- URL: https://github.com/ignema/goseek
- Owner: Ignema
- Created: 2022-12-12T21:02:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:45:13.000Z (over 3 years ago)
- Last Synced: 2025-01-11T22:22:47.890Z (over 1 year ago)
- Topics: cloudflare-workers, github-actions, go, goquery, webassembly
- Language: JavaScript
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🪝 **Goseek:** A simple edge function workflow
One way to run a fully automated workflow on the edge for free is to use a combination of github actions and cloudflare workers.
You can specify an action in whatever language you desire and then create a CI pipeline that triggers based on a new created/modified issue. This will be the starting point and this pipeline will trigger the execution of an edge function on cloudflare.
The beauty of cloudflare workers is that it can run web assembly as well as JavaScript. This means that you can conserve your initial programming language without learning JavaScript and its vast complexities.
Let's say that we want a golang script that can extract elements from a webpage using custom selectors.
First of, you will write a simple go program that sends a request triggering the cloudflare worker. Then, the golang code will need to execute a custom business logic in order to fetch, parse, and extract from the page we want. As a last touch, we can write the results as comments in the issue and close it when the function exits.