feat: add ability to generate static nuvio providers - #69
Draft
An0n-00 wants to merge 1 commit into
Draft
Conversation
Member
Author
|
@autovalue did you try this out already? did it work? |
|
Yes it worked during my local tests. I was primarily testing with a new provider, and was when I ran into the video-only limitation. The codes not exactly the cleanest atm, but the proof of concept is in there as to how it'll work. The eventual idea is to be able to publish those compiled providers to a github-page, so they can be referenced just like https://github.com/yoruix/nuvio-providers/tree/main#using-in-nuvio-app, but I didn't include any of that in there since it wasn't necessary |
An0n-01
marked this pull request as draft
July 18, 2026 08:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
credits: @autovalue
This pull request introduces a comprehensive build system for packaging provider modules as Nuvio-compatible add-ons, focusing on Node.js/browser compatibility and automation. The changes add scripts, templates, and plugins to bundle providers, generate manifests, and ensure compatibility with QuickJS and browser environments.
Key changes include:
Build System and Automation
scripts/build-nuvio-providers.ts) and a build utility (src/nuvio-compat/nuvioBuilder.ts) to automate discovering, instantiating, and bundling all provider modules, generating both minified and non-minified bundles and their manifests. [1] [2]src/nuvio-compat/nuvioWrapper.template.ts) used to wrap each provider for Nuvio compatibility, including environment setup, TMDB integration, and export logic for different JS runtimes.Build Tooling and Plugins
src/nuvio-compat/esbuildPlugins.ts) for:src/nuvio-compat/esbuildInjects.ts) to polyfillBufferandcryptoreferences for the browser/QuickJS.Dependency Updates
package.jsonto add required dependencies and devDependencies, including@fastify/static,browserify,esbuild, and their type definitions.These changes together enable automated, cross-environment packaging of providers for Nuvio, with robust compatibility for both browser and embedded JS engines.