Build plugins for NWK.
Panels, inputs and helper programs that install in one click and run separately from the program: if the plugin freezes, what is on air keeps going.

How it works
A plugin is a .nwkplugin file (a zip) with the nwk-plugin.json manifest. The operator installs it in 🎛 Panels › Manage panels › Install plugin, and the plugin shows up in a list with its version, status and the Turn on, Turn off and Remove buttons.
- Panels: your pages, opened in a window on top of the program, like OBS custom browser docks.
- Inputs: a page becomes a video input, or the plugin points to an NDI® or SRT source it produces.
- Helper program: your program (Node, Python, C++, anything) runs separately from NWK. If it crashes, NWK starts it again; when NWK closes, it closes too.
Nothing from the plugin runs inside NWK, so a plugin failure never takes down the Program, the recording or the stream. The contract is versioned ("nwk": 1): updating NWK does not break your plugin.
The manifest
{
"nwk": 1,
"id": "com.yourcompany.myplugin",
"name": "My plugin",
"version": "1.0.0",
"author": "Your company",
"description": "What the plugin does.",
"panels": [ { "name": "My panel", "page": "panel.html" } ],
"inputs": [
{ "name": "Clock", "type": "web", "page": "clock.html", "width": 1920, "height": 1080 },
{ "name": "NDI camera", "type": "ndi", "source": "PC (Output)" },
{ "name": "SRT return", "type": "srt", "url": "srt://127.0.0.1:9000", "mode": "caller" }
],
"helper": { "mac": ["bin/helper"], "windows": ["bin\\helper.exe"] }
}
id: lowercase letters, numbers, dot or dash (e.g.com.yourcompany.myplugin). Installing again with the same id updates the plugin.page: a file inside the package. NWK serves it athttp://127.0.0.1:8360/plugins/<id>/<file>, to this computer only. A panel can also useurl(e.g. a server run by your helper).helper: program per system (mac,windows) orcommandfor both. On Mac,.shruns through/bin/sh; on Windows,.cmdand.batthroughcmd.- Limits: packages up to 200 MB, up to 20 panels and 20 inputs. Packages with
..or shortcuts (links) are refused.
Control port
The plugin controls NWK through the vMix-style control port, the same one used by Stream Deck and Bitfocus Companion.
- HTTP:
GET /api/?k=<key>&Function=Cut. WithoutFunction, it returns the state as XML. A panel gets the key at the end of its address (#k=…); the helper gets the full address inNWK_API. - TCP 8099:
TALLY,FUNCTION,XMLandSUBSCRIBE TALLYto know right away what is on air and in Preview. - Functions with vMix names (
Fade,Cut,PreviewInput,OverlayInput1…) plus NWK ones such asPtzPreset(sends the PTZ camera linked to an input to a preset).
Helper program variables
| Variable | What it is |
|---|---|
NWK_API | HTTP API address, key included |
NWK_HTTP · NWK_TCP_PORT | NWK server and TCP port (8099) |
NWK_PLUGIN_DIR | Installed plugin folder |
NWK_PLUGIN_DATA | Folder for the plugin's data (kept across updates) |
NWK_PARENT_PID | NWK process: exit when it no longer exists |
NWK_LANG | Program language (pt, en or es) |
Example plugin
The example plugin has a panel that shows what is on air and cuts, a clock input and a helper program for Mac and Windows. Open the file as a zip to see everything; to make yours, zip the folder and change the extension to .nwkplugin.
PTZ cameras
The PTZ cameras panel comes with NWK: VISCA over IP, VISCA UDP/TCP and ONVIF, with named presets, game controller support and the Preview camera highlighted. It also opens on a tablet over the network, with its own PIN.
Questions
Write to suporte@nwk.com.br. Only install plugins from people you trust: the helper program runs on your computer.