{"id":51685425,"url":"https://github.com/tinysec/tdrive","last_synced_at":"2026-07-15T19:34:44.951Z","repository":{"id":367973132,"uuid":"1283003672","full_name":"tinysec/tdrive","owner":"tinysec","description":"A single-user, self-hosted web file disk over HTTP, WebDAV, and FTP","archived":false,"fork":false,"pushed_at":"2026-06-28T13:07:14.000Z","size":1515,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-28T15:06:25.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinysec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-28T12:48:51.000Z","updated_at":"2026-06-28T13:06:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tinysec/tdrive","commit_stats":null,"previous_names":["tinysec/tdrive"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tinysec/tdrive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinysec%2Ftdrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinysec%2Ftdrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinysec%2Ftdrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinysec%2Ftdrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinysec","download_url":"https://codeload.github.com/tinysec/tdrive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinysec%2Ftdrive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35519051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-15T19:34:42.955Z","updated_at":"2026-07-15T19:34:44.943Z","avatar_url":"https://github.com/tinysec.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tdrive\n\nA single-user, self-hosted web file disk. Files live on the filesystem and are\nserved over **HTTP**, **WebDAV**, and **FTP** from one static binary — no\ndatabase, no config file, no frontend build.\n\n![Go](https://img.shields.io/badge/Go-1.25%2B-00ADD8?logo=go\u0026logoColor=white)\n![Platform](https://img.shields.io/badge/platform-Linux%20%7C%20Windows%20%7C%20macOS-555)\n![Access](https://img.shields.io/badge/access-HTTP%20%C2%B7%20FTP%20%C2%B7%20WebDAV-success)\n![Database](https://img.shields.io/badge/database-none-brightgreen)\n\n![tdrive file browser](docs/screenshot.png)\n\n## Features\n\n- Web file browser (templ + htmx, no SPA): instant filter, click-to-sort, list/grid toggle, image thumbnails\n- Upload via toolbar or drag-and-drop (chunked for large files); streaming downloads with HTTP range support\n- View **and edit** text files; images, Markdown (GFM, Mermaid, KaTeX, code highlight), and HTML rendered inline\n- Desktop-style selection, right-click menu (open / download / copy raw URL / rename / delete), keyboard shortcuts\n- Multi-select batch delete and drag-and-drop move; create folders and text files inline, no modals\n- Static URL for every file at `/raw/\u003cpath\u003e`; nginx-style autoindex for folders\n- Same files over HTTP, FTP (`--ftp-port`), and WebDAV (`/webdav`); REST API at `/api/v1`\n- Path-safe by construction via Go `os.Root` — symlinks cannot escape the data directory\n- Optional password protection, read-only mode, 中文 / English UI\n- Native Windows service; clean SIGINT/SIGTERM shutdown for systemd / Docker\n\n## Usage\n\n```sh\ntdrive                          # serve the current directory on http://localhost:3000\ntdrive /srv/files               # serve a specific directory\ntdrive --port 8080              # change the HTTP port\ntdrive --host 127.0.0.1         # bind to one interface only\ntdrive --ftp-port 2121          # also enable FTP\ntdrive --password secret        # require a password\ntdrive --readonly               # browse \u0026 download only\n```\n\n| Flag | Meaning | Default |\n|---|---|---|\n| `[root]` (positional) | directory to serve | `.` (current directory) |\n| `--host` | bind address for HTTP and FTP | all interfaces |\n| `--port` | HTTP port | `3000` |\n| `--ftp-port` | enable the FTP server on this port | off |\n| `--password` | access password (empty = no auth) | empty |\n| `--readonly` | block all uploads, edits, and deletes | off |\n| `--verbose` | debug logging | off |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinysec%2Ftdrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinysec%2Ftdrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinysec%2Ftdrive/lists"}