manuelvargastapia/libgen_mobile_app
github へ移動してダウンロードLibGen Mobile
Looking for maintainers!
Due to my limited amount of time, I haven’t been able to keep this project updated. The app and the server still are running and I plan it to keep like that, but currently, I’m not able to build more features. At least not at the required pace. So, contact me or simply fork and code. I’ll remain aware and try to help with anything. Thanks.
![](https://fdroid.gitlab.io/artwork/badge/get-it-on.png)
This is a non-offical mobile client for Library Genesis service. It’s an independent side project. And it’s Open Source, so feel free to collaborate.
The app is built with Flutter and it’s available in FDroid.
Currently, we’re working mainly in Android version.
Features
- Search books in SciTech or Fiction sections of Library Genesis, by title, author, series, publisher, ISBN or MD5
- In SciTech, order results by relevance, title, year, pages or file size, and decide ordering criteria according to sorting option (newer firsts, smaller first, etc)
- In Fiction, filter by file extension: Epub, Mobi, AZW, AZW3, FB2, PDF, RTF, and TXT; filter by a language among a large amount of options; and also, use the “Wildcard” option to search using each word as a wildcard
- See detailed info about the books (depending on the metadata provided, some field may be not be present): cover image, title, author, description, table of contents, year, volume, series, edition, publisher, city, pages, language, ISBN, DOI, file size, and file extension
- Show search history as suggestions
- Switch between ligh and dark theme
- Show info dialog
- Available on multiple languages: German (DE), English (US), Spanish (ES), French (FR), Japanese (JP), Polish (PL), Portuguese (BR), and Chinese (CN, simplified)
- And of course, download any book. Multiple download options are provided.
TODO
The following is a list of desired new features within the scope of the project. Notwithstanding, we’re happy to hear new ideas and feeback.
- [ ] Search books in other sections of LibGen (SciTech and Fiction already covered)
- [ ] Allow for switching between languages, instead of only using the system’s
- [ ] Translate to other languages (see above the list of languages already covered)
- [ ] UI improvements (smoother animations, colors, layout, fonts, etc)
- [ ] Filter by file extension (already implement in Fiction, but it may require some extra work to do it in SciTech)
We recommend to submit first an issue to discuss ideas, instead of directly send a PR.
Environment
Flutter and Dart
- Flutter: version 2.0.4 (channel stable)
- Dart: version 2.12.2
Environment config
We’re managing the different stages of the app (basically, development and production) throught compile time variables (check this article for information). The only environmental variable in use right now is LIBGEN_MOBILE_API. This allow us to pass a development and production API URL directly from CLI commands.
Also note that this app is using multiple flavors, therefore it has to be specifically referenced when running the app. Otherwise, you’ll get the a “Gradle build failed to produce an .apk file” error.
To run the app with compile time variable plus the correct flavor, use the following command:
flutter run --dart-define=LIBGEN_API_URL=<VALUE> --flavor local
Finally, in VSCode, it could be useful define a launch.json
file to debug. Such file would look like this:
{
"version": "0.2.0",
"configurations": [
{
"name": "emulator",
"request": "launch",
"type": "dart",
"args": [
"--dart-define=LIBGEN_API_URL=http://10.0.2.2:3000",
"--flavor",
"local"
]
},
]
}
Those flags also work with flutter build apk
and others similar commands.
IMPORTANT
To use a phisical device to run the app, you’ll need to pass the internal IP of the machine that’s running the server as the value of LIBGEN_API_URL. “http://10.0.2.2:3000” will only provide access to emulators, as those are part of the same network.
Libgen API
Library Genesis doesn’t provide a public API to work with, so we decided to build a backend service to consume. It’s currently hosted in Heroku.
Check the repo to run your own instance and pass the corresponding URLs to the app throught compile time variables. It’s an ExpressJS project; you just need to clone (or fork) the repo, install dependencies and run npm start
.
During development, a forked version of this unofficial Libgen library has been used to get the data. This is the repo of our modified version.
Dependencies
The followings are all the official and third-party packages in use right now.
Internationalization
- flutter_localizations:
- sdk: flutter
- intl: ^0.17.1
Additionally, for generating the needed boilerplate we used the VSCode plugin Flutter Intl. This way, is recommended using this plugin to automatically generate new code for new locales. Unfortunately, the offical docs seems to be outdated.
API requests
- http: ^0.13.2
State management
- flutter_bloc: ^6.0.6
- hydrated_bloc: ^6.1.0
Downloads
For downloading, we’re using a fork of flutter_downloader package. Check pubspec.yaml
for details.
- flutter_downloader
- downloads_path_provider: ^0.1.0
- permission_handler: ^5.0.1+1
Open download link in browser
- url_launcher: ^5.7.10
Render HTML content
For rendering HTML, we’re using a fork of simple_html_css package. Check pubspec.yaml
for details.
Local storage
- hive: ^1.4.4+1
- hive_flutter: ^0.3.1
Code generation
- json_annotation: ^3.1.0
- build_runner: ^1.10.3
- json_serializable: ^3.5.0
- hive_generator: ^0.8.2
- equatable: ^1.2.5
Others
- dartz: ^0.9.2
- expandable: ^4.1.4
- package_info: ^0.4.3+2
![](/images/banner-woo.jpg)
関連する manuelvargastapia/libgen_mobile_app 優れたプロジェクトの推薦ダウンロード
AppFlowy
47859
AppFlowy is an open-source alternative to Notion. You are in charge of your data and customizations. Built with Flutter and Rust.
localsend
33797
An open-source cross-platform alternative to AirDrop
spotube
23772
🎧 Open source Spotify client that doesn't require Premium nor uses Electron! Available for both desktop & mobile!
revanced-manager
15035
💊 Application to use ReVanced on Android
gsy_github_app_flutter
14559
Flutter 超完整的开源项目,功能丰富,适合学习和日常使用。GSYGithubApp系列的优势:我们目前已经拥有Flutter、Weex、ReactNative、kotlin 四个版本。 功能齐全,项目框架内技术涉及面广,完成度高,持续维护,配套文章,适合全面学习,对比参考。跨平台的开源Github客户端App,更好的体验,更丰富的功能,旨在更好的日常管理和维护个人Github,提供更好更方便的驾车体验Σ( ̄。 ̄ノ)ノ。同款Weex版本 : https://github.com/CarGuo/GSYGithubAppWeex 、同款React Native版本 : https://github.com/CarGuo/GSYGithubApp 、原生 kotlin 版本 https://github.com/CarGuo/GSYGithubAppKotlin
dio
12249
A powerful HTTP client for Dart and Flutter, which supports global settings, Interceptors, FormData, aborting and canceling a request, files uploading and downloading, requests timeout, custom adapters, etc.
gopeed
11832
A modern download manager that supports all platforms. Built with Golang and Flutter.
bloc
11441
A predictable state management library that helps implement the BLoC design pattern
getx
9899
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
flame
8846
A Flutter based game engine.
flutter_deer
7595
🦌 Flutter 练习项目(包括集成测试、可访问性测试)。内含完整UI设计图,更贴近真实项目的练习。Flutter practice project (including integration testing and accessibility testing). Contains complete UI design drawings for a more realistic practice project.
fish-redux
7343
An assembled flutter application framework.
hiddify-next
7232
Multi-platform auto-proxy client, supporting Sing-box, X-ray, TUIC, Hysteria, Reality, Trojan, SSH etc. It’s an open-source, secure and ad-free.
ente
6686
Fully open source, End to End Encrypted alternative to Google Photos and Apple Photos
fl_chart
6451
FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
pixez-flutter
6360
一个支持免代理直连及查看动图的第三方Pixiv flutter客户端
Flutter-Responsive-Admin-Panel-or-Dashboard
6355
Responsive Admin Panel or Dashboard using Flutter
aidea
6021
AIdea 是一款支持 GPT 以及国产大语言模型通义千问、文心一言等,支持 Stable Diffusion 文生图、图生图、 SDXL1.0、超分辨率、图片上色的全能型 APP。
riverpod
5828
A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
pikapika
5463
美观易用且无广告的漫画和游戏客户端,同时支持MacOS,Windows,Android,iOS。