Thank you for your interest in contributing to PortX! We welcome code contributions, architecture optimizations, documentation improvements, and bug reports.
PortX is built using Kotlin Multiplatform (KMP) and Compose Multiplatform.
- JDK: OpenJDK 17 or 21 (Temurin / Corretto recommended).
- Android SDK: API Level 34+ (Build-Tools 34.0.0+).
- Gradle: Wrapper included (
./gradlew). - OS Support: Windows 10/11, macOS (Apple Silicon & Intel), or Ubuntu/Debian Linux.
./gradlew :shared:compileKotlinJvm./gradlew :desktopApp:run# Ubuntu / Debian (.deb)
./gradlew :desktopApp:packageDeb
# macOS (.dmg)
./gradlew :desktopApp:packageDmg
# Windows (.msi)
./gradlew.bat :desktopApp:packageReleaseMsi./gradlew :androidApp:assembleRelease- Strict UI Separation:
- The UI layer (
presentation/ui/) is design-frozen to maintain the custom neon cyber-aesthetic. Do not alter shaders or layout components without prior maintainer approval.
- The UI layer (
- Memory Safety & Concurrency:
- All network socket dispatching must use bounded channels (
kotlinx.coroutines.channels.Channel). - Concurrency limits are bounded between
10and2,500workers for targeted ranges and scaled up to4,000workers during Full 65k port sweeps to eliminate OS file descriptor exhaustion (RLIMIT_NOFILE).
- All network socket dispatching must use bounded channels (
- Android 14+ / 15+ Compliance:
- Foreground services must declare explicit
foregroundServiceTypeandPROPERTY_SPECIAL_USE_FGS_SUBTYPE.
- Foreground services must declare explicit
- Fork the repository and create your feature branch:
git checkout -b feat/your-feature-name
- Verify local builds, tests, and benchmarks:
# Run all shared unit tests ./gradlew :shared:jvmTest # Run empirical 8-suite live benchmark suite ./gradlew :shared:jvmTest --tests "com.mrcoder20.portx.data.network.LiveSystemBenchmarkTest" --rerun-tasks # Verify desktop app compilation ./gradlew :desktopApp:compileKotlin
- Commit with conventional commit messages:
git commit -m "feat(engine): add adaptive RTT jitter mitigation" - Push to your fork and submit a PR to
Ali-Rashidi-80/PortX(or upstreammr-coder20/PortX) branchmain.
Thank you for building high-performance network tools with us!