A MikroTik RouterOS API client: commands, query words, tagged commands and /listen streams over plain TCP or api-ssl
Formerly @jennifer/mikrotik.
mikrotikrouterosrouterapinetwork
[decks]
"@deckyard/mikrotik" = "^0.5.0"| Version | Status | Kind | Pin | Requires | Engines | Capabilities |
|---|---|---|---|---|---|---|
| 0.5.0 | live | git | 14cf5efba997 | - | jennifer >=0.28.0 | net |
| 0.4.0 | live | git | 530b91746774 | - | jennifer >=0.27.0 | net |
LGPL-3.0-only
0.5.0Times 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.
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/".
jvc add @deckyard/mikrotikThis vendors the deck to vendor/<scope>/mikrotik/. Without jvc, unpack the src/ subtree of a release archive (<scope>-mikrotik-<version>.tar.gz) there.
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);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.
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 archiveLGPL-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.
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.