Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@stremio-addon/compat

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stremio-addon/compat

Drop-in compatibility package to adopt addons built with the official Stremio Addon SDK

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@stremio-addon/compat

This package is part of Stremio-Community/stremio-addon-sdk.

Drop-in compatibility layer for migrating from the official Stremio Addon SDK to the community Stremio Addon SDK.

Features

  • 🔄 Easy migration - Drop-in replacement for the official SDK
  • Compatible API - Same interface as stremio-addon-sdk
  • 🚀 Modern foundation - Powered by the new community SDK packages

Installation

pnpm add @stremio-addon/compat

Usage

Replace your import from stremio-addon-sdk with @stremio-addon/compat:

// Before (official SDK)
import { addonBuilder, serveHTTP, getRouter } from "stremio-addon-sdk";

// After (community SDK)
import { addonBuilder, serveHTTP, getRouter } from "@stremio-addon/compat";

// The rest of your code stays the same!
const builder = new addonBuilder(manifest);

builder.defineStreamHandler(async ({ type, id }) => {
  return { streams: [...] };
});

serveHTTP(builder.getInterface(), { port: 3000 });

What's Included

This package provides:

  • addonBuilder - Compatible with the official SDK's addonBuilder
  • serveHTTP - Function to serve your addon over HTTP
  • getRouter - Express router factory
  • publishToCentral - Function to publish to the Stremio addon catalog

Migration Path

This compatibility package makes it easy to migrate gradually:

  • Phase 1: Replace stremio-addon-sdk with @stremio-addon/compat
  • Phase 2: Gradually adopt new features from the community SDK
  • Phase 3: Eventually migrate to direct usage of @stremio-addon/sdk

For a detailed migration guide, see MIGRATION.md.

Architecture

Under the hood, this package uses:

License

MIT

FAQs

Package last updated on 21 May 2026

Did you know?

Socket

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.

Install

Related posts