![]() This example uses Node.js and Express to get user specific data.Today I am going to go through the top 10 Stremio addons for 2020, compatible with most platforms. One useful scenario of not using the SDK is when you need user specific data for you addon (for example, an APIĪutherntication Token), you can see an example of passing user specific data in the Addon URL here. Refer to our protocol specification for details and examples. You can use any programming language that supportsĬreating a HTTP server to make Stremio Addons. The use of this SDK is not mandatory for creating Stremio Addons. all handlers have to return a Promise (rather than take a cb).change n(opts) to serveHTTP(addon.getInterface(), opts), which you can import via const serveHTTP = require('stremio-addon-sdk').serveHTTP.change new addonSDK to new addonBuilder, which you can import via const addonBuilder = require('stremio-addon-sdk').addonBuilder.If you have any issues regarding the Stremio Addon SDK, please feel free to report them here. Read our guide for advanced usage to understand the many ways that addons can be used. ![]() There is a third-party Go version of this SDK developed by doingodswork here. There is a third-party Rust version of this SDK built on stremio-core developed by Sleeyax here. It also includes a list of video tutorials. This list also includes examples & tutorials on how to develop Stremio addons in PHP, Python, Ruby, C#, Rust, Java and Go. Examples & tutorialsĬheck out our ever growing list of examples and demo addons. You can check our list of recommended hosting providers for Node.js or alternatively host it locally with localtunnel.Īfter you've deployed publically, in order to get your addon to show in Stremio (through the public Addon collection), you need to use publishToCentral or publish manually through the UI. In order for your addon to be used by others, it needs to be deployed online. Creating a homepage for your addon that includes an "Install Addon" buttonįor developers looking for a quick way to test their new addons, you can either:.Publishing your addon link to the public Addon collection with publishToCentral.It is also possible to create an addon without any programming language, see our static addon example based Language, see the addon protocol specification for more information. If you don't wish to use Node.js (and therefore not use this SDK either), you can create addons in any programming We've made two step by step guides: one for this SDK, and one for any programming language, which you can read here. We also have an example addon that you can use as a guide to help you build your own addon. Information, or dive straight into our SDK documentation for our code reference docs. Take a look at our examples list for some high-level If you wish to install the addon in the Desktop version of Stremio (which you can download here), you should use npm start -install DocumentationĪll our documentation is right here on GitHub. You'll be asked about what resources and types you want to support, after which the addon will be created in the hello-world directory, and you'll be able to run it: cd hello-world You can use it in the following way: npm install -g stremio-addon-sdk # use sudo if on Linux In order to scaffold a new Stremio addon, we've made a tool called addon-bootstrap. Please note: addon URLs in Stremio must be loaded with HTTPS (except 127.0.0.1) and must support CORS! CORS support is handled automatically by the SDK, but if you're trying to load your addon remotely (not from 127.0.0.1), you need to support HTTPS. It will output a URL that you can use to install the addon in Stremio Save this as addon.js and run: npm install stremio-addon-sdk publishToCentral(" // <- invoke this if you want to publish your addon and it's accessible publically on "your-domain" This arbitrary example creates an addon that provides a stream for Big Buck Bunny and outputs a HTTP address where you can access it. Important 2: We strongly recommend deploying addons to the BeamUp servers Quick Example ![]() Important: During the Addon Competition period ( - ), we will be available for chat support regarding addon development on a the Community Discord Server: Chat Invite ![]() Stremio currently supports Windows, macOS, Linux, Android and iOS. The □ Stremio Addon SDK □ was developed by the Stremio Team as a way of vastly simplifying Node.js addon creation for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |