Skip to content

Stremio-Community/stremio-addon-sdk

Repository files navigation

Stremio Addon SDK

A modern SDK for building Stremio addons with TypeScript (or JavaScript).

✨ Features

  • 🎯 Type-safe - Full TypeScript support with comprehensive type definitions
  • Runtime validation - Optional schema validation using Zod (or bring your own validation library)
  • 🚀 Modern - ESM-first, tree-shakeable
  • 🧩 Modular - Composable packages for different use cases
  • 📦 Multiple runtimes - Supports Node.js, Node.js + Express, hono, vercel, cloudflare workers etc. (or bring your own runtime)
  • 🔧 Easy migration - The API is similar to the official SDK making it easy to switch

📦 Installation

Note

This project is in active development. Version 0.x.y is usable but may introduce breaking changes between minor releases. The upcoming version 1.x.y will mark the first stable release with semantic versioning guarantees.

1. Install the SDK package

pnpm add @stremio-addon/sdk

2. Install a validation package (optional)

This step is optional but highly recommended to ensure your addon adheres to the expected schemas.

pnpm add @stremio-addon/zod zod
pnpm add @stremio-addon/linter stremio-addon-linter

3. Integrate with your preferred runtime (server, serverless, or custom)

See supported runtimes.

📖 Usage

See examples.

If you're totally new to addon development, check out the official Stremio Addon SDK documentation and the Stremio addon protocol documentation to get familiar with Stremio addon development concepts.

If you know how to code an addon using the official SDK already, you pretty much already know how to use this SDK. You can migrate your existing code in ~ 2 minutes by following the migration guide.

🛠️ Development

Prerequisites

  • Node.js LTS or higher
  • PNPM v10+

Setup

# Clone the repository
git clone https://github.com/Stremio-Community/stremio-addon-sdk
cd stremio-addon-sdk

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Watch mode for development
pnpm build:watch

🤝 Contributing

We welcome contributions from the community! Please see our Contribution Guide for more details.

License: MIT

🔗 Links

⭐ Support

If you find this SDK useful, please consider giving it a star on GitHub!


Made with ❤️ by and for the Stremio community

About

A modern SDK for building Stremio addons with TypeScript (or JavaScript)

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •