Skip to content

Serverless, elegant and powerful OneDrive index program, powered by Cloudflare and Next.js.

License

Notifications You must be signed in to change notification settings

Zard19991/OnePortal

 
 

Repository files navigation

OnePortal

OnePortal

English | 简体中文

OneDrive public directory listing forked from onedrive-cf-index-ng, powered by Cloudflare and Next.js

OneDrive Cloudflare Next.js

TL;DR

Showcase, share, preview, and download files inside your OneDrive with OnePortal

  • Serverless, completely free to host 💸
  • Superfast ⚡ and responsive 💦
  • Takes less than 15 minutes to set up ⏱️
  • Highly customisable ⚒️

🍌 More importantly, we are pretty (●'◡'●)

What's different

Compared with onedrive-cf-index-ng:

  • 🚀 Proxy downloading through Cloudflare network
  • 🔍 Improved file search with Microsoft Graph Search API
    • The original version uses OneDrive Search API, which randomly misses files and is basically unusable.
  • 🔐 Improve security by:
    • allowing to use TOTP instead of password
    • set custom AES secret key and client secret in environment variables
    • rate limit for TOTP authentication
  • 😋 Better user interface
  • 🍪 Edge function caching for faster load times
  • 🛠️ More environment variables
  • 🧰 Updated dependencies

Special thanks to the original author of od-cf-index-ng @lyc8503 and author of onedrive-vercel-index @spencerwooo and all contributors.

🚀 Quick start

See OnePortal Wiki!

If you happen to like this project, please give it a star! :3

Demo

Live demo at here.

demo

Features

👀 File preview 💠 List / Grid layouts 🎥 Video and audio
PDF, EPUB, markdown, code, plain text For previewing images and documents with thumbnails mp4, mp3, ..., play online or with IINA, PotPlayer ... with subtitles!
📄 Office preview 📝 README.md preview 📑 Pagination
docx, pptx, xlsx, ... Also renders code blocks, images with relative links, ... For folders with 200 or more items
🔒 Protected folders ⏬ Multi-file download 🚀 Proxy download
Password protected routes and files. Details here Compress and download multiple files or folders. Details here Download via Cloudflare network (with risk). Details here

... and more:

  • Streamlined deployment, without having to get your tokens manually anymore!
  • Direct raw-file serving and hosting ...
  • Full dark mode support, style and website customisations ...

Note: This project is focused on showcasing and providing a way for others to download files from your OneDrive. Emphasis on free and serverless. If you have your own server / need WebDAV / use cloud providers other than OneDrive, checkout alist.

Documentation

Documentation is hosted at OnePortal Wiki.

I didn't find a solution / My problem is unique?

Please open an issue for help, before that make sure that you have searched for existing/solved issues.

License

MIT

footer made with ❤️ by EFL & lyc8503 & spencer woo and contributors

About

Serverless, elegant and powerful OneDrive index program, powered by Cloudflare and Next.js.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.5%
  • CSS 10.1%
  • JavaScript 4.1%
  • Dockerfile 0.3%