Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Vinfall/onedrive-vercel-index

Repository files navigation

Notice

I no longer have the intention to maintain this due to minimized usage and Microsoft's cracking down inapplicable Office E3/E5 subscriptions. BTW, I use AList (which requires a server and would NOT support serverless platforms like Vercel) now.

N.B. My AAD RegisteredApp would expire in 2024-06 so you have to apply your own on Azure Portal and replace those in

clientId: '326b72e1-7cf5-4142-93c2-dd9bba0c3770',
obfuscatedClientSecret: 'U2FsdGVkX19gZInD+cMbQdP/H0OlcoXuQ1uaW37Y3kGqMgeh7MDchpFYRhRYhOxu1pJY8/OpFv+aiXtKq8a1gg==',
or discard onedrive-vercel-index, as those credentials would be defunct once expired.

This is forked from the now archived spencerwooo/onedrive-vercel-index, please refer to the original repo if you wanna self-host it.

Contribution is highly appreciated as I have no prior experience with NextJS. For the moment the only thing I can do is utilizing dependabot to update dependencies and expect them to work flawlessly. Be sure to check pinned issue if you are interested!

TL;DR

Showcase, share, preview, and download files inside your OneDrive with onedrive-vercel-index -

  • Completely free to host 💸
  • Super fast ⚡ and responsive 💦
  • Takes less than 15 minutes to setup ⏱️
  • Highly customisable ⚒️

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

Quick start

🚀 Quick start: Getting started.

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 🔎 Native Search
Password protected routes and files. Details here Compress and download multiple files or folders. Details here Searching through your shared OneDrive files (with some caveats 🥺). 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 ovi.swo.moe.

Server-less (free)?

Yes! Completely free with no backend server what-so-ever. (Well, we use Redis, but that's free to some extent also.)

License

MIT