Thanks to visit codestin.com
Credit goes to github.com

Skip to content

developeranaz/MEGA-INDEX-CLOUDFLARE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

96 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ MEGA.nz to Cloudflare Index

Index your MEGA.nz account using Cloudflare Workers for faster browsing, improved stability, and direct downloads without MEGA's standard transfer quota restrictions.

⚠️ Experimental: This project is still under development and may not work in all situations. Use it at your own risk.

πŸ“– Steps to Use

Step 1: Generate Your MEGA Index Code

  1. Open the MEGA Index Code Generator:

  2. Enter your MEGA Account Email.

  3. Enter your MEGA Account Password.

  4. Select your preferred Template Theme.

  5. Click Generate Custom worker.js.

  6. Copy or download the generated Cloudflare Worker code.

Note: Disable ad blockers and any browser extensions that block external scripts before generating the code.


Step 2: Deploy to Cloudflare Workers

  1. Log in to your Cloudflare Dashboard.
  2. Go to Workers & Pages β†’ Create Application.
  3. Select Start with Hello World! β†’ Get Started.
  4. Enter a name for your Worker (optional) and click Deploy.
  5. After deployment, click Edit Code (top-right).
  6. Delete all the default code in worker.js.
  7. Paste the generated worker.js code.
  8. Click Deploy.
  9. Wait a few minutes for deployment to complete.
  10. Click Visit to open your MEGA Cloudflare Index.

πŸš€ Heroku MEGA Index (May not Work)

Serve the contents of your MEGA.nz account over HTTP using Heroku and rclone, providing a simple web-based file index.

Status: Maintenance mode (functional, with occasional updates and improvements)


Preview

MEGA Index


One-Click Deployment

Deploy directly to Heroku without forking the repository or creating a GitHub account.

Quick Deployment:
https://developeranaz.github.io/Mega-index-heroku/random.sh

Deploy to Heroku


Configuration

After deployment:

Heroku Dashboard

Your App β†’ Settings β†’ Reveal Config Vars

Configure the following variables using your actual MEGA account credentials.

Variable Description
Email Your MEGA account email
Password Your MEGA account password

Note: Credentials are stored only in your Heroku application's Config Vars.


Auto Quota Bypass (Optional)

A quota bypass feature was added in commit:

https://github.com/developeranaz/Mega-index-heroku/commit/414e629ec98bd5f5cb95d05ead1102e0f4db9836

To enable it, set:

Auto_Quota_Bypass=true

Additional Config Vars required:

Variable Description
APPNAME Your Heroku application name (not the URL)
Heroku_Email_Id Heroku account email
Heroku_Password Heroku account password
Auto_Quota_Bypass true or false

These variables are only required when using the Auto Quota Bypass feature.


Screenshots

Deployment

Deployment

Running Instance

Running


Features

  • No rclone.conf file required
  • Direct MEGA.nz integration
  • Improved security
  • Easily switch MEGA accounts through Config Vars
  • High-speed downloads (no application speed limiting)
  • Permanent public URL via Heroku
  • Download resume support using download managers
  • Multi-thread downloading (up to 9 connections)
  • Optional automatic MEGA quota bypass

Known Issues

  • Download speed may vary depending on the device or network.
  • If deployment fails, simply redeploy the application. Some deployment assets are served from free infrastructure and occasional failures may occur.

Recommended Download Managers

For the best download experience, use:

  • ADM (Android)
  • Aria2
  • Aria2 for Android
  • Aria2 for Windows
  • XDM (Xtreme Download Manager)

WebDAV Support

A WebDAV version with authentication is available here:

https://github.com/bluehypergiant/Mega.nz-rclone-WebDav


Deploy

Heroku

Deploy to Heroku

Zeet

Deploy to Zeet


Supported Storage

  • βœ… MEGA.nz

Support

If you encounter any issues, please open an issue:

https://github.com/developeranaz/Mega.nz-Rclone-Index-Heroku-BETA/issues/new


Additional Screenshots

Sample

Index


Support the Project

If you find this project useful:

Bitcoin Donation

1J48LksQNiASuj48nwYATXdFzQSwdrnx7c

Tutorial of will be published soon

About

Serve your MEGA.nz files through Cloudflare Workers, providing a fast, stable, and web-based file index with improved download performance and a seamless browsing experience.

Topics

Resources

License

Stars

244 stars

Watchers

8 watching

Forks

Packages

 
 
 

Contributors