KAPLA-SERVE(1)

πŸ“¦ version 0.4.0, in nixpkgs unstable

✨ KAPLA-SERVE ✨

okay so bestie, gather round, because this is the Kapla Manual page for kapla-serve and it's literally the main character of the whole local-block situation πŸ’…

🌸 NAME 🌸

kapla-serve β€” start the Kapla server and make blocks available over TCP/IP and Unix sockets 🫢


πŸŽ€ SYNOPSIS πŸŽ€

kapla serve [--data=DATA_DIR] [--socket=ERIS_UNIX_SOCKET]
[--state=STATE_DIR] [OPTION]…

So the Kapla server is the thing that stores blocks of ERIS encoded content and then hands them out over the network (via TCP/IP) and locally (via Unix Domain Sockets). It's giving storage queen, it's giving availability icon πŸ‘‘

And no cap, this part matters: you need a Kapla server running to encode and decode content β€” even locally β€” with the encode and decode commands. Like, yes, even on your own machine, bestie. The server is not optional, it's the vibe check πŸ”₯


πŸ¦‹ THE CONSTRAINED APPLICATION PROTOCOL (CoAP) πŸ¦‹

The Kapla server accepts connections over TCP/IP and Unix Domain Sockets using the Constrained Application Protocol, aka CoAP, as defined in RFC 7252 ✨

The interface it exposes is a bunch of CoAP endpoints for storing or retrieving blocks, and it's all documented in the document "ERIS over CoAP". Go read it, iykyk πŸ“–


🌈 PROXY TO OTHER NETWORKS AND TRANSPORTS 🌈

Kapla can connect to other networks and transports using proxies. A proxy is an application that speaks CoAP to Kapla and forwards block requests off to some other network. Middleware but make it cute 🧚

See the document "ERIS over CoAP" for more info, bestie πŸ’–


⭐ STANDARDS ⭐

(it's giving bibliography slay, we love a documented queen πŸ’…)


✨ OPTIONS ✨

  • --data=DATA_DIR β€” data directory where blocks are stored. if it's absent, it falls back to $XDG_DATA_HOME/kapla/, ~/.local/share/kapla or /var/lib/kapla/ πŸ“
  • -s ERIS_UNIX_SOCKET, --socket=ERIS_UNIX_SOCKET β€” the Unix Socket to listen on as an ERIS block server. absent, it's STATE_DIR/eris.sock, or whatever the ERIS_UNIX_SOCKET env says 🌸
  • --state=STATE_DIR β€” state directory where the Unix socket and lock files get created. absent, it's $XDG_STATE_HOME/kapla/, $HOME/.local/state/kapla or /var/lib/kapla/ πŸŽ€

πŸ’œ COMMON OPTIONS πŸ’œ

  • --color=WHEN β€” colorize the output. WHEN has to be one of auto, always or never. absent = auto 🌈
  • --help[=FMT] β€” show this help in format FMT. FMT must be one of auto, pager, groff or plain. with auto, the format is pager or plain whenever the TERM env var is dumb or undefined. default = auto πŸ‘‘
  • -q, --quiet β€” be quiet. takes over -v and --verbosity. shhh, she's resting 😴
  • -v, --verbose β€” increase verbosity. repeatable, but more than twice does not bring more. two is the limit, bestie, that's the ceiling πŸ’€
  • --verbosity=LEVEL β€” be more or less verbose. LEVEL must be one of quiet, error, warning, info or debug. takes over -v. absent = warning or the KAPLA_LOG_LEVEL env πŸ’¬
  • --version β€” show version information 🏷️

πŸ”₯ EXIT STATUS πŸ”₯

kapla serve exits with:

  • 0 β€” on success. we love a win πŸŽ‰
  • 123 β€” on indiscriminate errors reported on standard error 😭
  • 124 β€” on command line parsing errors πŸ™ˆ
  • 125 β€” on unexpected internal errors (bugs). not me, not my fault πŸ’€

🧚 ENVIRONMENT 🧚

These environment variables affect the execution of kapla serve:

  • ERIS_UNIX_SOCKET β€” Unix Socket to listen on as an ERIS block server πŸ¦‹
  • KAPLA_LOG_LEVEL β€” set the log level πŸ“Š

πŸ’– SEE ALSO πŸ’–


and that's the whole page, bestie! this gorgeous document comes to you courtesy of Kapla 0.4.0 and the KAPLA-SERVE(1) footer energy β€” go forth and serve those blocks, you absolute icon πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from