TextRelay is a minimal open-source tool for quickly sharing text or snippets between environments.
It was designed for situations where developers work inside restricted systems (such as VMs or secure environments) where copy–paste or external file transfer is difficult.
TextRelay allows users to paste any text, generate a short ID, and retrieve that text from another machine using the same ID.
The tool is intentionally lightweight and runs on basic shared hosting using PHP.
- Share text or snippets using a short ID
- Lightweight and fast
- No login required
- File-based storage (no database needed)
- Works on shared hosting
- Automatic snippet expiration (24 hours)
- Paste text or a snippet
- Click Generate Share ID
- Share the generated ID
- Retrieve the snippet using the ID
textrelay
│
├── index.html
├── script.js
├── style.css
│
├── api
│ ├── save.php
│ └── get.php
│
└── storage
You only need PHP installed.
Start the built-in PHP server:
php -S localhost:8000
Then open:
http://localhost:8000
TextRelay is designed to run on simple hosting environments such as:
- Hostinger shared hosting
- Apache / PHP servers
- Local PHP development servers
Upload the project files to your web root (for example public_html) and ensure the storage directory is writable.
TextRelay is intentionally simple and designed for internal use.
Current protections include:
- snippet size limit (100KB)
- ID validation
- filesystem-based storage
- automatic expiration
This tool should not be used for sensitive or confidential information.
Contributions are welcome.
If you would like to contribute:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
See CONTRIBUTING.md for details.
This project is licensed under the MIT License.
See the LICENSE file for details.