GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KaanAlper/NHentai-Mobile: Single-source Android reader for the NHentai v2 API — a stripped-down Mihon fork with built-in DoH + TLS fragmentation

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
app
app
 
 
baseline-profile
baseline-profile
 
 
core
core
 
 
data
data
 
 
docs/screenshots
docs/screenshots
 
 
domain
domain
 
 
gradle
gradle
 
 
i18n
i18n
 
 
presentation/core
presentation/core
 
 
source
source
 
 
telemetry
telemetry
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

NHentai Mobile

A single-source Android reader that opens straight into the content.

No source pickers. No extension manager. No library to curate. Just the catalogue, the reader, and a shield that keeps the connection alive.

Platform Built with Based on License


Browse listing Gallery details Reader DNS protection
Browse
Straight into the catalogue
Gallery
Tags, one chapter, download
Reader
Mihon's, untouched
Protection
One shield, no VPN

Contents

Getting started

  • What this is
  • Installation
  • How To Get API

Using it

  • Features
  • Search syntax
  • DNS protection

Under the hood

  • How it works
  • Building from source
  • Project layout

What this is

A heavily stripped-down fork of Mihon, rebuilt around a single source instead of many.

Mihon is excellent at what it does: dozens of sources, an extension marketplace, a curated library, category filters, tracker sync. All of that machinery costs taps. If you only ever read from one site, every one of those layers sits between you and the page you wanted.

So they were removed. What survived is the part worth keeping — Mihon's mature reader, its download manager, and its reading history — wired directly to one API-backed source. The app launches into the catalogue, and reading is two taps away.

Note

The bundled source implements NHentai's v2 API. The base URL is a runtime preference rather than a compile-time constant, so it can be pointed at any server speaking the same contract without rebuilding.

Installation

Grab a build from the Releases page. Each APK targets one CPU architecture, so pick the one matching your device — or take universal if you would rather not think about it.

Build Size Use it when
app-arm64-v8a-release.apk ~41 MB Almost certainly this one. Every phone released in the last decade.
app-armeabi-v7a-release.apk ~33 MB Older 32-bit ARM phones.
app-universal-release.apk ~130 MB Every architecture in one file. Works anywhere, three times the download.
app-x86_64-release.apk ~45 MB Android emulators, Chromebooks, Intel-based tablets.
app-x86-release.apk ~43 MB 32-bit x86 — older emulator images only.

Not sure what your phone runs? Almost every Android phone is arm64-v8a. If an APK installs but immediately fails to launch, you picked the wrong architecture — grab universal instead.

Requires Android 8.0 or newer. The app ships under its own package name (com.kaan.nhentai), so it installs alongside official Mihon without touching it.

How To Get API

The app authenticates against the site's API, so it cannot list anything without a key. First-run setup asks for one and won't let you continue until it's filled in.

  1. Open NHentai API Settings — create an account first if you don't have one.
  2. Find the API keys section and generate a new key.
  3. Copy it and paste it into the API key field during setup.

The same link appears inside the app on that step.

Tip

The key is stored in the source's local preferences — never compiled into the APK. Change it later, along with the base URL, from Browse → ⚙ (source settings).

Features

Browsing

  • Launches directly into the catalogue — Browse is the source
  • Popular and Latest listings, paginated
  • Full search syntax with a built-in cheat sheet in the filter sheet
  • Grid, comfortable grid, or list display

Reading

  • Mihon's reader untouched: paged and webtoon modes, zoom, tap zones, volume-key navigation, colour filters, page transitions
  • Download queue and offline reading
  • Reading history with resume-where-you-left-off

Connection

  • Encrypted DNS and TLS fragmentation behind one shield in the top bar
  • Eight DoH providers, switchable without restarting
  • Configurable user agent, cookie and WebView data controls

Interface

  • Three tabs: Browse, History, More
  • Single-chapter aware — no chapter sorting, no "download next 5", no release countdowns for content that has exactly one chapter

Search syntax

The search field passes queries straight through to the API:

Pattern Example Matches
Keyword sailor Anything containing the word
Exact phrase "school uniform" The phrase as written
Negation -word · -artist:name Excludes matches
Tag filter tag:"big breasts" · language:english By tag type
Numeric pages:>10 · favorites:>=100 Numeric comparison
Date uploaded:<7d · uploaded:>1m Relative upload time

Sorting — date, popular, popular today/week/month — lives in the filter sheet.

DNS protection

Tap the shield in the top bar to toggle it; pick the server under More. Enabling it turns on two mechanisms at once, and both matter:

1. Encrypted DNS (DoH) — hostnames resolve through your chosen provider (Cloudflare by default, plus Google, AdGuard, Quad9, Mullvad, Control D, Njalla and Shecan), so DNS-level blocking stops applying.

2. TLS connection fragmentation — the TLS handshake is split across two records.

The second one is what actually does the work. Encrypting DNS never hides where you're going: the hostname still travels in clear text inside the ClientHello's SNI field, and that's exactly where deep packet inspection matches and resets the connection. Splitting the TCP stream isn't enough either — DPI reassembles TCP segments trivially. Rewriting the record itself is what defeats it: the first record's length header is truncated and the second fragment gets a fresh copied record header, so the wire carries two valid TLS records and neither is a complete ClientHello.

The implementation follows splitHello in Intra's intra/split/retrier.go, reimplemented in Kotlin as an OkHttp SocketFactory — no VPN permission, no persistent notification, no second app.

Important

Both settings apply instantly. The DNS resolver and socket factory re-read the preference on every connection, and pooled connections are evicted on change, so there's no restart prompt.

How it works

The source talks JSON, not HTML — there is no scraping and no page parsing.

Concern Approach
Auth Authorization: Key <key>, sent only to the API host, never to the CDN
Listings Paginated endpoints; hasNextPage derived from the reported page count
Images Server lists fetched from the CDN config endpoint and cached with a TTL; paths used verbatim, never guessed
Server choice Deterministic per-path hashing — same image, same server, so HTTP caching stays effective while load spreads
Rate limits Client-side cap on API requests, with Retry-After-aware backoff on 429

Each gallery maps to a single chapter, marked complete and fetched once, which is why the chapter-management UI could be removed rather than merely hidden.

Building from source

Requires JDK 21 and Android SDK 35+.

git clone https://github.com/KaanAlper/NHentai-Mobile.git
cd NHentai-Mobile
echo "sdk.dir=$HOME/Android/Sdk" > local.properties
./gradlew assembleDebug

APKs land in app/build/outputs/apk/debug/. If JDK 21 isn't your default, point org.gradle.java.home in gradle.properties at it.

Project layout

app/                     UI, screens, bundled source, reader, downloads
├─ …/source/online/gallery/
│  ├─ GallerySource.kt      requests, CDN resolution, filters, preferences
│  └─ GallerySourceDto.kt   API models
core/                    common (networking), archive, metro (DI), metadata
data/  domain/           database and business rules
presentation/core/       shared Compose components
source/api/  source/local/   source interface and local-files source
i18n/                    strings and translations
telemetry/               optional crash reporting

Connection hardening lives in core/common/…/network/: SplitTlsSocketFactory.kt (TLS record fragmentation) and DynamicDns.kt (per-request DoH resolution).

License

Apache License 2.0 — see LICENSE.

Built on the work of the Mihon and Tachiyomi contributors, whose copyright is retained. DPI evasion technique adapted from Intra by Jigsaw.

About

Single-source Android reader for the NHentai v2 API — a stripped-down Mihon fork with built-in DoH + TLS fragmentation

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.