Skip to content
/ nhql Public

Unofficial GraphQL Reverse Proxy Server for nHentai written in Rust

Notifications You must be signed in to change notification settings

SaltyAom/nhql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Note: Depreacated in favor of Akashic, but you can still use this

NhQL

Unofficial GraphQL Reverse Proxy Server for nHentai written in Rust.

Benefit

  • Open GraphQL Proxy API Server for nHentai
  • High Performance and Low Memory Usage
  • GraphQL and Playground
  • One Command Deploy to Google Cloud

Why

I'm horni

Built with and powered by

  • Rust
  • Actix Web
  • Juniper
  • Pulumi
  • TypeScript (Infra)
  • Google Cloud

Project Structure

  • code
    • Where server code is located
  • infra
    • Infrastructure of project for deployment

Code Structure

  • src
    • main.rs

      • Maikn server file, contains configuration for pluggable module.
    • models

      • Models for global usage

      • nhapi

        • Formatted structure of nHentai's data
      • nhentai

        • Raw nHentai's data
    • modules

      • Pluggable module for main.rs (Server Configuration)

      • graphql

        • Where GraphQL run
      • landing

        • To check if project is working, visit /
      • proxy

        • Proxy module for requesting to nHentai API
    • services

      • Encapsulated business logic for global usage

      • schema

        • Structure of GraphQL

Infra Structure

Same as starter template of Pulumi Google Cloud TypeScript Starter.

  • config.ts
    • infra configuration
  • docker
    • docker deployment
  • cloud run
    • cloud run deployment

Requirement

Gotcha

If you're deploying to dedicated project uncomment enableCloudRun and dependsOn

    /* Uncomment this */
24  // const enableCloudRun = new gcp.projects.Service('EnableCloudRun', {
25  // 	service: 'run.googleapis.com'
26  // })

48     },
49  // { dependsOn: enableCloudRun }
50  }

About

Unofficial GraphQL Reverse Proxy Server for nHentai written in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published