Skip to content

ZhanZiyuan/Magnet2Torrent-web

Repository files navigation

favicon

Magnet2Torrent-web

English | 简体中文

GitHub deployments GitHub last commit GitHub License GitHub Downloads (all assets, all releases) Vercel Deploy

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.

Features

  • Instant Conversion: Paste a magnet link and get a .torrent file.
  • 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-js in a secure server action to handle DHT metadata fetching.

Tech Stack

Getting Started

Prerequisites

  • Node.js 18+ installed on your machine.
  • npm package manager.

Installation

  • Clone the repository:

    git clone https://github.com/ZhanZiyuan/Magnet2Torrent-web.git
    cd Magnet2Torrent-web
  • Install dependencies:

    npm install

Running the Development Server

  • Start the local development server:

    npm run dev
  • Open http://localhost:3000 with your browser to see the result.

Usage

  1. Copy a valid magnet link (starting with magnet:?xt=urn:btih:).
  2. Paste it into the input field on the home page.
  3. The application will automatically attempt to fetch the metadata (this may take up to 30 seconds depending on peer availability).
  4. Upon success, the .torrent file will automatically download.

Similar Projects

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

About

Convert a magnet link to a .torrent file.

Topics

Resources

License

Stars

8 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors