Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fastly/js-compute-runtime
JavaScript SDK and runtime for building Fastly Compute applications
https://github.com/fastly/js-compute-runtime
compute-sdk fastly-product
Last synced: 9 days ago
JSON representation
JavaScript SDK and runtime for building Fastly Compute applications
- Host: GitHub
- URL: https://github.com/fastly/js-compute-runtime
- Owner: fastly
- License: apache-2.0
- Created: 2021-07-28T10:06:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T15:14:47.000Z (7 months ago)
- Last Synced: 2024-04-14T17:20:21.227Z (7 months ago)
- Topics: compute-sdk, fastly-product
- Language: C++
- Homepage: https://developer.fastly.com/learning/compute/javascript/
- Size: 18.6 MB
- Stars: 183
- Watchers: 28
- Forks: 24
- Open Issues: 45
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# @fastly/js-compute
JavaScript SDK and CLI for building JavaScript applications on [Fastly Compute](https://www.fastly.com/products/edge-compute/serverless).
![npm version](https://img.shields.io/npm/v/@fastly/js-compute) ![npm downloads per month](https://img.shields.io/npm/dm/@fastly/js-compute)
## Getting Started
We recommend using the [Fastly CLI](https://github.com/fastly/cli) to create, build, and deploy JavaScript Fastly Compute services, as [described on the Fastly Developer Hub](https://developer.fastly.com/learning/compute/).
[Detailed documentation for JavaScript Fastly Compute services](https://developer.fastly.com/learning/compute/javascript/) is also available on Fastly Developer Hub.
## Usage
### JavaScript Examples
The Fastly Developer Hub has a collection of [example JavaScript applications](https://developer.fastly.com/solutions/examples/javascript/).
Here is a small example application:
```js
///async function app(event) {
const request = event.request;
return new Response(`You made a request to ${request.url}`)
}addEventListener("fetch", event => {
event.respondWith(app(event));
});
```### API documentation
The API documentation for the JavaScript SDK is located at [https://js-compute-reference-docs.edgecompute.app](https://js-compute-reference-docs.edgecompute.app).
## Security
If you find any security issues, see the [Fastly Security Reporting Page](https://www.fastly.com/security/report-security-issue) or send an email to: `[email protected]`
We plan to disclose any found security vulnerabilities per the [GitHub security vulnerability guidance](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/about-coordinated-disclosure-of-security-vulnerabilities#best-practices-for-maintainers). Note that communications related to security issues in Fastly-maintained OSS as described here are distinct from [Fastly security advisories](https://www.fastly.com/security-advisories).
## Changelog
The changelog can be found [here](https://github.com/fastly/js-compute-runtime/blob/main/CHANGELOG.md).
## License[Apache-2.0 WITH LLVM-exception](./LICENSE)