Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
π€ Generated by Copilot at cf97b30
This pull request adds a new subpackage for the live service worker, which is a Cloudflare Worker that interacts with the Livepeer API and Arweave via Bundlr. The subpackage contains the source code, configuration files, documentation, and dependencies for the worker. The worker exposes a
/create
endpoint that allows users to create live video streams with predefined profiles. The worker also posts JSON metadata of a publication and profile to Arweave via Bundlr, which is a decentralized storage network.Related issues
Fixes # (issue)
Type of change
Explanation of the changes
π€ Generated by Copilot at cf97b30
package.json
file (link)@hey/config
package in the.eslintrc.js
andtsconfig.json
files (link, link)@cloudflare/workers-types
package to thetsconfig.json
file (link)wrangler
tool, which deploys the worker to Cloudflare Workers, in thewrangler.toml
file (link)README.md
file (link)index.ts
file, which creates a router object that handles different routes and methods, applies a CORS middleware and an error handling, and returns a response object (link)/create
endpoint in thecreateStream.ts
file, which validates the request body and the access token, checks if the user has owned lens profiles, and calls the Livepeer API to create a new stream (link)WorkerRequest
object from aRequest
, anEnv
, and anExecutionContext
object in thebuildRequest.ts
file (link)types.ts
file, such as theEnv
interface and theWorkerRequest
type (link)LIVEPEER_API_KEY
to the.dev.vars.example
file, which is a template for the local development environment variables (link)pnpm
package manager, which lists the dependencies and devDependencies for the subpackage and links the internal packages to their relative paths in the workspace (link)Emoji
π₯ππ οΈ