# FileCodeBox **Repository Path**: natsukry/FileCodeBox ## Basic Information - **Project Name**: FileCodeBox - **Description**: No description available - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-10 - **Last Updated**: 2025-09-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FileCodeBox
FileCodeBox Logo

Share text and files anonymously with a passcode, like picking up a package

[![GitHub stars](https://img.shields.io/github/stars/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/stargazers) [![GitHub forks](https://img.shields.io/github/forks/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/network) [![GitHub issues](https://img.shields.io/github/issues/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/issues) [![GitHub license](https://img.shields.io/github/license/vastsa/FileCodeBox)](https://github.com/vastsa/FileCodeBox/blob/master/LICENSE) [![QQ Group](https://img.shields.io/badge/QQ%20Group-739673698-blue.svg)](https://qm.qq.com/q/PemPzhdEIM) [![Python Version](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://www.python.org) [![FastAPI](https://img.shields.io/badge/FastAPI-0.68+-green.svg)](https://fastapi.tiangolo.com) [![Vue Version](https://img.shields.io/badge/Vue.js-3.x-brightgreen.svg)](https://v3.vuejs.org) [็ฎ€ไฝ“ไธญๆ–‡](./readme.md) | [Deployment Guide](https://github.com/vastsa/FileCodeBox/wiki/Deployment-Guide) | [FAQ](https://github.com/vastsa/FileCodeBox/wiki/FAQ)
## ๐Ÿ“ Introduction FileCodeBox is a lightweight file sharing tool developed with FastAPI + Vue3. It allows users to share text and files easily, where recipients only need a passcode to retrieve the files, just like picking up a package from a delivery locker. ## ๐Ÿ–ผ๏ธ Preview

ๅ‰็ซฏไป“ๅบ“2024 ๅ‰็ซฏไป“ๅบ“2023      ๆผ”็คบ็ซ™็‚น

### New Interface
File Upload Text Share
File Management System Settings
Mobile View Dark Mode
Internationalization Responsive
### Classic Interface
Home Upload
Management Settings
Share Download
## ๐ŸŽฏ Use Cases

๐Ÿ“ Temporary File Sharing

Quick file sharing without registration

๐Ÿ“ Quick Text Sharing

Share code snippets and text content

๐Ÿ•ถ๏ธ Anonymous Transfer

Privacy-protected file transfer

๐Ÿ’พ Temporary Storage

File storage with expiration time

๐Ÿ”„ Cross-platform Transfer

Quick file transfer between devices

๐ŸŒ Private Share Service

Build your own file sharing service
## โœจ Core Features

๐Ÿš€ Lightweight

Based on FastAPI + SQLite3 + Vue3 + ElementUI

๐Ÿ“ค Easy Upload

Support copy-paste and drag-drop

๐Ÿ“ฆ Multiple Types

Support text and various file types

๐Ÿ”’ Security

- IP upload limits - Error attempt limits - File expiration

๐ŸŽซ Passcode Sharing

Random codes with customizable limits

๐ŸŒ Multi-language

Support for Simplified Chinese, Traditional Chinese, and English

๐ŸŽญ Anonymous

No registration required

๐Ÿ›  Admin Panel

File and system management

๐Ÿณ Docker

One-click deployment

๐Ÿ’พ Storage Options

Local, S3, OneDrive support

๐Ÿ“ฑ Responsive

Mobile-friendly design

๐Ÿ’ป CLI Support

Command-line download
## ๐Ÿš€ Quick Start ### Docker Deployment #### Docker CLI ```bash docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:beta ``` #### Docker Compose ```ymlfix version: "3" services:s file-code-box: image: lanol/filecodebox:latest volumes: - fcb-data:/app/data:rw restart: unless-stopped ports: - "12345:12345" volumes: fcb-data: external: false ``` ### Configure reverse proxy (Nginx example) Please note that the following configurations must be added to ensure proper handling of client IP and proxy requests: ```nginx location / { proxy_set_header X-Real-IP $remote_addr; #Set real client IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:12345 ; } ``` ### Manual Deployment 1. Clone the repository ```bash git clone https://github.com/vastsa/FileCodeBox.git ``` 2. Install dependencies ```bash cd FileCodeBox pip install -r requirements.txt ``` 3. Start the service ```bash python main.py ``` ## ๐Ÿ“– Usage Guide ### Share Files 1. Open the website, click "Share File" 2. Select or drag files 3. Set expiration time and count 4. Get the passcode ### Retrieve Files 1. Open the website, enter passcode 2. Click retrieve 3. Download file or view text ### Admin Panel 1. Visit `/admin` 2. Enter admin password 3. Manage files and settings ## ๐Ÿ›  Development Guide ### Project Structure ``` FileCodeBox/ โ”œโ”€โ”€ apps/ # Application code โ”‚ โ”œโ”€โ”€ admin/ # Admin backend โ”‚ โ””โ”€โ”€ base/ # Base functions โ”œโ”€โ”€ core/ # Core functions โ”œโ”€โ”€ data/ # Data directory โ””โ”€โ”€ fcb-fronted/ # Frontend code ``` ### Development Environment - Python 3.8+ - Node.js 14+ - Vue 3 - FastAPI ### Local Development 1. Backend development ```bash python main.py ``` 2. Frontend development ```bash cd fcb-fronted npm install npm run dev ``` ## ๐Ÿค Contributing 1. Fork the project 2. Create your feature branch `git checkout -b feature/xxx` 3. Commit your changes `git commit -m 'Add xxx'` 4. Push to the branch `git push origin feature/xxx` 5. Open a Pull Request ## โ“ FAQ ### Q: How to modify upload size limit? A: Change `uploadSize` in admin panel ### Q: How to configure storage engine? A: Select storage engine and configure parameters in admin panel ### Q: How to backup data? A: Backup the `data` directory For more questions, visit [Wiki](https://github.com/vastsa/FileCodeBox/wiki/ๅธธ่ง้—ฎ้ข˜) ## ๏ฟฝ๏ฟฝ Project Statistics and Analytics
Featured๏ฝœHelloGitHub ![Repobeats](https://repobeats.axiom.co/api/embed/7a6c92f1d96ee57e6fb67f0df371528397b0c9ac.svg) [![Star History](https://api.star-history.com/svg?repos=vastsa/FileCodeBox&type=Date)](https://star-history.com/#vastsa/FileCodeBox&Date)
## ๐Ÿ“œ Disclaimer This project is open-source for learning purposes only. It should not be used for any illegal purposes. The author is not responsible for any consequences. Please retain the project address and copyright information when using it.