{"id":14979044,"url":"https://github.com/vastsa/filecodebox","last_synced_at":"2025-05-13T16:07:04.020Z","repository":{"id":64539315,"uuid":"576247474","full_name":"vastsa/FileCodeBox","owner":"vastsa","description":"文件快递柜-匿名口令分享文本，文件，像拿快递一样取文件（FileCodeBox - File Express Cabinet - Anonymous Passcode Sharing Text, Files, Like Taking Express Delivery for Files）","archived":false,"fork":false,"pushed_at":"2025-04-19T09:59:04.000Z","size":29253,"stargazers_count":6425,"open_issues_count":56,"forks_count":741,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-04-19T15:47:02.038Z","etag":null,"topics":["anonymous","fastapi","filecodebox","python","tool","vue"],"latest_commit_sha":null,"homepage":"https://fcb-docs.aiuo.net/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vastsa.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://afdian.com/a/filecodebox"]}},"created_at":"2022-12-09T11:10:08.000Z","updated_at":"2025-04-19T14:31:05.000Z","dependencies_parsed_at":"2023-12-22T06:40:48.352Z","dependency_job_id":"f0a552fa-d575-4bee-9489-33c56be8150e","html_url":"https://github.com/vastsa/FileCodeBox","commit_stats":{"total_commits":402,"total_committers":18,"mean_commits":"22.333333333333332","dds":0.345771144278607,"last_synced_commit":"0dca661508b4ad5cc699d7c45d7fe05136d70897"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vastsa%2FFileCodeBox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vastsa%2FFileCodeBox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vastsa%2FFileCodeBox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vastsa%2FFileCodeBox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vastsa","download_url":"https://codeload.github.com/vastsa/FileCodeBox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250513686,"owners_count":21443204,"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","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":["anonymous","fastapi","filecodebox","python","tool","vue"],"created_at":"2024-09-24T13:58:59.687Z","updated_at":"2025-04-23T20:48:32.089Z","avatar_url":"https://github.com/vastsa.png","language":"Python","readme":"# FileCodeBox - 文件快递柜\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/static/banners/img_1.png\" alt=\"FileCodeBox Logo\"\u003e\n\n\u003cp\u003e\u003cem\u003e匿名口令分享文本和文件，像拿快递一样取文件\u003c/em\u003e\u003c/p\u003e\n\n[![GitHub stars](https://img.shields.io/github/stars/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/network)\n[![GitHub issues](https://img.shields.io/github/issues/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/issues)\n[![GitHub license](https://img.shields.io/github/license/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/blob/master/LICENSE)\n[![QQ Group](https://img.shields.io/badge/QQ%20Group-739673698-blue.svg)](https://qm.qq.com/q/PemPzhdEIM)\n[![Python Version](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org)\n[![FastAPI](https://img.shields.io/badge/FastAPI-0.68+-green.svg)](https://fastapi.tiangolo.com)\n[![Vue Version](https://img.shields.io/badge/Vue.js-3.x-brightgreen.svg)](https://v3.vuejs.org)\n\n[English](./readme_en.md) | [部署教程](https://github.com/vastsa/FileCodeBox/wiki/部署教程) | [常见问题](https://github.com/vastsa/FileCodeBox/wiki/常见问题)\n\n\u003c/div\u003e\n\n\n## 🚀 更新计划\n- [ ] 切片上传，同文件秒传，断点续传\n- [ ] 文件收集功能\n\n## 📝 项目简介\n\nFileCodeBox 是一个基于 FastAPI + Vue3 开发的轻量级文件分享工具。它允许用户通过简单的方式分享文本和文件，接收者只需要一个提取码就可以取得文件，就像从快递柜取出快递一样简单。\n\n## 🖼️ 功能预览\n\n别问前端源码怎么是js了，麻烦仔细看下面的内容\n\u003cdiv align=\"center\"\u003e\n\u003ch3\u003e\n\u003ca href=\"https://github.com/vastsa/FileCodeBoxFronted\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Frontend-主题2024仓库-blue?style=for-the-badge\u0026logo=github\" alt=\"前端仓库2024\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/vastsa/FileCodeBoxFronted2023\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Frontend-主题2023仓库-blue?style=for-the-badge\u0026logo=github\" alt=\"前端仓库2023\"\u003e\n\u003c/a\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003ca href=\"https://share.lanol.cn\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Demo-share.lanol.cn-green?style=for-the-badge\u0026logo=internet-explorer\" alt=\"演示站点\"\u003e\n\u003c/a\u003e\n\u003c/h3\u003e\n\u003c/div\u003e\n\n### 新版界面\n\u003cdiv align=\"center\"\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_7.png\" alt=\"文件上传\" title=\"文件上传界面\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_8.png\" alt=\"文本分享\" title=\"文本分享界面\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_10.png\" alt=\"文件管理\" title=\"文件管理界面\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_9.png\" alt=\"系统设置\" title=\"系统设置界面\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_11.png\" alt=\"移动端\" title=\"移动端界面\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_12.png\" alt=\"深色模式\" title=\"深色模式界面\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_13.png\" alt=\"国际化\" title=\"国际化支持\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_14.png\" alt=\"响应式\" title=\"响应式设计\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\n### 经典界面\n\u003cdiv align=\"center\"\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img.png\" alt=\"首页\" title=\"首页界面\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_1.png\" alt=\"上传\" title=\"上传界面\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_2.png\" alt=\"管理\" title=\"管理界面\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_3.png\" alt=\"设置\" title=\"设置界面\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_4.png\" alt=\"分享\" title=\"分享界面\"\u003e\u003c/td\u003e\n\u003ctd\u003e\u003cimg src=\"./.github/images/img_5.png\" alt=\"下载\" title=\"下载界面\"\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\n## 🎯 应用场景\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e📁 临时文件分享\u003c/h4\u003e\n快速分享单个文件，无需注册登录\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e📝 文本快速分享\u003c/h4\u003e\n分享代码片段、文本内容等\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🕶️ 匿名文件传输\u003c/h4\u003e\n保护隐私的文件传输方式\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e💾 临时文件存储\u003c/h4\u003e\n支持设置过期时间的文件存储\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🔄 跨平台传输\u003c/h4\u003e\n在不同设备间快速传输文件\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🌐 小型分享服务\u003c/h4\u003e\n搭建私有的文件分享服务\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## ✨ 核心特性\n\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🚀 轻量简洁\u003c/h4\u003e\n基于 FastAPI + SQLite3 + Vue3 + ElementUI，部署简单，性能出色\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e📤 便捷上传\u003c/h4\u003e\n支持复制粘贴、拖拽上传，操作简单直观\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e📦 多种类型\u003c/h4\u003e\n支持文本和各类文件的分享\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🔒 安全机制\u003c/h4\u003e\n\n- IP 限制上传次数\n- 错误次数限制\n- 文件过期机制\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🎫 提取码分享\u003c/h4\u003e\n随机提取码，可自定义次数及有效期\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🌍 多语言支持\u003c/h4\u003e\n支持中文简体、繁体及英文\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🎭 匿名分享\u003c/h4\u003e\n无需注册登录，保护隐私\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🛠 管理面板\u003c/h4\u003e\n文件管理和系统配置\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e🐳 容器部署\u003c/h4\u003e\n支持 Docker 一键部署\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e💾 存储扩展\u003c/h4\u003e\n支持本地存储、S3 协议、OneDrive 等\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e📱 响应式设计\u003c/h4\u003e\n支持移动端访问\n\u003c/td\u003e\n\u003ctd align=\"center\"\u003e\n\u003ch4\u003e💻 终端支持\u003c/h4\u003e\n支持命令行下载\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## 🚀 快速开始\n\n### Docker 部署\n\n#### Docker CLI\n```bash\ndocker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:beta\n```\n\n#### Docker Compose\n```yml\nversion: \"3\"\nservices:\n  file-code-box:\n    image: lanol/filecodebox:latest\n    volumes:\n      - fcb-data:/app/data:rw\n    restart: unless-stopped\n    ports:\n      - \"12345:12345\"\nvolumes:\n  fcb-data:\n    external: false\n```\n\n### 手动部署\n\n1. 克隆项目\n```bash\ngit clone https://github.com/vastsa/FileCodeBox.git\n```\n\n2. 安装依赖\n```bash\ncd FileCodeBox\npip install -r requirements.txt\n```\n\n3. 启动服务\n```bash\npython main.py\n```\n\n## 📖 使用说明\n\n### 分享文件\n1. 打开网页，点击\"分享文件\"\n2. 选择或拖拽文件\n3. 设置过期时间和次数\n4. 获取提取码\n\n### 获取文件\n1. 打开网页，输入提取码\n2. 点击获取\n3. 下载文件或查看文本\n\n### 管理面板\n1. 访问 `/#/admin`\n2. 输入管理员密码 `FileCodeBox2023`\n3. 管理文件和配置\n\n## 🛠 开发指南\n\n### 项目结构\n```\nFileCodeBox/\n├── apps/           # 应用代码\n│   ├── admin/     # 管理后台\n│   └── base/      # 基础功能\n├── core/          # 核心功能\n├── data/          # 数据目录\n└── fcb-fronted/   # 前端代码\n```\n\n### 开发环境\n- Python 3.8+\n- Node.js 14+\n- Vue 3\n- FastAPI\n\n### 本地开发\n1. 后端开发\n```bash\npython main.py\n```\n\n2. 前端开发\n```bash\ncd fcb-fronted\nnpm install\nnpm run dev\n```\n\n## 🤝 贡献指南\n\n1. Fork 本项目\n2. 创建新分支 `git checkout -b feature/xxx`\n3. 提交更改 `git commit -m 'Add xxx'`\n4. 推送到分支 `git push origin feature/xxx`\n5. 提交 Pull Request\n\n## ❓ 常见问题\n\n### Q: 如何修改上传大小限制？\nA: 在管理面板中修改配置项 `uploadSize`\n\n### Q: 如何配置存储引擎？\nA: 在管理面板中选择存储引擎并配置相应参数\n\n### Q: 如何备份数据？\nA: 备份 `data` 目录即可\n\n更多问题请访问 [Wiki](https://github.com/vastsa/FileCodeBox/wiki/常见问题)\n\n## 📊 项目统计\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://hellogithub.com/repository/75ad7ffedd404a6485b4d621ec5b47e6\" target=\"_blank\"\u003e\u003cimg src=\"https://api.hellogithub.com/v1/widgets/recommend.svg?rid=75ad7ffedd404a6485b4d621ec5b47e6\u0026claim_uid=beSz6INEkCM4mDH\" alt=\"Featured｜HelloGitHub\" style=\"width: 200px; height: 45px;\" width=\"200\" height=\"45\" /\u003e\u003c/a\u003e\n\n![Repobeats](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg)\n\n[![Star History](https://api.star-history.com/svg?repos=vastsa/FileCodeBox\u0026type=Date)](https://star-history.com/#vastsa/FileCodeBox\u0026Date)\n\u003c/div\u003e\n\n## 📜 免责声明\n\n本项目开源仅供学习使用，不得用于任何违法用途，否则后果自负，与作者无关。使用时请保留项目地址和版权信息。\n","funding_links":["https://afdian.com/a/filecodebox"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvastsa%2Ffilecodebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvastsa%2Ffilecodebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvastsa%2Ffilecodebox/lists"}