A versatile API that scrapes data from multiple providers, offering a wide range of content.
- Hentai Anime
- HAnime
- HentaiHaven
- HentaiStream (planned)
- HentaiFreak (planned)
- Hentaimama (planned)
- Gallery/Fanmade
- Rule34
- Hentai Manga
- Hentai2Read (planned)
- NHentai (planned)
- HentaiFox (planned)
Ready to get started? Follow these simple steps to install and run the API on your machine:
First, clone the repository:
git clone https://github.com/shimizudev/hentai-api.gitThen, navigate to the project directory and install the dependencies:
cd hentai-api
bun installCreate a .env file in the root directory of the project and add the following variables:
MONGODB_URL=mongodb://localhost:27017/hentai-api # Not required
# REDIS. You can use upstash redis for free. This is required for running the API. Will be optional in the future.
REDIS_HOST=localhost # Required.
REDIS_PASSWORD=password # RequiredTo run the API in development mode, use the following command:
bun run dev # Will start a development serverTo run the API in production, you need to set the NODE_ENV variable in your .env file:
# ... rest of your env
NODE_ENV=productionThen, use the following command to start the production server:
bun run start # Will start a production serverThe API will be accessible on port 3000 by default.
Prefer Docker? Here's how to run the API using Docker:
First, clone the repository:
git clone https://github.com/shimizudev/hentai-api.gitThen, build the Docker image:
cd hentai-api
docker build -t hentai-api .Create a .env file in the root directory of the project and add the following variables:
MONGODB_URL=mongodb://localhost:27017/hentai-api
REDIS_HOST=localhost
REDIS_PASSWORD=passwordNote: You can also pass these environment variables directly to the docker run command.
To run the API using Docker, use the following command:
docker run -p 3000:3000 -d hentai-apiThe API will be accessible on port 3000 by default.
Contributions are highly appreciated! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository.
This project is licensed under the Apache License 2.0. See the LICENSE file for more information.