fbi-proxy-0.1.1 is not a library.
fbi-proxy
FBI Proxy is a super easy way to turn your local network over https.
Quick Start
# Build the Rust proxy (production)
# Start the proxy system
# Development mode with auto-reload
Build Scripts
Rust Proxy Build Commands:
# Production build (optimized)
# Development build (faster compilation)
# Windows-specific build (uses build-windows.bat)
# Check code without building
# Clean build artifacts
# Run tests
# Format code
# Run linter
# Run proxy directly (for testing)
Combined Commands:
# Build and run (development)
# Build and run (production)
# Full build (includes pre-build checks)
Architecture
- TypeScript CLI (
src/cli.ts): Orchestrates Caddy and Rust proxy - Rust Proxy (
rs/proxy.rs): High-performance HTTP/WebSocket proxy using Hyper - Caddy Server: Handles TLS termination and domain routing
Development Workflow
First Time Setup:
# 1. Install dependencies
# 2. Build the Rust proxy
# 3. Start development
Daily Development:
# Quick development cycle
# Or step by step:
Before Committing:
Production Build:
Prerequisites
- Rust: Install from https://rustup.rs/
- Caddy: Web server for TLS termination
- Bun: Runtime for TypeScript CLI
feats
- Port Forwarder, https://[port].fbi.com proxies to http://localhost:[port]
- Host Forwarder, https://[].[host].fbi.com proxies to [host] with url https://[].fbi.com
- Host:Port forwarder https://[host]--[port].fbi.com proxies to http://[host]:[port]
- Configurable host alias
...
configurable local Proxy generator
Environment Defaults:
LOCALHOST="fbi.com"
SERVICES="localhost:5600"
activitywatch=3000 activitywatch=3000 activitywatch=3000 activitywatch=3000
# https://activitywatch.fbi.com -> localhost:5600
activitywatch: :5600
# https://aw.fbi.com -> localhost:5600
aw: :5600
# https://calibre.fbi.com -> localhost:7250
calibre: :7250
# https://everything.fbi.com -> localhost:2489
everything: :2489
# https://vscode.fbi.com -> localhost:8000
vscode: :8000