KAPLA-SERVE(1)
β¨ 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 β
- RFC 7252 β The Constrained Application Protocol (CoAP) β
https://www.rfc-editor.org/rfc/rfc7252 - RFC 8323 β CoAP (Constrained Application Protocol) over TCP, TLS, and WebSockets β
https://www.rfc-editor.org/rfc/rfc8323 - RFC 8768 β Constrained Application Protocol (CoAP) Hop-Limit Option β
https://www.rfc-editor.org/rfc/rfc8786 - ERIS over CoAP β
http://purl.org/eris/coap
(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/kaplaor/var/lib/kapla/π-s ERIS_UNIX_SOCKET,--socket=ERIS_UNIX_SOCKETβ the Unix Socket to listen on as an ERIS block server. absent, it'sSTATE_DIR/eris.sock, or whatever theERIS_UNIX_SOCKETenv 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/kaplaor/var/lib/kapla/π
π COMMON OPTIONS π
--color=WHENβ colorize the output.WHENhas to be one ofauto,alwaysornever. absent =autoπ--help[=FMT]β show this help in formatFMT.FMTmust be one ofauto,pager,grofforplain. withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. default =autoπ-q,--quietβ be quiet. takes over-vand--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.LEVELmust be one ofquiet,error,warning,infoordebug. takes over-v. absent =warningor theKAPLA_LOG_LEVELenv π¬--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
- nixpkgs unstable: ocaml5.5.1-kapla 0.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms