Kindness-Kismet/stelliberty
Acerca de
Stelliberty Remake: un cliente de red multiplataforma, moderno, visualmente atractivo y de alto rendimiento.
Sistemas e infraestructuraCrecimiento de estrellas medido
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- +1
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Original| Home · Light | Home · Dark |
|---|---|
![]() |
![]() |
| Settings · Light | Settings · Dark |
|---|---|
![]() |
![]() |
Stelliberty is a cross-platform desktop proxy client for Windows, Linux, and macOS.
Import Clash-standard and Base64 subscriptions. It starts quickly and uses little resources. On Windows and macOS, platform-level frosted window effects are available, with a simple native look.
Navigation
📦 Installation
Download
Grab the package for your platform from the Releases page:
| Platform | Recommended | Alternative |
|---|---|---|
| Windows · x64 / arm64 | *-setup.exe (installer) |
*.zip (portable) |
| Linux · x64 / arm64 | *.AppImage |
*.zip · *.deb · *.rpm · *.pkg.tar.zst |
| macOS · x64 / arm64 | *.dmg |
*.pkg |
System Requirements
| Platform | Minimum |
|---|---|
| Windows | 10 (1809+) or 11 · x64 / arm64 |
| Linux | glibc desktop with fontconfig + X11 |
| macOS | 22+ · Intel / Apple Silicon |
🚀 Quick Start
- Launch the app and import your subscription or config file.
- Select nodes on the Nodes page; set an outbound mode on the Home page (Rule / Global / Direct).
- Enable system proxy or virtual network mode for full-device traffic coverage.
Config format is fully compatible with Clash Meta — see the mihomo documentation for details.
❓ FAQ
App will not start or appears unresponsive after installation?
Install the .NET 11 Runtime, then start Stelliberty again:
- General: Microsoft download
- Arch Linux and derivatives: AUR package
dotnet-core-preview-bin
UWP Loopback & Administrator Privileges
UWP apps on Windows (e.g. Microsoft Store apps) are blocked from accessing the local proxy loopback address by default. Stelliberty provides a UWP loopback exemption toggle to remove this restriction.
Notes:
- Administrator privileges are usually not required; the system only prompts for elevation when permission is insufficient.
- Virtual network mode is unaffected — it takes over traffic at the adapter level and never goes through loopback.
- If you use system proxy mode and want UWP apps (such as Microsoft Store apps) to go through the proxy, turn this option on.
Do system proxy / virtual network require admin?
- System proxy: No administrator privileges required.
- Virtual network: Creating a virtual network adapter requires administrator privileges. Install service mode on first use to avoid repeated UAC prompts.
- UWP loopback exemption (Windows): usually no administrator privileges required; elevate only if permission is insufficient.
🛠 Development Guide
Prerequisites
| Tool | Version | Get it |
|---|---|---|
| .NET SDK | 11.0.x |
https://dotnet.microsoft.com/download/dotnet/11.0 |
| Rust | stable (rustup) | https://rustup.rs |
| Python | 3.x |
https://www.python.org/downloads/ |
Architecture
Modular layers + Clean Architecture + MVVM, with one desktop process hosting the window and tray.
src/Stelliberty.Desktop Avalonia desktop host, windows, tray, core lifecycle, platform services
src/Stelliberty.Presentation ViewModels, UI state, command bindings
src/Stelliberty.Application Use cases, service & capability interfaces
src/Stelliberty.Domain Entities, value objects, domain rules
src/Stelliberty.Infrastructure File system, persistence, external services, core and service clients
src/Stelliberty.Native C# wrappers over the native FFI layer
native/hub Native library: config override, parsing, capabilities
native/service Service mode
scripts/ build.py · prebuild.py · test.py
Dependency direction: Desktop → Presentation → Application → Domain.
Infrastructure and Native implement interfaces defined by Application; Application has no dependency on desktop, Avalonia, or FFI details.
The public entry point, stelliberty.exe, hosts the window, tray, core lifecycle, system proxy, service mode, global shortcuts, and background scheduling in one desktop process. Other desktop platforms use the corresponding executable name without .exe.
Opening the application again activates the existing window. Hiding to the tray keeps the application and background tasks running; full exit stops the core and cleans up the system proxy. Startup integration, installers, and elevated restarts all use the desktop entry point, which scripts/build.py builds and packages.
Prohibited:
- Views accessing databases, file system, or Rust FFI directly
- ViewModels holding platform APIs, file paths, or window lifecycle details
- Domain depending on Avalonia, databases, networking, logging, or config files
- Rust crates being aware of C#, Avalonia, or window lifecycle
C# Conventions
Naming
- Types, enums, interfaces, properties, methods:
PascalCase - Local variables, parameters, private instance fields:
camelCase; private readonly instance fields:_camelCase - Interfaces use
Iprefix only when expressing an abstract capability - Async methods end with
Async; cancellable operations takeCancellationToken - Booleans use affirmative semantics:
IsEnabled,CanSave,HasSelection
Practices
- Use
varwhen the type is obvious from the right side; explicit types otherwise - Use result objects for complex state (
SaveResult,ParseResult), not barebool - Guard clauses at system boundaries; no excessive defensiveness for impossible internal states
- Never use
.Resultor.Wait()to block async tasks - Comments state intent, constraints, and pitfalls; concise, max 2 lines per block
Rust Conventions
Naming
- crate, module, function, variable:
snake_case - type, trait, enum, struct:
PascalCase - const, static:
SCREAMING_SNAKE_CASE
Practices
- Immutable by default, prefer borrowing
- Use
Result<T, E>and?for error propagation; nounwrap()for recoverable errors unsafeis prohibited by default; when necessary, minimize scope and comment the safety precondition- No
mod.rs— use Rust 2018+ same-name file style - FFI function naming:
hub_<capability>_<action>
Capability module structure
native/hub/src/
├── lib.rs // module declarations only
├── ffi.rs // root FFI aggregation
├── capabilities/ // one file per capability
├── infra/ // HTTP client, runtime, etc.
└── util/ // pure utility functions
Avalonia / MVVM
- Views handle display and binding only — no business logic
- ViewModels expose immutable or observable state; never manipulate control instances directly
- UI thread handles UI updates only; heavy work goes to background threads
- Platform capabilities (windows, tray, permissions) are implemented in the host layer and exposed via
Applicationinterfaces
Control Test IDs
All interactive controls must have AutomationProperties.AutomationId set.
- Format:
PageOrArea.SemanticName, e.g.Main.SaveButton,Library.SearchBox - IDs are stable — they don't change with display text, language, or layout
- No duplicates within the same View
- No random numbers, indices, or visual-position naming
Build & Test
Development workflow: prebuild → test → build.
首次构建前,为执行构建脚本的同一 Python 环境安装依赖:
python -m pip install -r scripts/requirements-build.txt
fonttools 用于将中文字体转换为默认字重的静态资源,保留全部字形和现有显示效果;生成结果会缓存,应用运行时不依赖 Python。
1. Prebuild
Downloads the core binary, GeoIP data, and fonts; builds the service-mode binary.
python scripts/prebuild.py
| Flag | Effect |
|---|---|
| (default) | Release service binary |
--dev |
Debug service binary |
--all |
Both Debug and Release |
--platform <rid> |
current · win-x64 · win-arm64 · linux-x64 · linux-arm64 · macos-x64 · macos-arm64 |
--clean |
Clean build/ and bin/obj/ before fetching |
2. Pre-build Tests
python scripts/test.py --all
| Flag | Effect |
|---|---|
<name> |
Run a specific test by name |
--all |
Run every pre-build test |
| Name | Description |
|---|---|
monitoring-rules |
Connection and log parsing and reduction; rule parsing and classification |
settings-rules |
TUN permission correction, system proxy requests, update release selection |
subscription-rules |
Update planning, provider parsing, content normalization |
proxy-selection-rules |
Group semantics, normalization, selection, visibility |
runtime-config-rules |
Settings normalization and deterministic YAML generation |
chain-proxy-rules |
Analysis and deterministic runtime config transformation |
3. Build
python scripts/build.py
| Flag | Effect |
|---|---|
| (default) | Release build |
--dev |
Debug build |
--all |
Both Debug and Release |
--platform <rid> |
Same as prebuild, plus desktop (win-x64 + linux-x64 + macos-arm64) |
--pack <format> |
zip · installer · all |
--clean |
Clean target output directory before building |
Full release build:
python scripts/prebuild.py
python scripts/build.py --pack all
4. Formatting
dotnet format
cargo fmt
📋 PR Guidelines
Before submitting a Pull Request, confirm the following:
Requirements
Pull Requests must target beta. Only the repository owner may promote this repository's beta branch to main. The default branch is main; .github/workflows/build-release.yml publishes stable releases from it.
Use English titles and bodies based on the final PR diff. Titles follow type(scope): summary, or type: summary for one goal spanning modules. Use an imperative summary without a trailing period, preferably within 72 characters. Types are feat, fix, refactor, perf, ui, docs, style, test, build, ci, chore, and revert.
Release preparation uses chore(release): prepare v<version> and states the base version → target version in the opening paragraph. Describe the actual source repository/head → target repository/base, final behavior, and relevant validation results. Use closing issue keywords only when the entire issue is resolved. Keep private paths, credentials, and local work logs out of public text and attachments.
Each commit should complete one logical goal, including its related implementation, configuration, and documentation. Independent goals use separate commits. Local commit and PR workflows are maintained in the commit and pull-request skills.
| Check | Description |
|---|---|
| Debug commands | Keep affected application and UI commands under src/Stelliberty.Desktop/Debug in sync |
| Control IDs | New interactive controls must have AutomationProperties.AutomationId set |
| Validation | Run relevant builds, existing tests, or app debugging and report actual results; add or change test code only when explicitly requested |
| Formatting | C#: dotnet format, Rust: cargo fmt |
Debug Command Requirements
Application and UI commands are wrapped under src/Stelliberty.Desktop/Debug and invoked through the debug control port, which remains available while the window is hidden to the tray. Keep the local app-debug skill in sync with these commands and use it to start, stop, and inspect the application.
Clipboard and tray actions share the desktop host and can be verified while its window is hidden. Both local skill copies remain outside Git tracking.
Control ID Requirements
When adding clickable, input-capable, selectable, or state-assertable controls:
<Button AutomationProperties.AutomationId="Settings.SaveButton" />
<TextBox AutomationProperties.AutomationId="Subscription.UrlInput" />
Naming rule: PageOrArea.SemanticName — stable, unique, independent of visual layout.
📄 License
Open Source Commitment
This project is fully open source under the WTF License. Any derivative work based on this project must publish its complete corresponding source code and remain under the WTF License, whether it is distributed directly or provided as a network service.
Commercial Use Restrictions
This project and its derivative works must not be used for commercial purposes.
Branding and Identifiers
Derivative works must not retain any identifier associated with the original Stelliberty software, including but not limited to its name, logos, icons, product names, package names, application identifiers, and other branding.
Third-Party Components
Third-party components remain subject to their original licenses. See the WTF License for the complete terms and third-party project list.
🤝 Friends
- Telegram Updates — Project updates and release notices.
Explorar proyectos relacionados
Cargando…



