jennifer registry

@deckyard/mikrotik

A MikroTik RouterOS API client: commands, query words, tagged commands and /listen streams over plain TCP or api-ssl

Formerly @jennifer/mikrotik.

mikrotikrouterosrouterapinetwork

Depend on it

[decks]
"@deckyard/mikrotik" = "^0.5.0"

Versions

VersionStatusKindPinRequiresEnginesCapabilities
0.5.0livegit14cf5efba997-jennifer >=0.28.0net
0.4.0livegit530b91746774-jennifer >=0.27.0net

License

LGPL-3.0-only

Source

Released from
0.5.0
Published under
@deckyard mplx
Repository owner
deckyard

Resolutions

Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.

Readme

@deckyard/mikrotik

test Documentation release

A Jennifer deck that talks to MikroTik™ routers over the RouterOS™ API (port 8728, or api-ssl on 8729): log in, run commands, filter on the router with query words, and read streaming commands such as /interface/monitor-traffic.

It was Jennifer's bundled mikrotik.j module until 0.27; the surface is the same, so moving over changes only the import:

import "@deckyard/mikrotik/" as mikrotik;   # was: import "mikrotik.j" as mikrotik;

Up to 0.3.0 this deck was @jennifer/mikrotik. To switch, change the [decks] entry to "@deckyard/mikrotik" = "^0.4.0" and the imports to "@deckyard/mikrotik/".

Documentation

Install

jvc add @deckyard/mikrotik

This vendors the deck to vendor/<scope>/mikrotik/. Without jvc, unpack the src/ subtree of a release archive (<scope>-mikrotik-<version>.tar.gz) there.

Usage

import "@deckyard/mikrotik/" as mikrotik;

def s as mikrotik.Session init mikrotik.connect(mikrotik.optionsTLS("192.168.88.1", "admin", "secret"));
for (def iface in mikrotik.print($s, "/interface")) {
    io.printf("%s %s\n", $iface["name"], $iface["running"]);
}
mikrotik.close($s);

Requirements

Jennifer 0.28.0 or newer, the default jennifer binary (net), not jennifer-tiny, and a router with the api or api-ssl service enabled.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/mikrotik_test.j    # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

Trademarks

MikroTik™ and RouterOS™ are trademarks of SIA "Mikrotīkls". Other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by SIA Mikrotikls.

This deck as JSON