🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@stremio-addon/linter

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/linter - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+65
README.md
# @stremio-addon/linter
> This package is part of [**Stremio-Community/stremio-addon-sdk**](https://github.com/Stremio-Community/stremio-addon-sdk).
Validation package for the Community Stremio Addon SDK using the official `stremio-addon-linter`.
## Features
- ✅ **Runtime validation** - Validates addon manifest using the official Stremio linter
- 🔗 **Compatible** - Uses the same validation as the official Stremio Addon SDK
- 🎯 **Type-safe** - Full TypeScript support
## Installation
```bash
pnpm add @stremio-addon/linter stremio-addon-linter
```
## Usage
```typescript
import { AddonBuilder } from "@stremio-addon/linter";
// The AddonBuilder from this package automatically validates
// your manifest using stremio-addon-linter
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 `stremio-addon-linter`
- `manifestSchema` - Linter-based validation schema
## Related Packages
- [`@stremio-addon/sdk`](../../sdk) - Core SDK package
- [`@stremio-addon/zod`](../zod) - Alternative validation using Zod
## License
MIT
+2
-2
{
"name": "@stremio-addon/linter",
"version": "0.0.1",
"version": "0.0.2",
"description": "Community Stremio Addon SDK validation using stremio-addon-linter",

@@ -36,3 +36,3 @@ "type": "module",

"dependencies": {
"@stremio-addon/sdk": "^0.0.1"
"@stremio-addon/sdk": "^0.0.2"
},

@@ -39,0 +39,0 @@ "peerDependencies": {