New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@stremio-addon/node-express

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stremio-addon/node-express

Node runtime with Express.js for the Community Stremio Addon SDK

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

@stremio-addon/node-express

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

Node.js + Express runtime adapter for the Community Stremio Addon SDK.

Features

  • 🚀 Express integration - Seamless integration with Express.js
  • 🎯 Type-safe - Full TypeScript support
  • 🔧 Flexible - Works with existing Express apps

Installation

pnpm add @stremio-addon/node-express express

If using TypeScript:

pnpm add -D @types/express

Usage

import express from "express";
import { getRouter } from "@stremio-addon/node-express";
import { AddonBuilder } from "@stremio-addon/sdk";

// Create your addon
const builder = new AddonBuilder({
  id: "com.example.myaddon",
  version: "1.0.0",
  name: "My Addon",
  description: "My cool Stremio addon",
  resources: ["stream"],
  types: ["movie", "series"],
  catalogs: [],
});

builder.defineStreamHandler(async ({ type, id }) => {
  return {
    streams: [
      {
        url: "https://example.com/stream.mp4",
        title: "Example Stream",
      },
    ],
  };
});

const addonInterface = builder.getInterface();

// Create Express app
const app = express();

// Mount the addon router
app.use(getRouter(addonInterface));

// Start the server
const PORT = process.env.PORT || 3000;
app.listen(PORT, () => {
  console.log(`Addon available at http://localhost:${PORT}/manifest.json`);
});

API

getRouter(addonInterface)

Creates an Express router configured to serve your addon.

Parameters:

  • addonInterface - The addon interface from builder.getInterface()

Returns: Express Router instance

Examples

See the hello-world example for a complete working example.

License

MIT

FAQs

Package last updated on 28 Nov 2025

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