{"id":30217521,"url":"https://github.com/delinworks/twodrive","last_synced_at":"2026-04-08T22:31:14.053Z","repository":{"id":308438922,"uuid":"1032803412","full_name":"DelinWorks/TwoDrive","owner":"DelinWorks","description":"TwoDrive is a self-hosted OneDrive-like file manager built with Laravel. It includes a virtual filesystem with folder hierarchy, file uploads, previews, folder sharing, etc. Designed to be simple, fast, and clean — ideal for personal use or internal deployment.","archived":false,"fork":false,"pushed_at":"2025-08-05T23:06:45.000Z","size":503,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-06T00:20:18.059Z","etag":null,"topics":["alpine","alpinejs","filesystem","laravel","laravel9","laravelmix","php8","tailwindcss","webpack"],"latest_commit_sha":null,"homepage":"https://turky.top","language":"PHP","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/DelinWorks.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}},"created_at":"2025-08-05T21:13:27.000Z","updated_at":"2025-08-05T23:06:48.000Z","dependencies_parsed_at":"2025-08-06T00:20:21.946Z","dependency_job_id":"2387c686-3733-4531-8b63-9dacda7ba786","html_url":"https://github.com/DelinWorks/TwoDrive","commit_stats":null,"previous_names":["delinworks/twodrive"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/DelinWorks/TwoDrive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelinWorks%2FTwoDrive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelinWorks%2FTwoDrive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelinWorks%2FTwoDrive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelinWorks%2FTwoDrive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DelinWorks","download_url":"https://codeload.github.com/DelinWorks/TwoDrive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelinWorks%2FTwoDrive/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270364971,"owners_count":24571423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"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":["alpine","alpinejs","filesystem","laravel","laravel9","laravelmix","php8","tailwindcss","webpack"],"created_at":"2025-08-14T05:17:34.891Z","updated_at":"2026-04-08T22:31:14.004Z","avatar_url":"https://github.com/DelinWorks.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📂 TwoDrive – Laravel-Based Personal Cloud Storage\n\nTwoDrive is a self-hosted OneDrive-like file manager built with Laravel. It includes a virtual filesystem with folder hierarchy, file uploads, previews, folder sharing, etc. Designed to be simple, fast, and clean — ideal for personal use or internal deployment.\n\n---\nTry [TwoDrive](https://turky.top) Now!\n## 🚀 Features\n\n- 🗂 **Hierarchical Virtual File System** – Files and folders managed in a tree structure, not dumped flat.\n- 📁 **Upload / Download / Preview**\n- 📁 **Share** - Share a folder and it's contents using a link.\n- 🧾 **File Metadata** – Size, type, last updated info shown inline.\n- 🧠 **Built with Laravel** – Clean structure, Eloquent-based models, SQLite-powered.\n\n---\n\n## 🛠 Tech Stack\n\n- **Backend**: Laravel 9\n- **Database**: SQLite\n- **Frontend**: Alpine.js, TailwindCSS\n\n---\n\n## 📦 Requirements\n\n- PHP 8.1+\n- Composer\n- SQLite\n- Node.js + npm\n\n---\n\n## 🧰 Getting Started\n\n### 1. Clone the Repo\n\n```bash\ngit clone https://github.com/your-username/twodrive.git\ncd twodrive\n````\n\n---\n\n### 2. Install Dependencies\n\n```bash\ncomposer install --optimize-autoloader --no-dev\n```\n\nIf you're using frontend tooling:\n\n```bash\nnpm install \u0026\u0026 npm run build\n```\n\n---\n\n### 3. Setup Environment\n\nCopy `.env.example` to `.env` and configure it:\n\n```bash\ncp .env.example .env\nphp artisan key:generate\n```\n\nBasic `.env` values:\n\n```env\nAPP_NAME=TwoDrive\nAPP_ENV=production\nAPP_DEBUG=false\nAPP_URL=https://yourdomain.com\n\nFILESYSTEM_DRIVER=local\nDB_CONNECTION=sqlite\nDB_DATABASE=/absolute/path/to/database.sqlite\n```\n\n\u003e **Note**: Create an empty SQLite file:\n\n```bash\ntouch database/database.sqlite\n```\n\n---\n\n### 4. Run Migrations\n\n```bash\nphp artisan migrate --force\nphp artisan storage:link\n```\n\n---\n\n### 5. Run the App (Local Dev)\n\n```bash\nphp artisan serve\n```\n\nVisit `http://localhost:8000`\n\n---\n\n## ⚙️ Recommended Production Setup\n\n\u003e You **must not** use `php artisan serve` in production.\n\nInstead:\n\n* Deploy via **Nginx** + **PHP-FPM**\n* Use **Cloudflare Tunnel** to secure access or manually host it on your VPS\n* Point Cloudflare to your internal server (localhost:80)\n\nExample Nginx config:\n\n```nginx\nserver {\n    listen 80;\n    server_name yourdomain.com;\n    root /var/www/twodrive/public;\n\n    index index.php index.html;\n\n    location / {\n        try_files $uri $uri/ /index.php?$query_string;\n    }\n\n    location ~ \\.php$ {\n        include snippets/fastcgi-php.conf;\n        fastcgi_pass unix:/run/php/php8.2-fpm.sock;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        include fastcgi_params;\n    }\n}\n```\n---\n\n## 📁 File Structure (Brief Overview)\n\n```\n.\n├── app/\n│   ├── Models/            # File, Folder models with hierarchy logic\n│   ├── Http/Controllers/  # Upload, Download, Browse logic\n├── database/\n│   └── migrations/\n├── public/                # Entry point (index.php)\n├── resources/\n│   └── views/             # Blade templates\n├── routes/\n│   └── web.php            # Main routes\n└── .env                   # Your config\n```\n\n---\n\n## 👷‍♂️ To-Do / Improvements\n\n* [X] Public sharing links\n* [ ] File thumbnails for images/videos\n* [ ] Expiring/signed download links\n* [ ] Folder-level permissions (future multi-user)\n* [ ] Chunked large file uploads\n\n---\n\n## 📝 License\n\nThis project is open source and MIT licensed.\n\n---\n\n## 🤝 Credits\n\nBuilt with ❤️ using Laravel, Tailwind, and Alpine. Inspired by the usability of OneDrive and the self-hosting of Nextcloud.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelinworks%2Ftwodrive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelinworks%2Ftwodrive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelinworks%2Ftwodrive/lists"}