Skip to content

Rawknee-69/Hianime-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HIANIME-PROXY

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.

Features

  • 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.

Installation

To get started with Hi-Anime proxy, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/Rawknee-69/Hianime-proxy
    
    cd Hianime-proxy
  2. Install Dependencies:

    bun install
  3. Start the Server:

    bun run dev

    The server will be available at http://localhost:8787.

Deploy on Cloudflare's Workers

  1. Clone the Repository:

    git clone https://github.com/Rawknee-69/Hianime-proxy
    
    cd Hianime-proxy
  2. Install Dependencies:

    bun install
  3. 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.

Usage

Endpoints

  • GET /: Returns a simple "Hello Hono!" message.
  • GET /fetch: Proxy endpoint that fetches content from a remote server based on the url query parameter. Additonally, you can also pass referers using ref parameter.

CORS Headers

Hi-Anime Proxy includes the following CORS headers by default:

  • Access-Control-Allow-Origin: *
  • Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
  • Access-Control-Allow-Headers: Content-Type, Authorization
  • Access-Control-Max-Age: 3600

These can be modified as needed in the request.ts file.

Development

For development, you can use the following commands:

  • Run in Development Mode:

    bun run dev

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request to contribute to Hi-anime proxy .

Contact

For any questions or feedback, please contact rawknee.6069@gmail.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published