NewYork
A FastAPI-based proxy gateway service with WebSocket support and advanced traffic management capabilities.
Explore FeaturesKey Features
Everything you need to run a high-performance proxy gateway — from protocol relay to remote management.
FastAPI Gateway
High-performance HTTP/WebSocket proxy server
VLESS Relay
Protocol support for advanced proxy configurations
Speed Limiting
Built-in traffic management and bandwidth control
Telegram Bot Integration
Remote monitoring and control capabilities
WebSocket Support
Real-time bidirectional communication
Persistent State
Data persistence across service restarts
HTTP/2 Support
Modern protocol compatibility
Tech Stack
A modern, async-first toolkit built for performance and reliability.
Architecture
The service consists of several key components:
main.py # Core FastAPI application and gateway logic
relay_vless.py # VLESS protocol relay implementation
speed_limit.py # Traffic management and bandwidth control
telegram_bot.py # Telegram bot for remote management
pages.py # Web interface pages
xhttp_siz10.py # HTTP extensions and utilities
Configuration
The gateway supports environment-based configuration:
Data persistence directory (default: /data)
Authentication secret (auto-generated if not set)
State is persisted to disk to maintain consistency across service restarts, particularly important for hosted environments like Railway where periodic restarts occur.
Getting Started
- Install dependencies: pip install -r requirements.txt
- Run the service: python main.py
- Access the gateway endpoints as configured
The service includes CORS middleware and timezone support (Asia/Tehran) for international deployment.