
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@stremio-addon/sdk
Advanced tools
Community Stremio Addon SDK standard schema definitions and helper functions
This package is part of Stremio-Community/stremio-addon-sdk.
Core SDK package for building Stremio addons with TypeScript (or JavaScript).
pnpm add @stremio-addon/sdk
import { AddonBuilder, createRouter } from "@stremio-addon/sdk";
// Define your addon manifest
const manifest = {
id: "com.example.myaddon",
version: "1.0.0",
name: "My Addon",
description: "My cool Stremio addon",
resources: ["stream"],
types: ["movie", "series"],
catalogs: [],
};
// Create the addon builder
const builder = new AddonBuilder(manifest);
// Define handlers
builder.defineStreamHandler(async ({ type, id }) => {
return {
streams: [
{
url: "https://example.com/stream.mp4",
title: "Example Stream",
},
],
};
});
// Get the addon interface
const addonInterface = builder.getInterface();
// Create a router (returns a Web Standard Request -> Response handler)
const router = createRouter(addonInterface);
defineStreamHandler(handler) - Handle stream requestsdefineMetaHandler(handler) - Handle metadata requestsdefineCatalogHandler(handler) - Handle catalog requestsdefineSubtitlesHandler(handler) - Handle subtitle requestsThe createRouter function creates a Web Standard Request -> Response handler that can be used with any server framework or serverless platform:
const router = createRouter(addonInterface);
const response = await router(request); // Returns Response | null
This package provides the core functionality, but you'll need a runtime adapter to serve your addon.
Server
@stremio-addon/node@stremio-addon/node-expressServerless
Custom
Add runtime validation by using a validation package:
@stremio-addon/zod@stremio-addon/linterSee the examples directory for complete working examples.
MIT
FAQs
Community Stremio Addon SDK standard schema definitions and helper functions
The npm package @stremio-addon/sdk receives a total of 245 weekly downloads. As such, @stremio-addon/sdk popularity was classified as not popular.
We found that @stremio-addon/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.