English | 简体中文
A simple, modern web application built with Next.js that converts Magnet links into .torrent files.
It fetches metadata from the BitTorrent network and generates a download file instantly.
- Instant Conversion: Paste a magnet link and get a
.torrentfile. - Auto-detection: Automatically validates and processes the link upon pasting.
- Modern UI: Clean, responsive interface built with Shadcn/UI and Tailwind CSS.
- Real-time Feedback: Toast notifications for success and error states.
- Server-Side Processing: Utilizes
magnet2torrent-jsin a secure server action to handle DHT metadata fetching.
- Framework: Next.js 15 (App Router)
- Styling: Tailwind CSS
- Components: Shadcn/UI
- Icons: Lucide React
- Core Logic: magnet2torrent-js
- Node.js 18+ installed on your machine.
- npm package manager.
-
Clone the repository:
git clone https://github.com/ZhanZiyuan/Magnet2Torrent-web.git cd Magnet2Torrent-web -
Install dependencies:
npm install
-
Start the local development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
- Copy a valid magnet link (starting with
magnet:?xt=urn:btih:). - Paste it into the input field on the home page.
- The application will automatically attempt to fetch the metadata (this may take up to 30 seconds depending on peer availability).
- Upon success, the
.torrentfile will automatically download.
This project is licensed under the GPLv3 License - see the LICENSE file for details.