Skip to content
Projects

About

Self-hosted S3-compatible object storage on Google Drive: pool free space from many accounts into one bucket store. Rust + SQLite backend, SvelteKit console.

Web & App Development

How these counts are measured

Measured star growth

in 24h
Collecting history
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

gdrive-s3

Self-hosted S3-compatible object storage that keeps its data in Google Drive. Connect as many Google accounts as you like and gdrive-s3 pools their free space into one bucket store that works with the AWS CLI, rclone, restic, and any S3 SDK.

Rust axum SQLite SvelteKit Tailwind CSS Google Drive API S3 compatible License: AGPL v3

gdrive-s3 console: storage pool overview, Drive accounts, buckets, and the object browser


Features

Storage pool

  • Many Drive accounts, one pool: new data goes to the enabled account with the most free space.
  • Cross-account chunking: an object larger than any single account's free space is split across several accounts. Multipart parts are written straight to Drive, so nothing is staged on local disk.
  • Streaming reads, including byte ranges that span chunks.
  • Narrow scope: only drive.file is requested, so the app sees the files it created and nothing else in the user's Drive.
  • Safe deletes: Drive files of replaced or deleted objects are removed after a grace period, so in-flight downloads finish.
  • Accept writes toggle per account, plus quota refresh and per-account usage.

S3 API

  • Buckets, objects, listing (v1/v2), ranges, conditional requests, copy, batch delete, and multipart uploads. See the full list.
  • AWS Signature V4: header auth, presigned URLs, and aws-chunked streaming bodies with per-chunk signature verification.
  • Path-style out of the box; virtual-host style with S3_DOMAIN.

Console

  • Overview of the combined pool, with ready-to-copy AWS CLI and rclone snippets.
  • Bucket and object browser: folders, upload, download, and shareable download links.
  • Access keys per user.
  • Guided Google OAuth setup: drop the client JSON from Google Cloud and you are done.
  • Multi-user: open or closed registration; every user's accounts, buckets, and keys are isolated. The platform admin manages users and the OAuth client.
  • Hardened sign-in: throttled login attempts, sessions revoked on password change, OAuth flows bound to the browser that started them.
  • Dark mode and a mobile layout.

Self-hosting

  • One binary serving the S3 API and the console, with SQLite as the only database.
  • Local test accounts to try everything without Google.
  • Runs anywhere a Rust binary does: a small VPS, a home server, or behind any reverse proxy.

Quick start

Requirements: Rust (stable), Node 22.17+ with pnpm.

cp .env.example backend/.env   # set ADMIN_PASSWORD and APP_SECRET

cd frontend && pnpm install && pnpm build && cd ..
cd backend && cargo run --release

Open the console at http://localhost:9001, create an access key, then:

aws configure set aws_access_key_id <ACCESS_KEY>
aws configure set aws_secret_access_key <SECRET_KEY>
aws --endpoint-url http://localhost:9000 s3 mb s3://backups
aws --endpoint-url http://localhost:9000 s3 sync ./photos s3://backups/photos

Documentation

Document Contents
Getting started Running locally, configuration, local test accounts
Connecting Google accounts Google Cloud project, consent screen, OAuth client
Deployment Release build, running as a service, reverse proxy, backups
S3 API Supported operations, authentication, client examples
Architecture How objects map to Drive files, project layout, limits

Contributing

Pull requests and bug reports are welcome. Read CONTRIBUTING.md first. Report security issues privately as described in SECURITY.md.

Disclaimer

This project is not affiliated with or endorsed by Google or Amazon. Pooling storage across Google accounts may conflict with Google's terms of service; you are responsible for how you use the accounts you connect. The SQLite database is the only index of where your data lives, so back it up, and keep independent copies of anything you cannot afford to lose.

License

Copyright (C) 2026 Solusi Koding

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See LICENSE.

If you run a modified version as a network service, the AGPL requires you to offer its source code to the users of that service.

Contact

Built by @rizalahmaddd. Need help or a custom setup?

Explore related projects

Loading…