How sinkaroid/jandapress works
Jandapress is a self-hosted doujinshi data gateway: clients request get, search, or random results through REST or experimental GraphQL; source-specific adapters fetch and normalize upstream data, with shared HTTP/cache services. README documents seven sources and Redis-backed persistent caching (memory fallback). Startup, metrics, status, documentation, redirects, and rate limiting are supporting runtime capabilities. Some route wiring and scraper implementations are only indexed or partially excerpted, so links are limited to documented or indexed references.
Main entry points: rest.rs REST handlers · main.rs Server startup · schema.rs GraphQL schema · jandapress.rs HTTP and cache
Components 22
API interfaces
- REST handlers
src/routes/rest.rs - GraphQL schema
src/graphql/schema.rs - GraphQL handler
src/graphql/handler.rs
Source adapters
- nhentai adapter
src/scraper/nhentai.rs - Pururin adapter
src/scraper/pururin.rs - Hentaifox adapter
src/scraper/hentaifox.rs - Asmhentai adapter
src/scraper/asmhentai.rs - Hentai2read adapter
src/scraper/hentai2read.rs - Simply Hentai adapter
src/scraper/simply_hentai.rs - 3hentai adapter
src/scraper/threehentai.rs
Shared services
- HTTP and cache
src/jandapress.rs - Cache backend
src/cache.rs - Configuration
src/config.rs
Runtime operations
- Server startup
src/main.rs - Rate limiting
src/middleware/rate_limit.rs - Status endpoint
src/routes/status.rs - API documentation
src/routes/doc.rs - Redirect handler
src/routes/redirect.rs - Metrics
src/metrics.rs
Other components
- API clients
- Doujinshi sources
- Redis
Connections 35
- API clients → REST handlers: requests
README.md - API clients → GraphQL handler: queries
README.md - GraphQL handler → GraphQL schema: dispatches
src/graphql/handler.rs - REST handlers → nhentai adapter: invokes
src/routes/rest.rs - REST handlers → Pururin adapter: invokes
src/routes/rest.rs - REST handlers → Hentaifox adapter: invokes
src/routes/rest.rs - REST handlers → Asmhentai adapter: invokes
src/routes/rest.rs - REST handlers → Hentai2read adapter: invokes
src/routes/rest.rs - REST handlers → Simply Hentai adapter: invokes
src/routes/rest.rs - REST handlers → 3hentai adapter: invokes
src/routes/rest.rs - GraphQL schema → nhentai adapter: resolves via
src/graphql/schema.rs - GraphQL schema → Pururin adapter: resolves via
src/graphql/schema.rs - GraphQL schema → Hentaifox adapter: resolves via
src/graphql/schema.rs - GraphQL schema → Asmhentai adapter: resolves via
src/graphql/schema.rs - GraphQL schema → Hentai2read adapter: resolves via
src/graphql/schema.rs - GraphQL schema → Simply Hentai adapter: resolves via
src/graphql/schema.rs - GraphQL schema → 3hentai adapter: resolves via
src/graphql/schema.rs - nhentai adapter → HTTP and cache: fetches through
src/scraper/nhentai.rs - Pururin adapter → HTTP and cache: fetches through
src/scraper/pururin.rs - Hentaifox adapter → HTTP and cache: fetches through
src/scraper/hentaifox.rs - Asmhentai adapter → HTTP and cache: fetches through
src/scraper/asmhentai.rs - Hentai2read adapter → HTTP and cache: fetches through
src/scraper/hentai2read.rs - Simply Hentai adapter → HTTP and cache: fetches through
src/scraper/simply_hentai.rs - 3hentai adapter → HTTP and cache: fetches through
src/scraper/threehentai.rs - HTTP and cache → Cache backend: reads and writes
src/jandapress.rs - HTTP and cache → Doujinshi sources: fetches data
src/jandapress.rs - Cache backend → Redis: persists to
README.md - Server startup → Configuration: loads
src/main.rs - Server startup → REST handlers: registers
src/main.rs - Server startup → GraphQL handler: registers
src/main.rs - Server startup → Rate limiting: applies
src/main.rs - Server startup → Status endpoint: registers
src/main.rs - Server startup → API documentation: registers
src/main.rs - Server startup → Redirect handler: registers
src/main.rs - Server startup → Metrics: initializes
src/main.rs