Web (Сервіси)

High-performance WebSocket protocols and declarative UI frameworks.

N2O Ecosystem

The Web Plane represents the outer boundary of the untrusted application environment. Powered by the N2O ecosystem, these libraries minimize the transport footprint and provide ultra-fast binary serialization (BERT/JSON/gRPC/SOAP) over WebSockets and REST.

N2O


The core Web-Telecom framework. Lightweight, high-concurrency WebSocket server loop implemented in Erlang/OTP.

% N2O Event Loop
event({client, Msg}) ->
    wf:info(?MODULE, "Received: ~p", [Msg]),
    wf:send({server, <<"Acknowledged">>});
event(init) ->
    wf:reg({client, self()}).

NITRO


Declarative web UI framework representing HTML structures as Erlang records. Fully isomorphic DOM generation.

% NITRO Declarative UI
#panel{id=app, class=[grid], body=[
  #h1{body="Welcome to ERP.1"},
  #button{id=btn, body="Login", postback=login}
]}

FORM


Business X-forms processing and dynamic validation engine for seamless CRUD generation.

RPC


Polyglot binary protocol compiler supporting BERT, gRPC, SOAP, Swift, and JavaScript client bindings.

Additional Modules


  • REST - REST Yoctoframework (< 100 LOC)
  • SAMPLE - Clean WebSocket sample application
  • REVIEW - MQTT-based application boilerplate