c0f98e41c8118079bd34d06515f40063186d095e
* feat (Connection Statistics): Restored the server connection statistics feature * perf(store): Optimize data storage performance and implement caching mechanisms - Implement caching mechanisms in SnippetStore and ServerStore to reduce redundant loading - Refactor ConnectionStatsStore to use indexes and optimize query performance - Adopt a more efficient approach when cleaning up expired records - Add a maximum record limit to prevent data bloat * perf(store): Optimize data storage performance and add a caching mechanism Add a caching mechanism to PrivateKeyStore to reduce redundant loading Make the cleanup and index rebuilding of ConnectionStatsStore asynchronous Add database compression and size statistics Display database size in the interface and optimize compression operations * fix (Cache): Fixed cache invalidation and join statistics issues - Added a cache invalidation call to the reload method - Fixed an error in the calculation of join statistics timestamps - Optimized the cache index rebuild logic - Added tooltips and click effects for join statistics * refactor(connection_stats): Convert file operations from synchronous to asynchronous and optimize record cleanup logic Convert the database size retrieval method from synchronous to asynchronous to prevent UI blocking Optimize server record cleanup logic by directly deleting redundant records instead of rebuilding indexes * fix(connection_stats): Fixed an initialization issue when the index database is empty During Stores initialization, the code now checks whether `connectionStats.indexDbKeys` is empty; if so, it calls `rebuildIndexAndCompact` to rebuild and compact the database. Additionally, the implementation of the `_pruneExcessRecords` method has been optimized to use tuples instead of temporary lists, thereby improving performance. A `mounted` check has been added at the UI layer to prevent state update issues during asynchronous operations. * fix(server): Improved error string matching logic to more accurately identify connection issues Error strings are now uniformly converted to lowercase for comparison, and matching criteria have been expanded to cover a wider range of error scenarios, including timeouts, authentication failures, and network errors * fix(PrivateKeyStore): Fixed an issue where the cache state was not updated when clearing the cache When clearing the private key store, ensure that the internal cache state is updated simultaneously to maintain consistency * refactor(store): Add close methods and clean up subscription logic Add close methods to PrivateKeyStore, SnippetStore, and ServerStore to unsubscribe Unify cache cleanup logic to prevent memory leaks * fix(store): Add a cache update suppression mechanism to prevent circular updates Add an _suppressWatch flag to multiple Store classes to suppress cache invalidation during internal operations Add a _putWithoutInvalidatingCache method to prevent recursive watchers from being triggered during data updates * refactor(store): Improve caching and state management using try-finally In PrivateKeyStore, ServerStore, and SnippetStore: 1. Remove redundant close methods 2. Use try-finally to ensure the _suppressWatch state is reset correctly 3. Optimize cache invalidation logic 4. Standardize transaction handling for update operations * refactor(store): Optimize data storage operations and fix potential issues - Ensure the safety and consistency of list operations in ConnectionStatsStore - Replace direct calls to `box.put` with the `set` method in SnippetStore and ServerStore - Extract decoding logic for PrivateKeyStore into a separate method - Add logic to update server-hopping relationships * fix: Fixed an issue where asynchronous operations were not being waited on and optimized storage operations Fixed several issues where asynchronous operations were not being waited on to ensure data consistency Added the _suppressWatch control to ServerStore and PrivateKeyStore Optimized index management in ConnectionStatsStore to maintain record order Added a new GitHub participant * fix: Fixed potential state issues and memory leaks in asynchronous operations Fixed potential state issues that could occur on the server edit page after a delete operation; added a mounted check Changed the statistics clearing operation in connection_stats to run asynchronously Optimized asynchronous operations in PrivateKeyStore and fixed potential memory leaks * refactor(store): Convert asynchronous methods to synchronous ones to simplify the code Fixed an issue where asynchronous operations were not handled correctly on the connection statistics page * fix: Added mounted check and error handling for connection logs Added a mounted check in _ConnectionStatsPageState to prevent the state from being updated after the component is unmounted Added a try-catch block for connection logs in ServerNotifier to catch and log potential storage exceptions
English | 简体中文
Flutter Server Box
A Flutter project which provides charts to display Linux, Unix and Windows server status and tools to manage servers.
Especially thanks to dartssh2 & xterm.dart.
🏙️ Screenshots
![]() |
![]() |
![]() |
![]() |
📥 Installation
| Platform | From |
|---|---|
| iOS / macOS | AppStore |
| Android | GitHub / CDN / F-Droid / OpenAPK |
| Linux / Windows | GitHub / CDN |
Please only download pkgs from the source that you trust!
🔖 Features
Status chart(CPU, Sensors, GPU...),SSHTerm,SFTP,Docker & Process & Systemd,S.M.A.R.T...- Platform specific:
Bio auth、Msg push、Home widget、watchOS App... - English, 简体中文; Deutsch @its-tom, 繁體中文 @kalashnikov, Indonesian @azkadev, Français @FrancXPT, Dutch @QazCetelic, Türkçe @mikropsoft, Українська мова @CakesTwix; Español, Русский язык, Português, 日本語 (Generated by GPT)
🆘 Help
- In order to push server status to your portable device without opening ServerBox app (Such as message push and home widget), you need to install ServerBoxMonitor on your servers, and config it correctly. See wiki for more details.
- Common issues can be found in app wiki.
Before you open an issue, please read the following:
- Paste the entire log (click the top right of the home page) in the issue template.
- Make sure whether the issue is caused by ServerBox app.
- Welcome all valid and positive feedback, subjective feedback (such as you think other UI is better) may not be accepted.
After you read the above, you can open an issue.
🧱 Contributions
Any positive contribution is welcome.
If I forgot to add your name to the contributors list, please add a comment in the issue or PR you opened to let me know, I will add it as soon as possible.
Development
- Setup Flutter environment.
- Clone this repo, run
flutter runto start the app. - Run
dart run fl_build -p PLATFORMto build the app.
Translation
- Guide can be found in my blog.
- We need your help! Just feel free to open a PR.
💡 My other apps
📝 License
AGPL v3 lollipopkit & all contributors
Languages
Dart
91.5%
Swift
3.5%
Kotlin
1.9%
C++
1.3%
CMake
1%
Other
0.7%



