SideRail README

The project's README from github.com/icubaby/SideRail. As one markdown file: README.md.

SideRail

Deploy on Railway

License   Xray-core   TypeScript   React + Vite

Protocols   Transports



A bold, neobrutalist control panel — shipped to Railway in one click.

Clean dashboards. Live stats. Gorgeous pages. No setup, no fuss.


Why SideRail

One job, done right

No feature bloat. SideRail masters HTTP-based transports behind a TLS edge — every connection is clean, standard, and always security=tls on port 443.

Impossible to ignore

A loud neobrutalist UI — thick borders, hard shadows, animated icons — that looks razor-sharp on phone and desktop alike.

Deploy and forget

The core engine pulls itself on first boot, the session secret is generated for you, the DB just works, and a crashed core restarts itself. Zero environment variables required.

Team-friendly

The Owner adds Admins with scoped page access and personal data quotas — and every Admin only ever sees the users they created.


Features
Dashboard Live CPU, RAM, Swap and Storage metrics, plus one-click Backup & Restore of users, inbounds, admins and settings.
Users Rich create form, summary cards, a fully responsive table, live Connected IPs, per-user actions, and per-user Fragment & ECH settings with an aggressive preset and ready DNS presets.
Inbounds Five HTTP inbounds auto-seeded on first boot, each with a unique port and a random /api/... path. Enable or disable, and override the address with one click — random Railway IPs or a Cloudflare clean-IP pool of 37k+ entries.
Activity Log A live timeline of every administrative event.
Settings & Admins Owner and Admin roles, scoped permissions, and per-admin data quotas.
Subscription A gorgeous per-user page with a live usage chart, QR codes and a base64 export for clients — with importable profiles for popular clients such as Clash and sing-box.
Security JWT sessions, built-in rate limiting, and sniffing fully disabled for stability.

Deploy on Railway

No code required. Just follow these steps:

1. Fork this repository — click Fork at the top-right to copy it to your GitHub account.

2. Create a Railway project — head to railway.app, then New Project → Deploy from GitHub repo, and pick your fork.

3. Deploy — Railway reads the Dockerfile and railway.json and builds automatically.

4. Expose port 8080 — open Settings → Networking → Generate Domain, and set the port to 8080.

[!IMPORTANT] SideRail listens on port 8080 — this is the only port you expose. The ports 10085 and 20000–20004 are the core engine's internal ports bound to 127.0.0.1; they are private and must not be exposed.

5. Add a volume (optional) — attach a Volume at /data so users, admins and settings survive redeploys.

6. Open your panel — visit the generated *.up.railway.app domain, land on the Setup page, and create your Owner account.


Environment variables

All optional.

Variable Default Description
PORT 8080 HTTP port. Expose this one on Railway.
JWT_SECRET auto Signs admin session cookies. Auto-generated and persisted if unset.
CORE_VERSION v26.9.9 Core engine release fetched on first boot.
SIDERAIL_DATA_DIR /data Persistent data directory (mount a volume here).
PUBLIC_DOMAIN auto Override for a custom domain. Falls back to RAILWAY_PUBLIC_DOMAIN.
CORE_API_PORT 10085 Internal core stats API port.
CORE_INBOUND_BASE_PORT 20000 Base port for internal inbound listeners.

Architecture
apps/
└── web/           React + Vite + Tailwind (neobrutalism) frontend
    └── src/
        ├── components/ui/   Reusable neobrutalist primitives
        ├── pages/           Dashboard · Users · Inbounds · Activity · Settings · Setup · Login · Subscription
        └── lib/             API client, auth context, helpers
└── server/        Express + Node (node:sqlite) backend
    └── src/
        ├── core.ts          Binary fetch, process manager, traffic stats, client IPs
        ├── core-settings.ts   Runtime settings builder (sniffing disabled)
        ├── tunnel.ts        WS/HTTPUpgrade via net.Socket, XHTTP via an HTTP relay
        ├── links.ts         Connection link generation
        ├── inbounds.ts      Default inbound seeding + enable/disable
        ├── users.ts         User model, traffic reset, sub-token logic
        ├── auth.ts          Owner/Admin roles, permissions, sessions
        ├── ratelimit.ts     Rate limiting / brute-force protection
        └── routes.ts        Authenticated REST API

How traffic flows — TLS is terminated at the Railway edge; all connections use security=tls on port 443. The Node process routes WebSocket/HTTPUpgrade to the core engine via raw net.Socket, and XHTTP via an HTTP relay. Only HTTP-based transports are supported — anything that can't survive the edge is intentionally left out.


Local development

Requires Node.js ≥ 22.5 (Node 24 recommended).

npm install     # install all workspaces
npm run dev     # web on :5173, server on :8080 (proxied)

npm run build   # production build (web + server)
npm start       # serve API + built frontend on :8080

Star history Star History Chart

Support the project

Countless late nights and a lot of coffee went into this. If SideRail powers your setup, a small crypto tip goes straight back into keeping it fast, secure and free for everyone.

Bitcoin bc1qx48j9lj989y5c9z8ewpgul2ed69mr50j97a0sk
Ethereum 0xF2ba522fD846F83D84131D433f56F885740cFc47
Litecoin ltc1qh6y8ld27fdleuy3r7gykxxg38rkawl7adzc0dw
TON UQBGN4jXPW44cWQ20EGWqX7sU6K4RlYbnolc3IHoT3UWtmvW

License & Copyright

SideRail is proprietary software. © 2025 icubaby — all rights reserved.

It is published for transparency and personal self-hosting only. You are welcome to fork and run your own instance, but the following are strictly prohibited without prior written permission:

The source code carries embedded authorship identifiers and watermarks used to prove origin.

Full license terms


License

SideRail (icubaby/SideRail)

Searching Database…

What is this?SideRail is a neobrutalist web control panel for Xray-core VPN servers that you deploy to Railway with one click, giving you clean client links, live stats and subscription pages without manual config.
Is this a hosted service or something I run myself?It is self-hosted: you fork the repo and deploy your own instance on Railway (or any Docker host) — SideRail is not a SaaS you sign up for.
How do I get it running?Fork the repo, create a Railway project from your fork, let Railway build the included Dockerfile automatically, then expose port 8080 and open the generated domain to create your Owner account.
Do I need to configure Xray or set environment variables myself?No — Xray-core downloads itself on first boot and the session secret auto-generates, so every environment variable is optional. Running outside Docker needs Node.js 22.5+ (Node 24 recommended), but Railway's Dockerfile handles that for you.
Which VPN protocols does it actually support?Only HTTP-based transports behind a TLS edge — WebSocket, HTTPUpgrade and XHTTP, always on port 443. Raw TCP, gRPC, WireGuard and Hysteria are intentionally left out because they don't survive the Railway edge.
Can I resell or white-label this panel?No — SideRail is proprietary software. You can fork it and self-host it for personal use, but selling it, white-labeling it, or removing the embedded attribution and watermarks is strictly prohibited.
What does the admin dashboard show?Live CPU, RAM, Swap and Storage metrics, plus one-click Backup and Restore covering users, inbounds, admins and settings.
How do multiple admins work?The Owner can add Admins with scoped page access and personal data quotas; each Admin only ever sees the users they personally created.
What do users get on their subscription page?A per-user page with a live usage chart, QR codes and a base64 subscription link that VPN clients can import directly.
Will my data survive a redeploy?Only if you attach a Railway Volume at /data — that is optional but keeps users, admins and settings persistent across redeploys.
What are similar projects?nyx, SuperJinX, RVG, v2ray-agent, V2rayU, sing-box, v2ray, Xray-core
Creator
icubaby
Size
0.4 MB
Stars
594
Age
2mo
Commits · 90 Days