Skip to content

Songloft Player (Lynx) ​

A ReactLynx + TypeScript rewrite of the Songloft Flutter client, targeting Android, iOS, HarmonyOS, and Web.

Learn about the underlying technology: Lynx official website · ReactLynx documentation.

Settings → Playback → Keep screen on for lyrics is off by default and saved only on this device. When enabled, it keeps the display awake while lyrics are visible (beside the cover on wide screens), even while playback is paused. Returning to the cover, leaving the player, or backgrounding the app restores automatic sleep. Android/iOS/HarmonyOS require a native package with the new screen policy method; older shells safely degrade. Web depends on browser Screen Wake Lock support and permission; denied requests do not interrupt playback.

Current status ​

This is a preview client. Playback, library/playlists, lyrics, plugins, themes, multiple servers, and administrative settings are implemented. About now separates client checks from server upgrades: dev checks only dev, while stable checks only the latest stable release. All three native bundle updaters are integrated in source; Android has local UI download/cancel/cold-start evidence, while iOS/HarmonyOS compilation and device acceptance remain open. Windows/macOS desktop hosting, Bundle, playback, both plugin types, and whole-app updates are implemented and published through the shared Build and Release workflow. Production signing/notarization and final device coverage remain open. See Client updates and the implementation record.

Native device caching now has identity/track-variant indexes, whole-playlist/selection tasks and local management/offline playback. Authentication expiry preserves local-only access; explicit logout hides the previous identity. See Device cache. Android has real-file/UI evidence; iOS/HarmonyOS compilation and device acceptance remain open.

The Android Bundle includes FFmpeg and FFprobe for three ABIs. The iOS Bundle links FFmpeg into the Go backend so probing and transcoding run inside the app. Windows and macOS Bundles use FFmpeg assets verified by the same backend release workflow.

Web supports playlist JSON import/export with file selection, authenticated refresh, downloads and cancellation. Expired browser activation falls back to main-thread controls. Chrome standalone and root-path embedded flows were exercised; Firefox/Safari remain unverified. See Web deployment.

Web playback settings also provide a persisted keyboard-shortcut switch: Space toggles playback and Ctrl/⌘ + arrows change tracks or volume. See Shortcuts for input/overlay/plugin focus protection and the Chrome validation scope.

The library supports combined filters for local tracks, remote tracks, and radio. Select several stations to set Automatic, HLS, HTTP-FLV, or Audio only in one action. Library Play All excludes radio and tracks in hidden or audiobook playlists.

PlatformRelease artifactLimitations
AndroidSigned Standard or Bundle APKStandard requires Android 5.0+ and Bundle requires Android 6.0+
iOS 15+Unsigned IPARe-sign before installation; Live Activity requires iOS 16.2+
HarmonyOS NEXT / API 13+Signed HAPExperimental; video module and XComponent surface exist, but compilation and device behavior need verification
WebStandalone / embedded archivesNo bundled backend, DLNA, or per-song offline cache; browser compatibility requires actual testing
Windows / macOSStandard or Bundle desktopsWindows 10 22H2+ x64 and macOS 13+ on Apple silicon or Intel

Installation and downloads ​

Download assets published in GitHub Releases; the four-platform CI updates dev only after all seven mobile and Web packages build and pass verification. Desktop variants publish separately when configured. Maintainers of a fork must configure signing secrets; see the release guide.

The Android and iOS Bundle packages embed the Go backend built by the backend Release workflow from the fixed root SHA, and can also connect to a remote server. Standard packages connect to remote servers only. Switch modes from the login or settings screen in a Bundle package. The first time local mode is enabled, choose a music directory; there is no separate mode chooser on first launch. Android uses the system directory picker and requests read access. iOS uses the app's Documents directory, where music can be added through the Files app. HarmonyOS and Web packages do not include the backend and need a running Songloft server. Choose a package under Assets on the corresponding release page:

PlatformDownloadInstallation / deployment
Androidsongloft-lynx-android.apk / songloft-lynx-bundled-android.apkThe first is the standard build and the second embeds the Go backend. Download and open the APK, then allow installation when prompted. The package uses the maintainer's release signature.
iOSsongloft-lynx-ios-nosign.ipa / songloft-lynx-bundled-ios-nosign.ipaThe first is the standard build and the second embeds the Go backend. Both are unsigned device builds. Re-sign with your developer certificate and a provisioning profile for your device before installing.
HarmonyOSsongloft-lynx-harmony.hapStandard build without the local Go backend. Install with DevEco Studio or hdc install songloft-lynx-harmony.hap.
Web (standalone)songloft-lynx-web-standalone.tar.gzExtract to a static server, then open the site and enter the Songloft API address.
Web (embedded)songloft-lynx-web-embedded.tar.gzExtract and configure same-origin static hosting with the same-origin backend; does not automatically replace the server's existing embedded frontend.

See the Web deployment guide for response headers, MIME types, and browser requirements.

Verify downloads: Keep your packages and checksums.txt in the same directory. On Linux, run sha256sum -c checksums.txt --ignore-missing. On macOS, use shasum -a 256 <filename>; on Windows, use PowerShell Get-FileHash <filename> -Algorithm SHA256. Compare the result with the listed SHA-256. version.json contains the version, commit, build time, and package information.

See the root repository's Bundle mode guide for backend startup, login, and mode switching. Release bodies contain categorized changes and installation links to this section.

Technology stack ​

LayerImplementation
Build/frameworkRspeedy + ReactLynx + TypeScript
StateZustand for client state; TanStack Query for server data
RoutingTanStack Router, memory history and code-based routes
UIIndividual lynx-ui packages, Apple semantic design tokens (src/shared/theme/tokens.css), and @lynx-js/motion
Modelszod with snake_case → camelCase transforms
Localizationi18next + react-i18next (English / Chinese)
TestsVitest + @testing-library for unit tests; TestBridge + Vitest for E2E
NativeTen custom modules covered by contract gates: Audio/Storage/Platform/Dlna/Video/SongCache/Navigation/PluginBridge, Android FloatingLyric, and iOS LiveActivity
Web@lynx-js/web-core renders the bundle in a browser <lynx-view>

Quick start ​

Requires Node ^20.19 || >=22.12, pnpm, and a Songloft backend at http://localhost:58091 (initial credentials: admin/admin).

bash
pnpm install
pnpm run web:sync && pnpm run web:dev

Validation commands:

bash
pnpm run build        # Must emit both File (lynx) and File (web)
pnpm run typecheck    # tsc -b; --noEmit alone does not check this project
pnpm test            # Unit tests and contract gates
pnpm run test:release # Release tooling and actual Web output (build first)

These checks cover JS and release tooling. They do not replace Swift/Kotlin/ArkTS compilation or browser rendering. Changes to a host require its platform checks.

Getting started (Chinese) · Build and run

Project structure ​

text
src/              Client source
  core/           Networking, storage, configuration
  features/       auth/home/library/library-ops/player/playlist/settings/jsplugin
  models/         zod models
  native/         TypeScript native facades
  shared/         Components, themes, layouts, navigation
  store/          Zustand state
  i18n/           English / Chinese
android/          Kotlin host and native modules
ios/              Swift host and native modules
harmony/          ArkTS host and native modules
web/              Web host and static development server
demo-frame-plugin/ Native Lynx plugin example
e2e/              Drivers and cross-platform scenarios
scripts/          Build, release, and localization tooling
patches/          Committed upstream patches
docs/             Documentation

Documentation ​

Documentation index organizes tutorials, how-to guides, references, explanations, project tracking, and archives.

TaskReference
Start from scratchGetting started (Chinese)
Build a platformBuild and run
Write/run testsTesting
Add native capabilitiesNative development · Module contracts
Look up conventionsAPI and stores · Back navigation
Understand runtime behaviorLynx constraints · Debugging
Take over developmentHandoff

Root-level references:

  • AGENTS.md: development constraints and validation rules.
  • ARCHITECTURE.md: architecture overview; detailed explanations live in docs/architecture/.
  • HARNESS.md: build and validation entry points and their coverage.
  • DESIGN.md: Apple HIG, materials, Liquid Glass, and implementation notes.

The backend OpenAPI contract lives in the backend repository's docs/swagger.json, or at http://localhost:58091/swagger/index.html on a development server.

Status ​

Current delivery status and outstanding validation are maintained in the handoff. Historical batches are in progress (Chinese); platform capabilities are in the platform reference (Chinese). This README avoids duplicating test counts, artifact sizes, and dated validation snapshots.

Releases and contributing ​

bash
./scripts/bump-version.sh patch --dry-run
./scripts/bump-version.sh patch

The script synchronizes versions, commits to main, creates a v* tag, and pushes. The equivalent pnpm run release patch remains available; the shell entry delegates to the existing Node release logic and supports the same arguments. See the release guide and CONTRIBUTING.en.md.

Version history is maintained in the Chinese-only root CHANGELOG.md, updated after a versioned release succeeds. Rolling dev commit history remains on its release page.

License ​

Apache-2.0, matching the Songloft backend and Flutter client. Dependencies retain their own licenses.