Self-hosted file management and sharing system that stores files across local disks, S3-compatible storage, OneDrive and other cloud providers.
fanchenggang/Davflare
Self-hosted personal cloud drive built on Cloudflare R2 and Pages, with a web file manager and WebDAV access.
Open-source alternative to:Google Drive
Dropbox
- Stars
- 103
- Forks
- 69
- Open issues
- 0
- Last commit
- 13 days ago
What is it?
Davflare is a file manager for Cloudflare R2 object storage, deployed on Cloudflare Pages with API routes running as Pages Functions. It gives you a web interface for uploading (chunked for large files), organizing folders, searching, previewing images, video and PDFs, and restoring from a recycle bin with configurable retention.
Files can be shared through links that expire or never expire, optionally protected by an extract code. The project also exposes WebDAV at /webdav, so desktop and mobile clients or sync plugins such as Remotely Save can mount or sync the drive. An API key system supports scripted upload, download and sync, and a remote MCP endpoint lets AI assistants call the drive's tools.
Beyond storage, Davflare can publish folders as static sites, podcast RSS feeds, download pages and PDF bookshelves on a separate hostname, and act as an image host. A companion CLI, a Chrome extension and an agent skill are included.
Key features
- 01Chunked uploads, folder management, search and drag-and-drop in the web UI
- 02Share links with optional expiry, extract codes and folder zip download
- 03WebDAV Class 1/2 access at /webdav for desktop clients and Obsidian sync
- 04Recycle bin with configurable retention period
- 05API keys and a remote MCP endpoint for scripts and AI assistants
- 06Publish folders as static sites, podcast RSS feeds or download pages on a separate hostname
Use cases
- Running a personal private drive on your own Cloudflare account without a traditional server
- Syncing an Obsidian vault across devices through WebDAV
- Hosting a public image bucket for Markdown, blogs or chat uploads
- Sharing software installers or PDF collections through a simple download page
Quick start
- 1
Open Cloudflare Workers & Pages, create a Pages project and connect this Git repo (needs R2 activated)
- 2
Set framework preset to None and build command to npm run build
npm run build - 3
Bind your R2 bucket to BUCKET, set WEBDAV_USERNAME and WEBDAV_PASSWORD, then redeploy
Things to know
- Requires a Cloudflare account with R2 activated and a payment method on file.
- Must be deployed as a Cloudflare Pages project; the Workers deploy button and wrangler deploy will not work.
- Files must be under 100MB each due to Cloudflare's request body limit.
In collections
Topics
FAQ
- What is Davflare?
- Self-hosted personal cloud drive built on Cloudflare R2 and Pages, with a web file manager and WebDAV access. Davflare is a file manager for Cloudflare R2 object storage, deployed on Cloudflare Pages with API routes running as Pages Functions. It gives you a web interface for uploading (chunked for large files), organizing folders, searching, previewing images, video and PDFs, and restoring from a recycle bin with configurable retention.
- Is Davflare free to use? What license does it have?
- Davflare is open source under the MIT license. Check the license terms before using it in commercial products.
- Is Davflare still maintained?
- Actively maintained. The last commit to Davflare was on Oct 26, 2026.
- What can I use Davflare for?
- Running a personal private drive on your own Cloudflare account without a traditional server Syncing an Obsidian vault across devices through WebDAV Hosting a public image bucket for Markdown, blogs or chat uploads Sharing software installers or PDF collections through a simple download page
- How do I install Davflare?
- Open Cloudflare Workers & Pages, create a Pages project and connect this Git repo (needs R2 activated) Set framework preset to None and build command to npm run build: npm run build Bind your R2 bucket to BUCKET, set WEBDAV_USERNAME and WEBDAV_PASSWORD, then redeploy
- Where can I get Davflare?
- The source code and installation instructions are on GitHub: https://github.com/fanchenggang/Davflare
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A self-hosted file listing and management server that unifies many cloud storage providers and local storage behind one web interface and WebDAV.
A lightweight, pure-browser file manager for Cloudflare R2 buckets, with chunked uploads, previews, and image-hosting helpers.
A self-hostable email service built on Cloudflare Workers, letting you create multiple mailboxes under one domain with sending, attachments and a responsive web UI.
Self-hosted team chat running on Cloudflare Workers, with realtime messaging, a two-way Telegram bridge, and server-side encrypted messages and files.
A self-hosted team and personal knowledge base that runs entirely on Cloudflare Workers, D1 and R2, with a Memos-compatible API and MCP endpoints.