0.3.3 • Published 6 days ago

@elgato/schemas v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

Stream Deck SDK banner

Schemas

Schemas npm package SDK documentation Join the Marketplace Makers Discord Elgato homepage

Collection of schemas, and TypeScript declarations, to support the creation and validation of Stream Deck SDK files.

npm install @elgato/schemas

Stream Deck

Plugin

Manifest

Manifest JSON file responsible for defining a Stream Deck plugin.

import { type Manifest } from "@elgato/schemas/streamdeck/plugins";
import manifestSchema from "@elgato/schemas/streamdeck/plugins/manifest.json";
https://schemas.elgato.com/streamdeck/plugins/manifest.json

Layout

Layout JSON file that defines the layout of an action on Stream Deck +.

import { type Layout } from "@elgato/schemas/streamdeck/plugins";
import layoutSchema from "@elgato/schemas/streamdeck/plugins/layout.json";
https://schemas.elgato.com/streamdeck/plugins/layout.json

Usage

Schemas can be referenced directly within JSON files, providing intellisense and validation, using the $schema property, for example:

{
    "$schema": "https://schemas.elgato.com/streamdeck/plugins/manifest.json",
    "Name": "Wave Link",
    "Version": "1.9.0.0",
    "Author": "Elgato"
    // ...
}

Keywords

Custom keywords used within the provided schemas can also be directly imported to assist with constructing a validator, such as Ajv. Please note, the custom keyword definitions will only register the keyword, and will not provide validation.

import { keywordDefinitions } from "@elgato/schemas";
import Ajv from "ajv";

// add the "filePath" keyword (excluding validation)
ajv.addKeyword(keywordDefinitions.filePath);
0.3.3

6 days ago

0.3.2

9 days ago

0.3.1

12 days ago

0.3.0

13 days ago

0.2.1

13 days ago

0.2.2

13 days ago

0.2.0

25 days ago

0.1.8

1 month ago

0.1.7

1 month ago

0.1.6

2 months ago

0.1.4

2 months ago

0.1.5

2 months ago

0.1.2

2 months ago

0.1.3

2 months ago

0.1.1

3 months ago

0.1.0

3 months ago