{"id":50344953,"url":"https://github.com/zaaack/go-bin","last_synced_at":"2026-05-29T19:04:07.905Z","repository":{"id":358764507,"uuid":"1242977486","full_name":"zaaack/go-bin","owner":"zaaack","description":"A go file/text/utl sharing service with single binary, inspired by microbin","archived":false,"fork":false,"pushed_at":"2026-05-29T08:15:18.000Z","size":322,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T10:10:43.661Z","etag":null,"topics":["file-sharing","go","self-hosted","single-executable"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaaack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-05-19T00:06:09.000Z","updated_at":"2026-05-29T08:15:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zaaack/go-bin","commit_stats":null,"previous_names":["zaaack/go-bin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zaaack/go-bin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fgo-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fgo-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fgo-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fgo-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaaack","download_url":"https://codeload.github.com/zaaack/go-bin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaaack%2Fgo-bin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33666291,"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-05-29T02:00:06.066Z","response_time":107,"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":["file-sharing","go","self-hosted","single-executable"],"created_at":"2026-05-29T19:04:06.891Z","updated_at":"2026-05-29T19:04:07.900Z","avatar_url":"https://github.com/zaaack.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-bin\n\n**[English](README_EN.md)** | **中文**\n\n基于 Go 的轻量文件分享网页服务，支持分享文件、文本和链接。\n\n## 安装\n\n**Linux / macOS:**\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/zaaack/go-bin/main/install.sh | bash\n```\n\n**Windows (PowerShell):**\n\n```powershell\nirm https://raw.githubusercontent.com/zaaack/go-bin/main/install.ps1 | iex\n```\n\n也可以从 [Releases](https://github.com/zaaack/go-bin/releases) 页面手动下载。\n\n## 功能\n\n- 公开分享会出现在列表页\n- 私有分享使用随机 URL，仅凭链接访问\n- 文件尽量保留原文件名展示\n- 文本和链接在列表页展示前 2 行摘要\n- 列表页支持下载文件、复制文本、复制 URL、打开 URL\n- 详情页支持下载、复制下载链接、复制文本、复制 URL、打开 URL\n- 图片和视频支持在线预览\n- 支持置顶\n- 支持过期时间和永不过期\n- SQLite 存元数据，`uploads/` 存文件\n\n## 启动\n\n```powershell\n$env:GO111MODULE = \"on\"\n$env:GOPROXY = \"https://goproxy.cn,direct\"\ngo run ./cmd/go-bin serve\n```\n\n也可以先生成可执行文件：\n\n```powershell\n$env:GO111MODULE = \"on\"\n$env:GOPROXY = \"https://goproxy.cn,direct\"\ngo generate .\n```\n\n## 参数\n\n```powershell\ngo run ./cmd/go-bin serve \\\n  --addr :8080 \\\n  --db data.db \\\n  --uploads-dir uploads \\\n  --base-url http://localhost:8080 \\\n  --default-public=true \\\n  --default-pin=false \\\n  --default-expire=3mo\n```\n\n`--db` 支持指定 sqlite 文件位置。\n\n`--default-expire` 支持：\n\n- `never`\n- `1d`\n- `7d`\n- `30d`\n- `1mo`\n- `3mo`\n- `1y`\n\n## 页面\n\n- `/` 公开列表页\n- `/new` 发布页\n- `/s/{slug}` 详情页\n- `/download/{slug}` 文件下载\n\n## 截图\n\n| 列表页 | 发布页 | 详情页 |\n|--------|--------|--------|\n| ![列表页](docs/QQ20260519-090400.png) | ![发布页](docs/QQ20260519-090352.png) | ![详情页](docs/QQ20260519-090342.png) |\n\n## 许可证\n\n本项目使用 [MIT 许可证](LICENSE)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaaack%2Fgo-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaaack%2Fgo-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaaack%2Fgo-bin/lists"}