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/zod

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stremio-addon/zod

Community Stremio Addon SDK validation using zod

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@stremio-addon/zod

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

Validation package for the Community Stremio Addon SDK using zod.

Features

  • Runtime validation - Validates addon manifest and responses using Zod schemas
  • 🎯 Type-safe - Full TypeScript support with inferred types from Zod schemas
  • 🚀 Modern - Popular validation library

Installation

pnpm add @stremio-addon/zod zod

Usage

import { AddonBuilder } from "@stremio-addon/zod";

// The AddonBuilder from this package automatically validates
// your manifest against the Zod schema
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: [],
});

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

const addonInterface = builder.getInterface();

API

This package exports:

  • AddonBuilder - Extended builder that validates manifests using zod
  • manifestSchema - Zod schema for addon manifests

License

MIT

Keywords

stremio

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