Skip to content
eliotcougarPublic

About

Vibe-coded Windows routing app built on Xray-core: visual traffic/DNS graphs, TUN capture, policy groups and proxy chains.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

223 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wayrill

Wayrill

Visual traffic and DNS routing for Windows, powered by Xray-core. The entire application, apart from Xray-core and third-party dependencies, was vibe-coded using OpenAI Codex GPT-6.1 Sol and GPT-6 Astra.

Build a graph that shows how traffic enters your PC, which rules it matches, and where it leaves. Keep local destinations on your normal connection, send selected apps through a proxy, and give DNS its own rules. Wayrill runs the graph as a Windows service. The bundled Wayrill Aquifer uses the same editing approach to manage Xray on a Linux server over SSH.

Download the 0.39.0 Windows beta · Getting started · Documentation · Report a problem

Windows 10/11 · x64 · Public beta

Checks CodeQL

Wayrill showing connected traffic filters, DNS resolvers, policy groups and outbounds

Why a graph?

A routing setup becomes harder to reason about as exceptions accumulate. A per-app rule can depend on a server group; that group's servers need DNS; the DNS requests need a working route of their own.

The connections between Wayrill nodes express those relationships. A filter can have named outputs such as Local, Work and Everything else. Each output leads to a direct connection, a server, a policy group or a proxy chain. DNS follows a separate, visible path through its own rules and resolvers. Wayrill generates the Xray configuration from the graph.

For example, one setup can keep LAN traffic direct, route a messaging app and its child processes through a monitored server group, send selected websites through another exit, and use a local DNS resolver only for particular domains. A separate sharing path can route streaming destinations for a connected TV while leaving other shared traffic direct.

Turn on Settings → Appearance → Traffic glow on graph to see activity as it happens. Capture and inbound outputs glow with throughput. Filter branches glow with recent matches, so two branches that share an outbound light up independently.

Manage your Xray server with Aquifer

Open Tools → Wayrill Aquifer and select a saved WinSCP session. Read an existing Linux Xray configuration or start one in the editor, then configure inbounds, users, routing rules, DNS and outbounds. Aquifer validates the generated configuration on the server before you deploy it. It backs up the previous configuration and can restore it if deployment fails.

When Nginx sits in front of Xray, Aquifer shows the HTTP and stream routes it recognizes on a movable, read-only graph node. It uses the public ingress details when preparing compatible client connections. Server Status shows the detected Nginx service alongside Xray and lets you restart it.

Aquifer uses your existing WinSCP installation and its saved sessions and host keys. Aquifer setup and deployment.

Manage configurations centrally with Wayrill Pool

Wayrill Pool is still a preview and is not ready for production use.

Set up routing once for several Windows PCs. Assign graphs, Stashes, traffic and DNS filters, and individual server credentials to each user. Publish encrypted deliveries to a shared folder or serve them over HTTPS. Test invitation opens the subscriber’s view in a separate window so you can review the graph and routing without starting capture.

Subscribers choose Proxy, TUN, or both. They can keep their own capture settings and add personal rules before or after the managed ones. Pool can distribute application rules by Windows package, service, or executable identity, even when the application is installed in a different folder. It can also supply geodata defaults and offer opt-in loopback exemptions and app protection. Updates apply automatically. The service keeps the last working configuration if a delivery fails. Pool setup and enrollment.

From a webpage to its routing rules

Browser Companion brings the graph into your browser. Open it on a page to see the domains that page requests, TCP/UDP activity, and Wayrill's last observed rule, output and outbound for each destination—including Block decisions.

Found a domain that needs a different route? Add to rule opens Wayrill's editor, even when only the service is running. Choose an exact-domain or subdomain match, edit the entry yourself, or find a GeoSite group containing it. Review the change in your draft, then Apply when ready.

Companion 0.7.1 ships for Firefox and Chromium. Both offer the routing popup and Time Zone controls. Install or update Firefox Companion through the Add-ons Manager using the bundled Mozilla-signed XPI. Chromium browsers load the included extension folder.

Destination data stays on your computer. The popup matches recent routes by destination across this PC’s apps and tabs. Set up Companion.

Set a timezone for an individual app

Use Tools → Timezone spoofing to set a timezone for a browser, executable or supported packaged app. Pick a timezone manually or use the exit IP of the Main outbound or a saved server, policy group or chain. Both 32-bit and 64-bit apps are supported on x64 Windows. Some runtimes need the override in place before launch, and protected apps may refuse it. Companion can configure a browser-wide override through Wayrill’s native bridge. Firefox applies saved changes after a full browser restart. Timezone setup and supported behavior.

What you can do

Build rules, then see why a connection took its route

Traffic filters contain ordered rules: the first match wins, followed by an explicit Unmatched traffic route. Match domains, IP ranges, GeoSite/GeoIP groups, ports and protocols. Host TUN and WinDivert also support executable names, paths and folders, child processes, Windows services and packaged apps. Chain filters when it makes a large ruleset easier to organize.

Each traffic filter has a live log showing the destination, matched rule, and chosen output. It can also show the process or ancestor that matched and the server selected by a policy group. Search for a failing site or show only unmatched traffic to see what your rules missed. DNS filters select resolver groups and fallback behavior independently. FakeDNS can preserve domain names for routing captured traffic.

Switch routes without rebuilding the graph

Stash keeps large subscriptions and reusable routes off the canvas. A policy group selects servers from a filtered subscription, manual members, or both, using strategies such as lowest latency or round-robin. An Observatory supplies availability and delay data. A proxy chain sends traffic through an ordered sequence of proxies.

Servers, groups and chains can occupy the same outbound position. Star frequently used entries and mark an outbound as Main to switch it from the tray. Replace applies that route immediately, preserving its connections and leaving unrelated graph edits unapplied.

Subscriptions have individual refresh schedules and can remove unreachable servers after testing. Locked entries and explicitly used profiles are protected from deletion during updates.

Choose how traffic enters

Entry point Use it for
Proxy inbound Apps or clients configured to use SOCKS, HTTP or Mixed mode.
TUN Capturing host traffic, including apps that ignore system proxy settings. Wayrill manages its adapter and routes.
ICS TUN Routing a Windows Internet Connection Sharing connection separately from host traffic.
WinDivert Packet capture on selected network adapters as an alternative to TUN.

The System traffic capture window also manages Windows proxy settings, proxy environment variables, WinHTTP and AppContainer loopback permissions. The protocol reference covers the other Xray inbound and outbound editors.

Maintain and diagnose a working setup

  • Test the actual route. Check delay, exit IP, optional UDP connectivity and download speed for servers, groups and chains. Follow live rates, totals and traffic history by source and outbound from the status bar.
  • Keep rules current without losing local edits. Import traffic rules from a file or URL, add your own entries, and preserve those additions across manual refreshes. Browse GeoSite/GeoIP contents and update resource files from the app.
  • Carry your configuration with you. Back up the full setup, a graph, Stash or an individual filter, with optional password encryption. Import and export supported Xray JSON configurations and compatible v2rayN traffic rules.

A Windows service owns routing, system changes, scheduled maintenance and recovery. These continue with the editor closed. Optional startup before sign-in and automatic recovery after transient failures support unattended use. Closing the window hides it in the tray; Stop explicitly ends routing.

Get started

  1. Install the .exe from Releases. It includes the matching networking service and core components. Setup needs administrator approval; the editor runs as your normal account.
  2. Start with the default Local proxy → Direct graph, or choose a starter under File → Load Example. TUN → Direct is the starting point for host capture. Direct uses your existing connection; Wayrill does not supply servers or a subscription.
  3. Import your profiles or subscription into Stash, then right-click an outbound and choose Replace. Add traffic and DNS rules as needed.
  4. Run Check, use Validate in the results window, then Start. For a Proxy inbound, point your app at it or select it in System traffic capture.
  5. Test your outbounds. As you add traffic filters, use their Traffic log to verify rule matches. Ordinary graph edits take effect when you Apply; outbound replacement is an explicit immediate switch.

The examples guide explains each starter, including DNS routing, FakeDNS, policy groups and chains. Examples with remote servers contain placeholders that must be replaced with your own working profiles.

Beta status

Expect rough edges in this beta, particularly around unfamiliar adapter, VPN and sharing combinations. Back up a working setup before experimenting; keep another way to reach a PC you manage remotely. The current installer is unsigned.

Sharing uses Windows ICS and supports destination-based rules; selecting individual shared clients by IP or MAC is not available. Selected-app protection blocks traffic during routing transitions, rather than providing a permanent kill switch. See beta limitations and the sharing guide before relying on those features.

Wayrill ships custom Xray builds for its Windows integration and shared FakeDNS. Every modification is documented in the core customization inventory, with source and build inputs available for review.

Development and feedback

The desktop uses React, TypeScript and Tauri; the service and workers use Rust, with Go integrations for Xray. See the Windows build guide, architecture and contribution guide. Editor development starts with Node.js and npm ci; an installed service or test VM is not required. The manual Windows installer Actions workflow can build the complete package in a fork using public inputs.

Bug reports are most useful when they include the intended route, what happened instead, and steps to reproduce it. See troubleshooting for diagnostics, and remove credentials and subscription tokens before posting. Report security issues through the private reporting process.

License and acknowledgements

The application and coordinator are MIT-licensed. The separate capture/attribution worker is GPL-3.0-only; Xray-derived code is MPL-2.0. See LICENSE, the worker license and third-party notices for the full component breakdown.

Wayrill builds on Xray-core, with inspiration from v2rayN and v2rayNG. Its interface uses Tauri, React Flow and libavoid-js. The GeoSite/GeoIP maintainers provide the resource lists used by its routing presets.

About

Vibe-coded Windows routing app built on Xray-core: visual traffic/DNS graphs, TUN capture, policy groups and proxy chains.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages