FastAPI · Async · Proxy Gateway
A Python-based proxy gateway server with WebSocket support and traffic management
A FastAPI-powered gateway server that provides proxy functionality with advanced traffic management capabilities, featuring WebSocket connectivity, speed limiting, and integration with various networking protocols.
Launch New YorkFastAPI · WebSockets · Traffic Management
Overview
NewYork is a FastAPI-powered gateway server that provides proxy functionality with advanced traffic management capabilities. It features WebSocket connectivity, speed limiting, and integration with various networking protocols.
Architecture
- main.py
- relay_vless.py
- speed_limit.py
- telegram_bot.py
- pages.py
- xhttp_siz10.py
Note: Some implementation details are inferred from the codebase structure and may require verification.
# Core Dependencies fastapi==0.104.1 # Web framework uvicorn[standard]==0.24.0 # ASGI server httpx==0.25.1 # HTTP client with HTTP/2 support websockets==12.0 # WebSocket implementation aiofiles>=23.2.1 # Async file operations
Key Features
FastAPI Gateway
High-performance async web server with CORS support, built on FastAPI and served via Uvicorn. Handles concurrent requests efficiently with full middleware support for logging and monitoring.
WebSocket Support
Real-time bidirectional communication with full WebSocket tunneling capabilities. Enables persistent connections for low-latency data exchange between clients and upstream services.
Traffic Management
Built-in speed limiting and connection monitoring. Traffic shaping and bandwidth management per connection ensures fair resource distribution and prevents abuse.
VLESS Protocol
Support for V LESS proxy relay functionality with multi-protocol relay cap abilities. Enables secure, efficient tunneling across diverse network environments.
Telegram Integration
Bot interface for management and monitoring. Control your gateway remotely through Telegram with real-time status updates and command execution.
Persistent State
Data persistence with JSON storage and automatic secret key generation and persistence. Configuration survives restarts with secure key management built in.
Multi-timezone Support
Iran timezone (Asia/Tehran) integration with full timezone-aware scheduling and logging. Accurate local time handling for regional deployments.