Source & license
Upstream license: MIT
License TL;DR
You can use it, change it, self-host it and sell it. Keep the original copyright and license notice with copies of the code. You don’t have to publish your changes. The authors don’t promise it will work.
Explain MIT in plain English →Summary of the main license. Separate packages and assets can have different terms.
Inspect repository ↗Read this project’s actual license ↗Repository owner
See the upstream repository for the original creator and contributors.
Maintain this project? Maintainer verification →README badge, corrections or removal →Cloudflare hosting
Free tier eligible within limits
The Workers/D1 interface can fit free quotas at low usage. A defensible Cloudflare-only storage choice is an operator-owned S3-compatible R2 bucket within 10GB-month and request allowances, configured as a backing provider; external drive accounts and their limits are separate.
Hosting requirements
- Choose and configure an independently owned storage backend; this project has no native R2 binding in the captured configuration. R2 is an optional S3-compatible provider, not a second database.
- Remote OAuth/token-refresh services and drive-account costs are separate; using an owned S3/R2 backend avoids implying that maintainer-hosted OAuth is required.
- Selected browsing and Markdown preview workflows ran locally with a synthetic WebDAV provider. R2, production deployment and load limits remain untested.
Review findings & limitations
- Choose and configure an independently owned storage backend; this project has no native R2 binding in the captured configuration. R2 is an optional S3-compatible provider, not a second database.
- Remote OAuth/token-refresh services and drive-account costs are separate; using an owned S3/R2 backend avoids implying that maintainer-hosted OAuth is required.
- Competitor links describe the stated workflow overlap, not feature parity or a verified savings claim.
- The configured overview now selects the deployment templates explicitly copied into operator Wrangler files by the pinned README. Template status and placeholders remain visible; original runtime source and declared bindings were parsed, with no new deployment or provider parity claim.
Sources checked 01/10/2026
Repository snapshot: cb7cc24. Hosting eligibility reflects the deployment documentation and listed assumptions.
- alist ↗
<p align="center"> <strong>A Cloudflare-native storage aggregation panel with WebDAV, multi-drive support, file preview, sharing, audit logs, and admin controls.</strong> </p>
- workers ↗
r-the-badge"> </a> <a href="https://workers.cloudflare.com/"> <img alt="Cloudflare Workers" src="https://img.shields.io/badge/Cloudflare-Workers-F38020?style=for-the-badge&logo=cloudflare&logoColor=white"> </a> <a href="https://www.typescriptlang.org/"> <img alt
- d1 ↗
> Worker[Cloudflare Worker] WebDAV[WebDAV Client] --> Worker Worker --> D1[(Cloudflare D1)] Worker --> S3[S3 Compatible] Worker --> DAV[WebDAV Upstream] Worker --> OD[OneDrive] Worker --> GD[Google Drive] Worker --> AD[Aliyun Drive] Worker --> BD[Baidu Netd
- free-tier-eligible ↗
# CList <p align="center"> <strong>A Cloudflare-native storage aggregation panel with WebDAV, multi-drive support, file preview, sharing, audit logs, and admin controls.</strong> </p> <p align="center"> <a href="./README_zh-CN.md">简体中文</a> · <a href="./docs/deployment.md">Deployment</a> · <a href="./docs/webdav.md">WebDAV</a> · <a href="./GITHUB_WORKFLOW_DEPLOY.md">GitHub Actions</a> </p> <p align="center"> <a href="https://github.com/ooyyh/Cloudflare-Clist/stargazers"> <img alt="GitHub stars" src="https://img.shields.io/github/stars/ooyyh/Cloudflare-Clist?style=for-the-badge&logo=github"> </a> <a href="https://github.com/ooyyh/Cloudflare-Clist/network/members"> <img alt="GitHub forks" src="https://img.shields.io/github/forks/ooyyh/Cloudflare-Clist?style=fo
- free-tier-eligible ↗
| **Free** | 100,000 per day | No charge for duration | 10 milliseconds of CPU time per invocation |
- free-tier-eligible ↗
| Rows read | 5 million / day | First 25 billion / month included + $0.001 / million rows |
- free-tier-eligible ↗
| Class A Operations | 1 million requests / month |
- free-tier-eligible ↗
| Class B Operations | 10 million requests / month |
- free-tier-eligible ↗
| Rows written | 100,000 / day | First 50 million / month included + $1.00 / million rows |
- MIT ↗
MIT License Copyright (c) 2026 ooyyh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WI
- architecture ↗
r-the-badge"> </a> <a href="https://workers.cloudflare.com/"> <img alt="Cloudflare Workers" src="https://img.shields.io/badge/Cloudflare-Workers-F38020?style=for-the-badge&logo=cloudflare&logoColor=white"> </a> <a href="https://www.typescriptlang.org/"> <img alt
- architecture ↗
> Worker[Cloudflare Worker] WebDAV[WebDAV Client] --> Worker Worker --> D1[(Cloudflare D1)] Worker --> S3[S3 Compatible] Worker --> DAV[WebDAV Upstream] Worker --> OD[OneDrive] Worker --> GD[Google Drive] Worker --> AD[Aliyun Drive] Worker --> BD[Baidu Netd
- architecture ↗
# CList <p align="center"> <strong>A Cloudflare-native storage aggregation panel with WebDAV, multi-drive support, file preview, sharing, audit logs, and admin controls.</strong> </p> <p align="center"> <a href="./README_zh-CN.md">简体中文</a> · <a href="./docs/deployment.md">Deployment</a> · <a href="./docs/webdav.md">WebDAV</a> · <a href="./GITHUB_WORKFLOW_DEPLOY.md">GitHub Actions</a> </p> <p align="center"> <a href="https://github.com/ooyyh/Cloudflare-Clist/stargazers"> <img alt="GitHub stars" src="https://img.shields.io/github/stars/ooyyh/Cloudflare-Clist?style=for-the-badge&logo=github"> </a> <a href="https://github.com/ooyyh/Cloudflare-Clist/network/members"> <img alt="GitHub forks" src="https://img.shields.io/github/forks/ooyyh/Cloudflare-Clist?style=for-the-badge&logo=github"> </a> <a href="https://github.com/ooyyh/Cloudflare-Clist/blob/master/LICENSE"> <img alt="License" src="https://img.shields.io/github/license/ooyyh/Cloudflare-Clist?sty
- architecture ↗
r-the-badge"> </a> <a href="https://workers.cloudflare.com/"> <img alt="Cloudflare Workers" src="https://img.shields.io/badge/Cloudflare-Workers-F38020?style=for-the-badge&logo=cloudflare&logoColor=white"> </a> <a href="https://www.typescriptlang.org/"> <img alt
- architecture ↗
> Worker[Cloudflare Worker] WebDAV[WebDAV Client] --> Worker Worker --> D1[(Cloudflare D1)] Worker --> S3[S3 Compatible] Worker --> DAV[WebDAV Upstream] Worker --> OD[OneDrive] Worker --> GD[Google Drive] Worker --> AD[Aliyun Drive] Worker --> BD[Baidu Netd
Locally captured application screenshot · ooyyh/Cloudflare-Clist repository contributors; captured locally by Cloudsteading ↗. Uses demonstration data. Local execution does not verify a production Cloudflare deployment.
What we tested locally
React Router 7 with Wrangler 4.100.0 local workerd and a separate local D1 database. A local synthetic WebDAV provider on loopback port 4394 serves demonstration folders, Markdown, CSV and text files. The storage connection was created in the original admin UI; no real storage account is connected.
- Passed: Build and initial application load. The unmodified source built and served HTTP 200 from its generated Worker bundle using the repository-locked Wrangler 4.100.0.
- Passed: Admin login and storage setup. Signed in through the original admin UI and saved a private WebDAV connection to the local synthetic provider.
- Passed: File listing and folder navigation. The actual adapter fetched WebDAV PROPFIND data; the UI displayed three folders and three files, then opened Documents and showed Deployment-checklist.md.
- Passed: Markdown file preview. The actual adapter fetched Getting-started.md; the original Markdown preview rendered its heading and synthetic body in the browser.
- Passed: Guest private-storage access. Logging out hid the private connection. An unauthenticated request to /api/files/1/ returned HTTP 403.
- Not tested: Other storage and transfer workflows. S3/R2, OAuth drives, upload, delete, sharing, WebDAV clients, production deployment, traffic quotas and comprehensive security properties were not exercised.
Capture setup and limits
- Created a separate local Wrangler configuration with a local-only D1 resource and disposable demonstration login credentials; no remote bindings were used.
- Enabled the original WebDAV endpoint in the local configuration and connected a loopback-only synthetic WebDAV provider.
- Installed locked dependencies without lifecycle scripts and built the original application with its unchanged React Router/Vite configuration. Used the repository-locked Wrangler version for its generated configuration; the current catalog CLI rejects the generated legacy_env field.
- The WebDAV provider is a local synthetic fixture, not Cloudflare R2 or a real external drive. These checks cover only the listed local workflows.
- This capture does not establish a production installation, a guaranteed free workload, or a comprehensive security audit.
- The upstream interface is in Chinese. The capture preserves the original UI without editing application source or screenshot pixels.
What it can replace
Compare the workflow you need. These mappings describe overlap; full feature parity requires a separate comparison.
A web file browser, sharing interface and WebDAV access for existing configured storage; not a standalone Dropbox storage account or a full transfer-service substitute.
See supporting source ↗How it works
The shape of CList on Cloudflare, and how it stacks up against the rented tools it replaces.
Diagram target: wrangler.jsonc.example. Other repository deployments are listed in the source evidence below; they are not required by this target.
Architecture
Diagram based on the linked repository documentation. See the sources and hosting assumptions above.
View upstream source ↗Configuration and workflow sources
Reviewed commit cb7cc248c5ad. This configuration evidence comes from reading source files. Execution checks, when available, appear in the project's runtime review.
Deployment configuration · 1 file
Cloudflare Workers · documented installation template; operator setup required · compatibility 2025-04-04
Selected from the upstream installation instructions ↗. This is a template to configure in your account; no fresh deployment is established.
clist · default
Entrypoint: ./workers/app.ts
DB→ D1
Named environments are separate deployments. Bindings are shown only where declared. Configured routes are URL patterns, not verified application endpoints.
Runtime source · handlers, binding usage and workflow steps
Observed TypeScript/JavaScript declarations from Worker entrypoints and resolved relative imports. Calls and workflow steps may run conditionally; their listed order is not a proven end-to-end request flow. Router declarations may be mounted under a prefix or may not be registered. This shows code wiring, not a successful deployment or runtime test. Dynamic wiring, aliases and generated code may not resolve.
- L25 · FilePreview calls (conditional paths may differ): getFileType, useState, useEffect, setMediaInfo, setInterval, onNext, clearInterval, apiFileUrl, join, filter, encodeURIComponent, catch, then, navigator.clipboard.writeText, getAbsoluteUrl, alert, onClose, onPrev, window.addEventListener, window.removeEventListener
- L237 · saveTextFile calls (conditional paths may differ): test, fetch, res.json
- L259 · useFileEditor calls (conditional paths may differ): useState, setDraft, setEditing, setSaveError, setSaving, saveTextFile
- L332 · VideoPlayer calls (conditional paths may differ): useRef, useState, useCallback, videoRef.current.pause, videoRef.current.play, setCurrentTime, setBuffered, videoRef.current.buffered.end, setDuration, setIsLoading, progressRef.current.getBoundingClientRect, parseFloat, setVolume, setIsMuted, setPlaybackRate, setShowSpeedMenu, document.exitFullscreen, videoRef.current.requestFullscreen, Math.max, Math.min
- L666 · AudioPlayer calls (conditional paths may differ): useRef, useState, audioRef.current.pause, audioRef.current.play, setCurrentTime, setDuration, parseFloat, setVolume, setIsPlaying, formatDuration
- L783 · ImageViewer calls (conditional paths may differ): useState, setScale, Math.min, Math.max, Math.round, setLoading
- L821 · TextViewer calls (conditional paths may differ): useState, useEffect, setLoading, fetch, res.text, setContent, setError, fetchContent, useFileEditor, getMimeType, setReloadKey, content.split, editor.setDraft
- L903 · CodeViewer calls (conditional paths may differ): useState, getCodeLanguage, useEffect, setLoading, fetch, res.text, setContent, hljs.highlight, setHighlightedCode, hljs.highlightAuto, setError, fetchContent, useFileEditor, getMimeType, setReloadKey, content.split, editor.setDraft
- L1078 · MarkdownViewer calls (conditional paths may differ): useState, useEffect, setLoading, fetch, res.text, setContent, marked.setOptions, hljs.getLanguage, hljs.highlight, hljs.highlightAuto, marked, setRenderedHtml, setError, fetchContent, useFileEditor, getMimeType, setReloadKey, editor.setDraft
- L1377 · formatBytesPreview calls (conditional paths may differ): Math.floor, Math.log, parseFloat, toFixed, Math.pow
- L1406 · DocxViewer calls (conditional paths may differ): useState, useEffect, setLoading, fetch, res.arrayBuffer, mammoth.convertToHtml, setHtml, setError
- L1441 · XlsxViewer calls (conditional paths may differ): useState, useEffect, setLoading, fetch, res.arrayBuffer, XLSX.read, wb.SheetNames.map, XLSX.utils.sheet_to_json, setSheets, setActiveSheet, setError, sheets.map, map, String
- L1503 · PptxViewer calls (conditional paths may differ): useState, useEffect, setLoading, fetch, res.arrayBuffer, JSZip.loadAsync, sort, filter, Object.keys, test, parseInt, a.match, b.match, async, map, xml.matchAll, decodeXmlEntities, out.push, trim, texts.join
- L1558 · ArchiveViewer calls (conditional paths may differ): useState, useEffect, setLoading, fetch, res.arrayBuffer, JSZip.loadAsync, zip.forEach, list.push, list.sort, a.name.localeCompare, setEntries, setError, entries.filter, entries.map, formatBytesPreview
- L1613 · decodeXmlEntities calls (conditional paths may differ): replace, s.replace
- L6 · handleRequest calls (conditional paths may differ): request.headers.get, renderToReadableStream, console.error, isbot, responseHeaders.set
- L9 · generateSessionId calls (conditional paths may differ): crypto.getRandomValues, join, map, Array.from, padStart, b.toString
- L17 · createSession calls (conditional paths may differ): generateSessionId, Date.now, run, bind, db.prepare, expiresAt.toISOString
- L35 · getSession calls (conditional paths may differ): first, bind, db.prepare
- L55 · deleteSession calls (conditional paths may differ): run, bind, db.prepare
- L62 · cleanExpiredSessions calls (conditional paths may differ): run, db.prepare
- L66 · getSessionIdFromCookie calls (conditional paths may differ): map, cookieHeader.split, c.trim, cookie.split
- L95 · requireAuth calls (conditional paths may differ): request.headers.get, getSessionIdFromCookie, getSession
Environment references: env.ADMIN_USERNAME · env.ADMIN_PASSWORD
- L25 · pickClientIp calls (conditional paths may differ): request.headers.get, xff.split
- L35 · getRequestMeta calls (conditional paths may differ): pickClientIp, request.headers.get
- L42 · normalizeDetail calls (conditional paths may differ): detail.slice, JSON.stringify, json.slice
- L53 · logAudit calls (conditional paths may differ): normalizeDetail, run, bind, db.prepare
- L72 · getAuditLogs calls (conditional paths may differ): bindings.push, Number.isNaN, all, bind, db.prepare
- L1 · encodeUploadState calls (conditional paths may differ): JSON.stringify, btoa, replace, base64.replace
- L7 · decodeUploadState calls (conditional paths may differ): replace, token.replace, repeat, atob, JSON.parse
- L15 · normalizeRootPath calls (conditional paths may differ): rootPath.trim, normalized.startsWith, normalized.endsWith, normalized.slice
- L29 · joinRootPath calls (conditional paths may differ): normalizeRootPath, path.startsWith
- L41 · stripTrailingSlash calls (conditional paths may differ): path.endsWith, path.slice
- L48 · stripLeadingSlash calls (conditional paths may differ): path.startsWith, path.slice
- L52 · getConfigString calls (conditional paths may differ): Array.isArray, value.trim
- L67 · getRefreshToken calls (conditional paths may differ): getConfigString
- L71 · shouldUseOnlineApi calls (conditional paths may differ): config.client_id.trim, config.client_secret.trim
- L24 · getFileExtension calls (conditional paths may differ): split, filename.toLowerCase
- L29 · getFileType calls (conditional paths may differ): getFileExtension, VIDEO_EXTENSIONS.includes, AUDIO_EXTENSIONS.includes, IMAGE_EXTENSIONS.includes, PDF_EXTENSIONS.includes, DOCX_EXTENSIONS.includes, XLSX_EXTENSIONS.includes, PPTX_EXTENSIONS.includes, ARCHIVE_EXTENSIONS.includes, MARKDOWN_EXTENSIONS.includes, CODE_EXTENSIONS.includes, TEXT_EXTENSIONS.includes
- L47 · isPreviewable calls (conditional paths may differ): getFileType, includes
- L52 · getMimeType calls (conditional paths may differ): getFileExtension
- L99 · getCodeLanguage calls (conditional paths may differ): getFileExtension
- L151 · formatDuration calls (conditional paths may differ): Math.floor, padStart, m.toString, s.toString
- L9 · cmn calls (conditional paths may differ): add32, rol
- L13 · ff calls (conditional paths may differ): cmn
- L17 · gg calls (conditional paths may differ): cmn
- L21 · hh calls (conditional paths may differ): cmn
- L25 · ii calls (conditional paths may differ): cmn
- L29 · toHex calls (conditional paths may differ): padStart, byte.toString
- L38 · md5Hex calls (conditional paths may differ): ff, gg, hh, ii, add32, toHex
- L58 · safeParseJson calls (conditional paths may differ): JSON.parse
- L70 · rowToStorage calls (conditional paths may differ): safeParseJson
- L92 · getAllStorages calls (conditional paths may differ): all, db.prepare, map
- L100 · getPublicStorages calls (conditional paths may differ): all, db.prepare, map
- L109 · getStorageById calls (conditional paths may differ): first, bind, db.prepare, rowToStorage
- L121 · getStorageByName calls (conditional paths may differ): first, bind, db.prepare, rowToStorage
- L133 · createStorage calls (conditional paths may differ): input.name.trim, trim, JSON.stringify, first, bind, db.prepare, rowToStorage
- L184 · updateStorage calls (conditional paths may differ): getStorageById, updates.push, values.push, input.name.trim, input.type.trim, input.endpoint.trim, input.region.trim, input.accessKeyId.trim, input.secretAccessKey.trim, input.bucket.trim, input.basePath.trim, JSON.stringify, first, bind, db.prepare, updates.join, rowToStorage
- L276 · deleteStorage calls (conditional paths may differ): run, bind, db.prepare
- L288 · initDatabase calls (conditional paths may differ): run, db.prepare, all, map, names.has, shareNames.has
- L394 · exportStoragesForBackup calls (conditional paths may differ): getAllStorages, toISOString, storages.map
- L420 · importStoragesFromBackup calls (conditional paths may differ): run, db.prepare, getStorageByName, createStorage, errors.push
- L26 · hmacSha256 calls (conditional paths may differ): crypto.subtle.importKey, crypto.subtle.sign, encode
- L37 · sha256 calls (conditional paths may differ): encode, crypto.subtle.digest, join, map, Array.from, padStart, b.toString
- L45 · toHex calls (conditional paths may differ): join, map, Array.from, padStart, b.toString
- L53 · encodeAwsUriComponent calls (conditional paths may differ): replace, encodeURIComponent, toUpperCase, toString, char.charCodeAt
- L59 · buildCanonicalQueryString calls (conditional paths may differ): join, map, sort, Object.keys, encodeAwsUriComponent
- L67 · encodeS3Path calls (conditional paths may differ): join, map, path.split, encodeAwsUriComponent
- L74 · getSignatureKey calls (conditional paths may differ): encode, hmacSha256
- L24 · hashPassword calls (conditional paths may differ): encode, crypto.subtle.digest, join, map, padStart, b.toString
- L30 · generateRandomToken calls (conditional paths may differ): chars.charAt, Math.floor, Math.random
- L39 · generateShareId calls (conditional paths may differ): Date.now, substr, toString, Math.random
- L43 · validateShareToken calls (conditional paths may differ): test
- L70 · shareTokenExists calls (conditional paths may differ): first, bind, db.prepare
- L79 · createShare calls (conditional paths may differ): generateShareId, generateRandomToken, toISOString, password.trim, hashPassword, validateShareToken, shareTokenExists, run, bind, db.prepare
- L117 · getShareByToken calls (conditional paths may differ): first, bind, db.prepare, rowToShare
- L123 · getShareById calls (conditional paths may differ): first, bind, db.prepare, rowToShare
- L129 · getAllShares calls (conditional paths may differ): bindings.push, all, bind, db.prepare, filter, map, rowToShare
- L146 · verifySharePassword calls (conditional paths may differ): first, bind, db.prepare, hashPassword
- L163 · deleteShare calls (conditional paths may differ): run, bind, db.prepare
- L168 · cleanExpiredShares calls (conditional paths may differ): run, db.prepare
- L49 · ErrorBoundary calls (conditional paths may differ): isRouteErrorResponse
Environment references: env.DEV
- L6 · loader calls (conditional paths may differ): initDatabase, requireAuth, Response.json, Math.min, parseInt, url.searchParams.get, getAuditLogs, Number.isNaN
Environment references: context.cloudflare.env.DB
- L27 · loader calls (conditional paths may differ): fetch, Response.json, response.json, map, releases.filter, console.error
- L60 · persistClientState calls (conditional paths may differ): stateful.getStateUpdates, Object.keys, updateStorage
- L86 · withClientState calls (conditional paths may differ): action, persistClientState, console.error
- L103 · loader calls (conditional paths may differ): initDatabase, getRequestMeta, parseInt, getStorageById, Response.json, url.searchParams.get, getFileType, getShareByToken, replace, path.startsWith, verifySharePassword, requireAuth, createClient, withClientState, client.listObjects, client.getObject, response.headers.get, upstreamContentType.startsWith, getMimeType, pop
- L299 · action calls (conditional paths may differ): initDatabase, getRequestMeta, parseInt, getStorageById, Response.json, requireAuth, url.searchParams.get, uploadActions.includes, createClient, request.json, withClientState, client.initiateMultipartUpload, logAudit, client.getSignedUploadPartUrl, request.headers.get, client.uploadPart, client.completeMultipartUpload, client.abortMultipartUpload, client.createFolder, newName.includes
Environment references: context.cloudflare.env.DB
- L37 · isMissingDirectoryError calls (conditional paths may differ): test
- L44 · persistClientState calls (conditional paths may differ): stateful.getStateUpdates, Object.keys, updateStorage
- L70 · withClientState calls (conditional paths may differ): action, persistClientState, console.error
- L87 · collectStats calls (conditional paths may differ): queue.shift, visited.has, visited.add, client.listObjects, toLowerCase, getFileExtension, queue.push, isMissingDirectoryError, console.warn, console.error
- L181 · loader calls (conditional paths may differ): initDatabase, requireAuth, Response.json, parseInt, getStorageById, withClientState, collectStats, console.error
Environment references: context.cloudflare.env.DB
- L15 · loader calls (conditional paths may differ): initDatabase, getRequestMeta, url.searchParams.get, getShareByToken, Response.json, getStorageById, logAudit, requireAuth, cleanExpiredShares, getAllShares
- L88 · action calls (conditional paths may differ): initDatabase, getRequestMeta, catch, request.json, Response.json, getShareByToken, verifySharePassword, requireAuth, getStorageById, createShare, logAudit, Boolean, password.trim, message.includes, url.searchParams.get, getShareById, deleteShare
Environment references: context.cloudflare.env.DB
- L25 · loader calls (conditional paths may differ): initDatabase, requireAuth, getAllStorages, Response.json, storages.map, getPublicStorages
- L58 · action calls (conditional paths may differ): initDatabase, getRequestMeta, request.json, validateAdmin, logAudit, Response.json, createSession, createSessionCookie, request.headers.get, getSessionIdFromCookie, deleteSession, deleteSessionCookie, requireAuth, exportStoragesForBackup, Array.isArray, importStoragesFromBackup, createStorage, updateStorage, parseInt, url.searchParams.get
Environment references: context.cloudflare.env.DB
- L12 · generatePropfindResponse calls (conditional paths may differ): join, filter, parts.map, part.replace, href.endsWith, joinHref, xmlResponses.push, escapeXml, collectionHref, pop, requestPath.split, toUTCString, getContentType, xmlResponses.join
- L81 · escapeXml calls (conditional paths may differ): replace, str.replace
- L90 · getContentType calls (conditional paths may differ): pop, filename.split
- L122 · validateWebdavAuth calls (conditional paths may differ): request.headers.get, authHeader.startsWith, atob, authHeader.slice, credentials.split
- L202 · persistClientState calls (conditional paths may differ): stateful.getStateUpdates, Object.keys, updateStorage
- L228 · withClientState calls (conditional paths may differ): action, persistClientState, console.error
- L246 · handleWebdavRequest calls (conditional paths may differ): request.method.toUpperCase, validateWebdavAuth, createUnauthorizedResponse, initDatabase, parseInt, getAllStorages, url.pathname.replace, xmlResponses.push, escapeXml, baseUrl.replace, xmlResponses.join, includes, getStorageById, createClient, request.headers.get, request.arrayBuffer, withClientState, client.putObject, console.error, client.deleteObject
- L529 · loader calls (conditional paths may differ): handleWebdavRequest
- L534 · action calls (conditional paths may differ): handleWebdavRequest
Environment references: env.WEBDAV_USERNAME · env.ADMIN_USERNAME · env.WEBDAV_PASSWORD · env.ADMIN_PASSWORD · context.cloudflare.env.DB · env.WEBDAV_ENABLED
- L3 · loader calls (conditional paths may differ): url.searchParams.get
- L44 · formatBytes calls (conditional paths may differ): Math.floor, Math.log, parseFloat, toFixed, Math.pow
- L52 · formatDate calls (conditional paths may differ): date.toLocaleString
- L58 · getFileIcon calls (conditional paths may differ): fileTypeIcon, getFileType
- L63 · Share calls (conditional paths may differ): useState, useEffect, setError, setLoading, fetch, res.json, setShare, setStorage, fetchShareInfo, loadFiles, pop, share.filePath.split, setObjects, apiFileUrl, encodeURIComponent, setPath, replace, newPath.replace, window.open, setPasswordError
- L24 · loader calls (conditional paths may differ): parseInt, console.error, initDatabase, requireAuth, getAllStorages, getPublicStorages, storages.map
- L391 · formatBytes calls (conditional paths may differ): Math.floor, Math.log, parseFloat, toFixed, Math.pow
- L399 · formatSpeed calls (conditional paths may differ): Math.floor, Math.log, parseFloat, toFixed, Math.pow
- L407 · formatDate calls (conditional paths may differ): date.toLocaleString
- L413 · Modal calls (conditional paths may differ): e.stopPropagation
- L429 · LoginModal calls (conditional paths may differ): useState, e.preventDefault, setLoading, setError, fetch, JSON.stringify, onLogin, res.json, e.stopPropagation, setUsername, setPassword
- L511 · StorageModal calls (conditional paths may differ): Boolean, trim, String, fields.some, useState, initConfig, setFormData, field.show, updateConfigValue, map, e.preventDefault, setLoading, setError, fetch, JSON.stringify, onSave, res.json, e.stopPropagation, handleTypeChange, driveConfig.fields.map
- L898 · SettingsModal calls (conditional paths may differ): useState, setExporting, fetch, JSON.stringify, res.json, URL.createObjectURL, document.createElement, slice, toISOString, document.body.appendChild, a.click, document.body.removeChild, URL.revokeObjectURL, alert, setImporting, setImportResult, file.text, JSON.parse, Array.isArray, data.errors.join
- L1367 · AnnouncementModal calls (conditional paths may differ): e.stopPropagation
- L1404 · buildConicGradient calls (conditional paths may differ): items.map, start.toFixed, end.toFixed, stops.join
- L1418 · StorageStatsModal calls (conditional paths may differ): useState, useEffect, setLoading, setError, fetch, res.json, setStats, fetchStats, sort, Object.entries, sortedTypes.slice, topTypes.map, topTypes.reduce, items.push, Math.max, buildConicGradient, chartItems.map, e.stopPropagation, formatBytes, stats.fileCount.toLocaleString
- L1607 · FolderStatsModal calls (conditional paths may differ): sort, Object.entries, sortedTypes.slice, topTypes.map, topTypes.reduce, items.push, Math.max, buildConicGradient, chartItems.map, e.stopPropagation, formatBytes, stats.fileCount.toLocaleString, stats.folderCount.toLocaleString, dominantType.percentage.toFixed, item.percentage.toFixed, map, chartItems.slice, item.count.toLocaleString
- L1722 · ScanModal calls (conditional paths may differ): e.stopPropagation, results.bigFiles.map, onNavigate, onClose, fileTypeIcon, getFileType, formatBytes, results.duplicates.map, g.files.map
- L1789 · ChangelogModal calls (conditional paths may differ): useState, useEffect, fetch, res.json, setReleases, setError, setLoading, fetchReleases, date.toLocaleDateString, map, body.split, line.trim, startsWith, trimmed.toLowerCase, e.stopPropagation, releases.map, formatDate, parseBody
- L1924 · FileBrowser calls (conditional paths may differ): useState, JSON.parse, localStorage.getItem, useRef, useEffect, setPath, setSearchQuery, loadFiles, setSelectedKeys, setCursor, setReadme, objects.find, test, fetch, apiFileUrl, res.text, marked.setOptions, marked, setLoading, setError
- L3837 · Home calls (conditional paths may differ): useState, useEffect, localStorage.getItem, setIsDark, document.documentElement.classList.remove, document.documentElement.classList.add, sessionStorage.getItem, setShowAnnouncement, sessionStorage.setItem, useCallback, localStorage.setItem, changeTheme, Math.hypot, Math.max, document.startViewTransition, transition.ready.then, document.documentElement.animate, clipPath.reverse, fetch, res.json
Environment references: context.cloudflare.env.DB · context.cloudflare.env.SITE_TITLE · context.cloudflare.env.SITE_ANNOUNCEMENT · context.cloudflare.env.CHUNK_SIZE_MB · context.cloudflare.env.WEBDAV_ENABLED
- L58 · fetch handler exported · calls getWebdavParams, handleWebdavRequest, requestHandler
- L16 · handleWebdavRequest calls (conditional paths may differ): getServerBuild, handler
- L33 · getWebdavParams calls (conditional paths may differ): url.pathname.match, join, map, rawPath.split, decodeURIComponent
Environment references: env.MODE
Build and deployment pipeline · 3 GitHub Actions workflows
Repository CI declarations, separate from runtime request processing. Job dependencies and conditions are shown as written; long commands are shortened with an ellipsis; a workflow file does not prove a recent successful run.
Triggers: push, workflow_dispatch
build · no job dependencies declared
- actions/checkout@v4
actions/checkout@v4 - Setup Pages
actions/configure-pages@v5 - Build with Jekyll
actions/jekyll-build-pages@v1 - Upload artifact
actions/upload-pages-artifact@v3
deploy · after build
- Deploy to GitHub Pages
actions/deploy-pages@v4
Triggers: push
release · no job dependencies declared
- actions/checkout@v4
actions/checkout@v4 - Generate release notes
set -euo pipefail TAG="${GITHUB_REF_NAME}" PREV_TAG="$(git tag --sort=-creatordate | grep -v "^${TAG}$" | head -n 1 || true)" { echo "## ${TAG}" echo if [ -n "${PREV_TAG}" ]; then echo "Changes since ${PREV_TAG}:" git log "${PREV_TAG}..${TAG}" --pretty=format:"- %s (%h)" else echo "Changes:" git log --pretty=format:"- %s (%h)" fi } > release_notes.md - Create GitHub Release
softprops/action-gh-release@v2
Triggers: push, workflow_dispatch
deploy · no job dependencies declared
- actions/checkout@v4
actions/checkout@v4 - actions/setup-node@v4
actions/setup-node@v4 - Install dependencies
npm ci - Generate Wrangler config
WORKER_NAME="${WORKER_NAME:-clist}" WORKER_MAIN="${WORKER_MAIN:-./workers/app.ts}" COMPATIBILITY_DATE="${COMPATIBILITY_DATE:-2025-04-04}" D1_DATABASE_NAME="${D1_DATABASE_NAME:-clist}" D1_BINDING="${D1_BINDING:-DB}" D1_MIGRATIONS_DIR="${D1_MIGRATIONS_DIR:-./migrations}" OBSERVABILITY_ENABLED="${OBSERVABILITY_ENABLED:-true}" if [ -z "$D1_DATABASE_ID" ]; then if [ -z "$CLOUDFLARE_API_TOKEN" ] || [ -z "$CLOUDFLARE_ACCOUNT_ID" ]; then echo "Missing CLOUDFLARE_API_TOKEN or CLOUDFLARE_ACCOUNT_ID for D… - Build
npm run build - Apply D1 migrations
npx wrangler d1 migrations apply ${{ vars.D1_DATABASE_NAME }} --remote --config wrangler.jsonc - Deploy
npx wrangler deploy \ --config build/server/wrangler.json \ --var "VALUE_FROM_CLOUDFLARE:${VALUE_FROM_CLOUDFLARE}" \ --var "ADMIN_USERNAME:${ADMIN_USERNAME}" \ --var "ADMIN_PASSWORD:${ADMIN_PASSWORD}" \ --var "SITE_TITLE:${SITE_TITLE}" \ --var "SITE_ANNOUNCEMENT:${SITE_ANNOUNCEMENT}" \ --var "CHUNK_SIZE_MB:${CHUNK_SIZE_MB}" \ --var "WEBDAV_ENABLED:${WEBDAV_ENABLED}" \ --var "WEBDAV_USERNAME:${WEBDAV_USERNAME}" \ --var "WEBDAV_PASSWORD:${WEBDAV_PASSWORD}"
build: react-router builddeploy: npm run build && wrangler deploy
Repository README
View original on GitHub ↗Full upstream document by @ooyyh · README.md · snapshot cb7cc24
CList
A Cloudflare-native storage aggregation panel with WebDAV, multi-drive support, file preview, sharing, audit logs, and admin controls.
简体中文 · Deployment · WebDAV · GitHub Actions
Overview
CList turns Cloudflare Workers + D1 into a lightweight cloud storage aggregation service. It gives you a single web UI and WebDAV endpoint for S3-compatible storage, WebDAV servers, OneDrive, Google Drive, Aliyun Drive, and Baidu Netdisk.
It is designed for small personal data centers, public download mirrors, private file hubs, and edge-hosted storage dashboards where running a traditional server is overkill.
flowchart LR
Browser[Web UI] --> Worker[Cloudflare Worker]
WebDAV[WebDAV Client] --> Worker
Worker --> D1[(Cloudflare D1)]
Worker --> S3[S3 Compatible]
Worker --> DAV[WebDAV Upstream]
Worker --> OD[OneDrive]
Worker --> GD[Google Drive]
Worker --> AD[Aliyun Drive]
Worker --> BD[Baidu Netdisk]
Highlights
- Multi-storage file browser with public and private permission controls
- WebDAV server endpoint for desktop sync tools, mobile file managers, and CLI clients
- S3-compatible storage support, including custom endpoint and base path
- Drive integrations for OneDrive, Google Drive, Aliyun Drive, and Baidu Netdisk
- File upload, download, folder creation, rename, move, copy, and delete workflows
- Preview support for common text, markdown, code, image, audio, video, and document files
- Public share links with token-based access
- Storage statistics with visual charts for total size, file count, folder count, and file type distribution
- Audit logs for admin actions and file operations
- Cloudflare D1 persistence and Workers edge deployment
- GitHub Actions deployment guide for repeatable releases
Supported Backends
| Backend | Browse | Upload | Rename / Move | Notes |
|---|---|---|---|---|
| S3 compatible | Yes | Yes | Yes | Works with R2-like and S3-compatible endpoints |
| WebDAV upstream | Yes | Yes | Yes | Also exposed through CList's own WebDAV server |
| OneDrive | Yes | Yes | Yes | Supports online refresh API or custom OAuth app |
| Google Drive | Yes | Yes | Yes | Supports online refresh API or custom OAuth app |
| Aliyun Drive | Yes | Yes | Yes | Uses Aliyun Open API style token refresh |
| Baidu Netdisk | Yes | Yes | Yes | Supports refresh token based access |
Quick Start
1. Clone and Install
git clone https://github.com/ooyyh/Cloudflare-Clist.git
cd Cloudflare-Clist
npm install
2. Create a D1 Database
npx wrangler login
npx wrangler d1 create clist
Keep the returned database_id; it is used in the next step.
3. Configure Wrangler
Create your production config from the example:
cp wrangler.jsonc.example wrangler.jsonc
Then copy the D1 database_id returned by Wrangler into wrangler.jsonc.
Recommended production shape:
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "clist",
"main": "./workers/app.ts",
"compatibility_date": "2025-04-04",
"keep_vars": true,
"d1_databases": [
{
"binding": "DB",
"database_name": "clist",
"database_id": "your-d1-database-id",
"migrations_dir": "./migrations"
}
]
}
Use Cloudflare Dashboard or Wrangler secrets/vars for runtime values. Keeping keep_vars: true avoids overwriting Dashboard-managed variables during deploys.
4. Apply Database Migrations
npx wrangler d1 migrations apply clist --remote
5. Deploy
npm run build
npx wrangler deploy
Environment Variables
| Variable | Required | Example | Description |
|---|---|---|---|
DB |
Yes | D1 binding | Cloudflare D1 database binding |
ADMIN_USERNAME |
Yes | admin |
Admin login username |
ADMIN_PASSWORD |
Yes | change-me |
Admin login password |
SITE_TITLE |
No | CList |
Site title shown in the UI |
SITE_ANNOUNCEMENT |
No | Welcome |
Announcement text shown to visitors |
CHUNK_SIZE_MB |
No | 10 |
Browser upload chunk size |
WEBDAV_ENABLED |
No | true |
Enables the WebDAV server endpoint |
WEBDAV_USERNAME |
No | webdav |
WebDAV username; falls back to admin username |
WEBDAV_PASSWORD |
No | secret |
WebDAV password; falls back to admin password |
WebDAV
When WEBDAV_ENABLED is set to "true", CList exposes storage backends through WebDAV:
https://your-domain.example/dav/0/ # all storages
https://your-domain.example/dav/{storageId}/ # one storage
Important details:
- WebDAV URLs should end with a trailing slash.
- Use Basic Auth with
WEBDAV_USERNAME/WEBDAV_PASSWORD. - Desktop clients such as Windows WebDAV, macOS Finder, Cyberduck, RaiDrive, NetDrive, and many mobile file managers can connect directly.
- CList supports
OPTIONS,PROPFIND,GET,HEAD,PUT,DELETE,MKCOL,COPY, andMOVE.
More details: docs/webdav.md
Drive Configuration Notes
CList follows the OpenList-style driver flow for cloud drive token refresh:
- Online refresh API is enabled by default for OneDrive, Google Drive, Aliyun Drive, and Baidu Netdisk.
- Existing OpenList-style
api_url_addressvalues are accepted alongside CList'sapi_address. - If no local
client_idandclient_secretare configured, CList automatically falls back to the online refresh API. - Refreshed tokens are persisted into storage state so repeated browsing does not require re-login.
Development
npm run dev
Useful checks:
npm run build
npm run typecheck
npx wrangler deploy --dry-run
Project Structure
app/
components/ React components
lib/ storage clients, auth, audit, utilities
routes/ React Router routes and API endpoints
workers/
app.ts Cloudflare Worker entry
migrations/ D1 migrations
docs/ deployment and WebDAV docs
public/ static assets
Documentation
Star History
Support
- GitHub Issues: ooyyh/Cloudflare-Clist/issues
- Author: @ooyyh
- Email: laowan345@gmail.com
License
CList is released under the MIT License.
Frequently asked about CList
What is CList?+
CList is a self-hosted AList alternative built on the Cloudflare developer platform. Browse and share existing storage through a Cloudflare file interface
What does CList replace?+
CList is listed as an alternative to AList. Compare the features and tradeoffs before migrating.
What Cloudflare primitives does CList use?+
CList is built on D1, Workers.
How much does CList cost to run?+
The Workers/D1 interface can fit free quotas at low usage. A defensible Cloudflare-only storage choice is an operator-owned S3-compatible R2 bucket within 10GB-month and request allowances, configured as a backing provider; external drive accounts and their limits are separate. Choose and configure an independently owned storage backend; this project has no native R2 binding in the captured configuration. R2 is an optional S3-compatible provider, not a second database. Remote OAuth/token-refresh services and drive-account costs are separate; using an owned S3/R2 backend avoids implying that maintainer-hosted OAuth is required. Selected browsing and Markdown preview workflows ran locally with a synthetic WebDAV provider. R2, production deployment and load limits remain untested. Check current Cloudflare pricing before deploying.
Is CList open source?+
The upstream repository declares the MIT license. Read its terms at https://raw.githubusercontent.com/ooyyh/Cloudflare-Clist/cb7cc248c5adc6ebb4241204ff7f162d01ee1c51/LICENSE. Source code and contributor credit are available at https://github.com/ooyyh/Cloudflare-Clist.
Community rating
No ratings yet. Tried this project? Share your experience.
One rating per verified account. You can change or remove yours. Accounts are email verified; use of the software is self-reported.



Discussion · 0
sign in to comment →