Skip to content
pubscout

tor

0.2.2, released 4 weeks ago by foundationdevices.com

Flutter plugin to manage a Tor proxy using the arti Rust library

$ flutter pub add tor
Source repository

What it does

Provides a Dart API to start, stop, and configure a Tor proxy on Android, iOS, macOS, Windows, and Linux. It exposes SOCKS and HTTP endpoints for onion routing and allows setting a custom data directory.

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

Use it when

  • You need a privacy‑enhanced network layer in a Flutter app
  • You want to route traffic through Tor without writing native code

Skip it when

  • You only need simple HTTP requests or a different VPN solution
  • You cannot install Rust or native build tools

Strengths

  • Cross‑platform support via Rust and flutter_rust_bridge
  • High performance native implementation
  • Full control over Tor configuration
  • Open source MIT license

Weaknesses

  • Requires Rust toolchain and cargo ndk for native builds
  • Complex setup and potential platform‑specific issues
  • No built‑in UI components

Setup

Kind
Plugin (native code)
Effort
High
Code generation
Yes (build_runner)
Direct dependencies
3

Install Rust (rustup), cargo ndk, run `cargo install flutter_rust_bridge_codegen`, then `flutter_rust_bridge_codegen generate` and `flutter run`. No build_runner needed.

import 'package:tor/tor.dart';

final tor = Tor();
await tor.start();
// use tor.socksPort for connections
await tor.stop();

Works with

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