https://github.com/lifailon/kinozal-proxy
This is a serverless function for running a mirror to the Kinozal torrent tracker using Next.js
https://github.com/lifailon/kinozal-proxy
mirror nextjs proxy typescript
Last synced: 7 months ago
JSON representation
This is a serverless function for running a mirror to the Kinozal torrent tracker using Next.js
- Host: GitHub
- URL: https://github.com/lifailon/kinozal-proxy
- Owner: Lifailon
- Created: 2024-12-12T07:28:58.000Z (10 months ago)
- Default Branch: rsa
- Last Pushed: 2024-12-19T08:14:55.000Z (10 months ago)
- Last Synced: 2025-03-28T03:30:07.694Z (7 months ago)
- Topics: mirror, nextjs, proxy, typescript
- Language: TypeScript
- Homepage: https://kinozal.vercel.app
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Kinozal-Proxy
This is a serverless function for running a mirror to the Kinozal torrent tracker.
The proxy was created to access the tracker in the [Kinozal-Bot](https://github.com/Lifailon/Kinozal-Bot) project without using a VPN, for this reason, there is an access restriction at the level of checking the agent used when sending requests.
The proxy is not universal and needs improvement to proxy to other domains.
## 🔼 Deploy
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Use the button below and following the instructions:
[](https://vercel.com/new/torapi/clone?repository-url=https://github.com/lifailon/Kinozal-Proxy)
Check out [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
## 🚀 Using
To use a mirror in the [Kinozal-Bot](https://github.com/Lifailon/Kinozal-Bot) project, disable the proxy and change the server address:
```shell
PROXY="False"
KZ_ADDR="https://kinozal.vercel.app"
```To access the mirror from your web browser, you can use [UserAgent-Switcher](https://github.com/ray-lothian/UserAgent-Switcher) and import the example configuration in the extension settings:
```
https://raw.githubusercontent.com/Lifailon/Kinozal-Proxy/refs/heads/rsa/user-agent-switcher.json
```It is recommended to launch your application from this is repository to avoid unnecessary load on one copy, as well as to ensure the safety of your authorization data in the tracker.
## 📚 Libraries
- Handling request redirects via [Next.js](https://github.com/vercel/next.js).
- Getting cookies via the [fetch-cookie](https://github.com/valeriangalliat/fetch-cookie) and saving authorization data for subsequent requests via the [tough-cookie](https://github.com/salesforce/tough-cookie) library.
- Decoding the page to update the download url on the description page via the [iconv-lite](https://github.com/ashtuchkin/iconv-lite) library.
- Custom function for decode Cyrillic (`decodeCyrillic` in middleware) when processing search queries in russian language.