{"id":50928858,"url":"https://github.com/suka712/anyudock-cloud","last_synced_at":"2026-06-17T02:03:20.255Z","repository":{"id":324413527,"uuid":"1097141918","full_name":"suka712/anyudock-cloud","owner":"suka712","description":"📦 Self-hosted S3 setup for Storage and File sharing","archived":false,"fork":false,"pushed_at":"2026-04-13T19:59:13.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-13T21:25:08.944Z","etag":null,"topics":["bun","honojs","railway-app","s3-storage","self-hosted"],"latest_commit_sha":null,"homepage":"https://anyu.sukaseven.com","language":"TypeScript","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/suka712.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":"2025-11-15T16:04:20.000Z","updated_at":"2026-04-13T19:59:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/suka712/anyudock-cloud","commit_stats":null,"previous_names":["suka712/hasaki-auto-commit","suka712/anyudock.cloud","suka712/anyudock-cloud"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suka712/anyudock-cloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suka712%2Fanyudock-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suka712%2Fanyudock-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suka712%2Fanyudock-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suka712%2Fanyudock-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suka712","download_url":"https://codeload.github.com/suka712/anyudock-cloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suka712%2Fanyudock-cloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34430690,"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-06-17T02:00:05.408Z","response_time":127,"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":["bun","honojs","railway-app","s3-storage","self-hosted"],"created_at":"2026-06-17T02:03:15.849Z","updated_at":"2026-06-17T02:03:20.247Z","avatar_url":"https://github.com/suka712.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnyuDock (暗语-S3)\n\nPronounced *anyu* (ahn-yoo)\n\nSimple S3 file storage for sharing files and env configs between machines. Brutalist by design, minimal by nature.\n\nLive at [anyudock.cloud](https://anyudock.cloud)\n\n## Stack\n\n- **API** — [Hono](https://hono.dev) + [Bun](https://bun.sh), Drizzle ORM, PostgreSQL\n- **Client** — React, TanStack Router/Query, Tailwind CSS, Vite\n- **Storage** — Any S3-compatible provider\n- **Auth** — Email OTP via [Resend](https://resend.com), JWT session cookies\n\n## Setup\n\n### 1. API\n\n```bash\ncd api\ncp .env.example .env\n```\n\nFill in `api/.env`:\n\n```\nPORT=8080\nJWT_SECRET=your_jwt_secret\nDATABASE_URL=postgres://user:password@localhost:5432/anyudock\nRESEND_API_KEY=re_xxxxxxxxxxxx\nALLOWED_ORIGINS=http://localhost:5173\nS3_ENDPOINT=https://your-s3-endpoint.com\nS3_BUCKET_NAME=your-bucket\nS3_ACCESS_KEY_ID=your_access_key\nS3_SECRET_ACCESS_KEY=your_secret_key\n```\n\nRun migrations and start:\n\n```bash\nbun install\nbun run db:migrate\nbun run dev\n```\n\n### 2. Client\n\n```bash\ncd client\ncp .env.example .env\n```\n\nFill in `client/.env`:\n\n```\nVITE_API_URL=\"http://localhost:8080\"\n```\n\n```bash\nbun install\nbun run dev\n```\n\n## API Routes\n\nAll file routes are under `/file`.\n\n| Method | Path | Auth | Description |\n|--------|------|------|-------------|\n| `POST` | `/file` | Yes | Upload a file |\n| `GET` | `/file` | Yes | List user's files |\n| `GET` | `/file/:key/view` | Yes | Preview a file (redirect to S3) |\n| `GET` | `/file/:key/download` | No | Download a public file (redirect to S3) |\n| `PATCH` | `/file/:key/privacy` | Yes | Toggle file privacy |\n| `DELETE` | `/file/:key` | Yes | Delete a file |\n| `POST` | `/file/:key/share` | Yes | Generate a share link (public files only) |\n| `GET` | `/file/shared/:token` | No | Access a file via share link |\n\nAuth routes are under `/auth`:\n\n| Method | Path | Description |\n|--------|------|-------------|\n| `POST` | `/auth/send-otp` | Send OTP to email |\n| `POST` | `/auth/verify-otp` | Verify OTP and set session cookie |\n| `POST` | `/auth/signout` | Clear session |\n| `GET` | `/auth/me` | Get current user |\n\n## File Privacy\n\n- Files are **private by default** on upload\n- Private files can only be previewed/managed by the owner\n- Public files can be downloaded by anyone with the file ID\n- Only public files can have share links generated\n\n## Contributors\n\nAnh D Tran, Bush, khiem, suka712, Thai, Trinh Thu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuka712%2Fanyudock-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuka712%2Fanyudock-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuka712%2Fanyudock-cloud/lists"}