Skip to content

karthikshetty26/TextRelay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextRelay

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.


Features

  • 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)

Example Workflow

  1. Paste text or a snippet
  2. Click Generate Share ID
  3. Share the generated ID
  4. Retrieve the snippet using the ID

Project Structure

textrelay
│
├── index.html
├── script.js
├── style.css
│
├── api
│   ├── save.php
│   └── get.php
│
└── storage

Running Locally

You only need PHP installed.

Start the built-in PHP server:

php -S localhost:8000

Then open:

http://localhost:8000

Deployment

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.


Security Notes

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.


Contributing

Contributions are welcome.

If you would like to contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

See CONTRIBUTING.md for details.


License

This project is licensed under the MIT License.

See the LICENSE file for details.

About

A minimal tool for quickly sharing text or snippets between environments using short IDs.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors