How sinkaroid/lustpress works
LustPress is a unified REST and GraphQL scraping API for eight adult-video sites. A request enters the server through REST routing or GraphQL, dispatches to site-specific get, search, random, or related handlers, and returns normalized video data. Site handlers either fetch site pages through the shared fetch/cache service and parse them with scraper adapters, or use a site API directly. The README documents the supported operations across all eight sites; several implementations are unsampled, so their internal links are not asserted. The graph focuses on runtime components and omits build and test machinery.
Main entry points: LustPress.ts Fetch and cache · index.ts Application server · controller Site operation handlers · scraper Site scraper adapters
Components 13
API entrypoints
- Application server
src/index.ts - REST routes
src/router/endpoint.ts - GraphQL handler
src/graphql/handler.ts - GraphQL schema
src/graphql/schema.ts
Site operations
- Site operation handlers
src/controller
Scraping and fetch
- Site scraper adapters
src/scraper
Shared support
- Fetch and cache
src/LustPress.ts - Pornhub challenge solver
src/utils/ph-solver.ts - Response contracts
src/interfaces.ts
Other components
- API consumer
- Video sites
- Key-value cache
- GraphQL clients
Connections 14
- API consumer → Application server: sends requests
- Application server → REST routes: registers routes
src/index.ts - Application server → GraphQL handler: registers GraphQL
src/index.ts - REST routes → Site operation handlers: dispatches requests
src/router/endpoint.ts - GraphQL handler → GraphQL schema: uses schema
src/graphql/handler.ts - GraphQL schema → Site operation handlers: resolves operations
src/graphql/schema.ts - Site operation handlers → Site scraper adapters: scrapes pages
src/controller/eporner/epornerGet.ts - Site scraper adapters → Fetch and cache: fetches page bodies
src/scraper/eporner/epornerGetController.ts - Fetch and cache → Key-value cache: reads and writes
src/LustPress.ts - Fetch and cache → Pornhub challenge solver: solves challenges
src/LustPress.ts - Fetch and cache → Video sites: requests pages
src/LustPress.ts - Site operation handlers → Video sites: queries site API
src/controller/txxx/txxxSearch.ts - Site scraper adapters → Response contracts: builds typed results
src/scraper/eporner/epornerGetController.ts - GraphQL clients → Application server: sends queries