8000 GitHub - vincent-4/proxy-server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vincent-4/proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal UI HTTP/HTTPS Proxy Server

An interactive proxy server with a beautiful Terminal User Interface (TUI) built using Bubbletea. Monitor your proxy traffic in real-time with a clean, responsive interface. Hit play below to see a quick demo!

proxy-server-demo-v.mp4

Features

  • HTTP and HTTPS proxy support
  • Real-time metrics display using Bubbletea and bubbles
  • Basic authentication with rate limiting
  • Circuit breaker for failing hosts
  • Connection pooling and retry logic
  • Request/response size limits
  • Bandwidth usage tracking
  • Beautiful UI styling with lipgloss

Usage

Environment Variables (Optional)

PROXY_PORT=8080        # Port to run the proxy server on
PROXY_USERNAME=admin   # Username for basic auth
PROXY_PASSWORD=password # Password for basic auth

Command Line Flags

--port string      Port to run the proxy server on (default "8080")
--username string  Username for basic auth (default "admin")
--password string  Password for basic auth (default "password")

Running the Server

# Run with default settings. In the future there may be CLI configs.
go run main.go

TUI Controls

  • Press 's' to start/stop the proxy server
  • Press 'tab' to focus/blur the metrics table
  • Press 'q' to quit

Using the Proxy

# Example using curl
curl -x http://localhost:8080 --proxy-user admin:password http://example.com

Security Notes

  • Basic authentication is sent in clear text unless HTTPS is used
  • Rate limiting is applied to authentication attempts
  • Maximum request/response size is limited to 10MB
  • Connection pooling with configurable limits
  • Circuit breaker protection against failing hosts

Credits

Built with these amazing libraries:

Development

Prerequisites

  • Go 1.23.5 or later
  • Terminal with true color support (recommended)

Building from Source

git clone https://github.com/yourusername/proxy-server.git
cd proxy-server
go build

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0