ClipBox
ClipBox is an exquisite and efficient temporary file sharing station, similar to FileCodeBox, supporting file sharing, clipboard sharing, and short link functionality. Additionally, it integrates a unique examination clock feature that allows setting subjects and times based on a configuration file, and supports NTP time synchronization.
Install / Use
/learn @MeTerminator/ClipBoxREADME
ClipBox
ClipBox is an exquisite and efficient temporary file sharing station, similar to FileCodeBox, supporting file sharing, clipboard sharing, and short link functionality. Additionally, it integrates a unique Exam Clock feature, allowing users to set exam subjects and times based on a configuration document and supporting NTP time synchronization.
Features
- Instant File Transfer: Achieves rapid file upload through dual hash verification on the frontend and backend, ensuring data security.
- Clipboard Sharing: Supports quick sharing of text content and cross-device access.
- Short Link Service: Can convert long URLs into easy-to-share short links.
- Exam Clock: A customizable exam countdown clock that supports NTP network time synchronization to ensure precise timing.
- Lightweight and Efficient: Built on Flask, it has low resource consumption and fast response times.
- Dark/Light Mode Toggle: Supports switching between dark and light modes to suit different environments.
Demo
| Home Page | File Upload | Text Sharing | | --- | --- | --- | | <img src=".github/images/img1.png" alt="Home Page" width="100%"> | <img src=".github/images/img2.png" alt="File Upload" width="100%"> | <img src=".github/images/img3.png" alt="Text Sharing" width="100%"> |
| Retrieval Code | Exam Clock | Clock Config Doc | | --- | --- | --- | | <img src=".github/images/img4.png" alt="Retrieval Code" width="100%"> | <img src=".github/images/img5.png" alt="Exam Clock" width="100%"> | <img src=".github/images/img6.png" alt="Clock Config Doc" width="100%"> |
Use Cases
- Temporary File Transfer: Quickly transfer files between different devices without the need to log in or install heavy applications.
- Code Snippet Sharing: Share code snippets, configuration files, or logs with colleagues or friends.
- Online Exam Timing: Provide a precise, unified network countdown clock for online exams or simulated tests.
- Temporary Link Sharing: Convert complex long links into concise short links for easy sharing on social media or messaging apps.
Technical Stack
- Backend: Flask, Flask-SQLAlchemy
- Database: MySQL (connected via PyMySQL)
- Frontend: Native HTML, CSS, JavaScript
- Others: NTP
Quick Start
Environment Requirements
- Python 3.x
- MySQL
Local Development
-
Clone the Repository:
git clone https://github.com/MeTerminator/ClipBox.git cd clipbox -
Install Dependencies:
pip install -r requirements.txt -
Configure the Application:
- Modify the database connection information and other configurations in
app/config.pyas prompted.
- Modify the database connection information and other configurations in
-
Run the Application:
python main.pyThe application will be running at
http://127.0.0.1:5328.
Deployment Guide
For stable operation in a production environment, it is recommended to use a WSGI server for deployment.
Option 1: Gunicorn (for Linux/macOS)
-
Install Gunicorn:
pip install gunicorn -
Run the Application:
gunicorn -w 4 -b 0.0.0.0:5328 'app:create_app()'-w 4: Starts 4 worker processes.-b 0.0.0.0:5328: Binds to port 5328 on all network interfaces.
Option 2: Waitress (for Windows)
-
Install Waitress:
pip install waitress -
Create a
run.pyfile:from waitress import serve from app import create_app app = create_app() if __name__ == '__main__': serve(app, host='0.0.0.0', port=5328) -
Run the Application:
python run.py
Contribution Guide
We welcome contributions in any form!
- Report Bugs: If you find a bug, please submit the details through GitHub Issues.
- Feature Suggestions: If you have ideas for new features, feel free to propose them via Issues.
- Code Contribution: Please follow these steps:
- Fork this repository.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
License
This project is open-sourced under the MIT License.
- MeT-Home - MeTerminator's Homepage.
Related Skills
openhue
340.5kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
340.5kElevenLabs text-to-speech with mac-style say UX.
weather
340.5kGet current weather and forecasts via wttr.in or Open-Meteo
tweakcc
1.5kCustomize Claude Code's system prompts, create custom toolsets, input pattern highlighters, themes/thinking verbs/spinners, customize input box & user message styling, support AGENTS.md, unlock private/unreleased features, and much more. Supports both native/npm installs on all platforms.
