A small API that sends anime/hentai images in JSON.
| discord | |
|---|---|
| Follow me on Twitter. | Join my Discord server for help. |
- More endpoints
- Improved randomness
- Better response times
- Better categorization
Why do I get an error, when doing a request?
- the most likely issue is that you are using the default user-agent, which is blocked by default for security reasons and AI web crawlers.
- another possibility is that you are using a web browser, which isn't allowed because everything requires a token to access
Can I help?
- Yes, of course just make a pull request.
Will it work on my PC?
- I don't recommend using my stuff but only for testing purposes (maybe?).
What is the difference between version 1 and version 2?
- The backend of both of the versions are completely different and optimized for different types of workload due to this v1 will be depreciated and not accessible anymore in the future when v2 is fully released.
Why is version 1 no longer available?
- Too many issues, too little time to fix it
- It has been archived as of 10th of May, 2022
What are you using redis for?
- Simple caching, not a requirement but a nice to have
Why are you rebuilding your API
- PHP is slow and I want better speed
- PHP setup is a pain in the ass
- I want to learn some new stuff
- Better source control
- Seperate stuff
- Backend in Rust + JSON
- Frontend in Python and C
- Database will be switched to MongoDB
- Dashboards
- Login Page
- Authentication Methods
- User Tokens and UUIDs
- a lot of minor stuff (response time, optimization, picture storage, etc.)
Yes it will be in the future fully open sourceIt now is
- Make the whole backend
-
- connect to the database
-
- edit the data in the database
-
- store generated tokens by user
-
- keep stored tokens, even on application reboot
-
- propper logging of traffic and data
- Make the frontend
-
- make frontend for user pages and login
-
- make the frontpage
-
- uploaders
-
- make the dashboard
-
- remake the login page
- remake the loggers
- add tagging
- 2FA / Different login methods
- Redis Caching / Any caching method
- Rust
- Python 3 Python <=3.11 (3.12 removed a feature that is used with the frontend)
- MongoDB
- Redis (not required, just a nice extra)
- Web Server
- Domain Name
Download & install Python and Rust for this project then run these 2 commands.
(frontend)
$ make dev-py(backend)
$ make dev-ruChange stuff in the .env to make it be able to connect to the database and set the right logging level.
also add a private.rs file to the backend for the tokenization, no example provided make your own
Change the correct variables in your own .env file then run cargo run it will autopopulate the database
- Will explain this at a later point, will also add some stuff to the dashboard to simplify the process
