Skip to content
pubscout

dart_rfb

0.7.0, released 4 years ago by goddchen.de

Implementation of The Remote Framebuffer Protocol (VNC protocol) in Dart.

$ flutter pub add dart_rfb
Source repository

What it does

Provides a client implementation of the Remote Framebuffer Protocol (RFC 6143, aka VNC protocol) for connecting to VNC servers, handling handshakes, pixel formats, encodings, and input events.

AI-written summary of version 0.7.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build a VNC client or viewer in Flutter or Dart.
  • You want to connect to a remote desktop using VNC protocol versions 3.3, 3.7, or 3.8.

Skip it when

  • You need support for obsolescent or advanced encodings like RRE, Hextile, TRLE, or ZRLE.
  • You require a complete pre-built UI widget rather than a low-level protocol client.

Strengths

  • Supports multiple VNC protocol versions (3.3, 3.7, 3.8).
  • Handles both VNC Authentication and unauthenticated connections.
  • Provides stream-based updates and message handling.

Weaknesses

  • Lacks several encodings like Hextile, ZRLE, and desktop size pseudo-encodings.
  • Does not include a full out-of-the-box UI widget for viewing the framebuffer.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
6

Simply add the dependency to pubspec.yaml and connect via RemoteFrameBufferClient.

final RemoteFrameBufferClient client = RemoteFrameBufferClient();
await client.connect(
  hostname: '127.0.0.1',
  password: 'password',
);
client.updateStream.listen(
  (final RemoteFrameBufferClientUpdate update) {
    // Update your framebuffer
  },
);
client.handleIncomingMessages();

Alternatives

Packages that do the same job and could replace dart_rfb.

  • http2

    An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

  • mcp_server

    Dart implementation of Model Context Protocol (MCP) servers for LLM applications.

Works with

Packages commonly used together with dart_rfb: ones it builds on, ones built on it, and its own family.