Hi-Anime is a lightweight proxy server built with Hono that facilitates fetching and transforming resources from remote servers. It handles various types of content including VTT files, HLS streams, and more, while providing enhanced CORS support and URL transformation capabilities.
- CORS Support: Allows cross-origin requests with customizable headers.
- Content Handling: Supports fetching and transforming VTT files, HLS streams, and more.
- Dynamic URL Replacement: Automatically updates URLs in fetched content to proxy paths.
To get started with Hi-Anime proxy, follow these steps:
-
Clone the Repository:
git clone https://github.com/Rawknee-69/Hianime-proxy cd Hianime-proxy -
Install Dependencies:
bun install
-
Start the Server:
bun run dev
The server will be available at
http://localhost:8787.
-
Clone the Repository:
git clone https://github.com/Rawknee-69/Hianime-proxy cd Hianime-proxy -
Install Dependencies:
bun install
-
Deploy the Worker:
bun run deploy
Your default browser will open, log in your Cloudflare account and click authorize and your worker will be deployed. You can then add your custom domain and view insights.
- GET /: Returns a simple "Hello Hono!" message.
- GET /fetch: Proxy endpoint that fetches content from a remote server based on the
urlquery parameter. Additonally, you can also pass referers usingrefparameter.
Hi-Anime Proxy includes the following CORS headers by default:
Access-Control-Allow-Origin:*Access-Control-Allow-Methods:GET, POST, PUT, DELETE, OPTIONSAccess-Control-Allow-Headers:Content-Type, AuthorizationAccess-Control-Max-Age:3600
These can be modified as needed in the request.ts file.
For development, you can use the following commands:
-
Run in Development Mode:
bun run dev
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request to contribute to Hi-anime proxy .
For any questions or feedback, please contact rawknee.6069@gmail.com