Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/judasgutenberg/webclipboard
A web-based clipboard system for privately sending messages to yourself.
https://github.com/judasgutenberg/webclipboard
no-frameworks vanilla-javascript vanilla-js web-clipboard
Last synced: about 1 month ago
JSON representation
A web-based clipboard system for privately sending messages to yourself.
- Host: GitHub
- URL: https://github.com/judasgutenberg/webclipboard
- Owner: judasgutenberg
- Created: 2023-01-07T20:37:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T18:50:46.000Z (5 months ago)
- Last Synced: 2024-08-04T20:38:56.680Z (5 months ago)
- Topics: no-frameworks, vanilla-javascript, vanilla-js, web-clipboard
- Language: PHP
- Homepage:
- Size: 63.5 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebClipBoard
This is a clipboard system to use primarily for transferring small amounts of text data (the sort that would be in a clipboard) between computers or other networked devices. This is similar to other web-based clipboards, but the advantage is that the code would run on a server you control. This way you can keep your clips around indefinitely, revisit old clips, and even use it as a kind of cloud-based journal. It has a simple login system so that multiple people can use it and keep their clips separate. In this way, it's like a Slack channel where you communicate with yourself. This was a feature I used all the time on Slack, and when my employer switched to Microsoft Teams, I missed it. (Microsoft Teams later implemented this functionality.) The advantage with this system is that all you need is a web browser to use it and aren't dependent on a huge clunky application that either needs to be installed or won't run at all (if you have older hardware). It wouldn't take too much work to add chat functionality to this, allowing you to send messages to other people on the system. Then it would have most of what you would need for your own private Slack-like system.
The clipboard also supports file uploads in addition to simple text and preserves the filename of the uploaded file.
Passwords are encrypted and new accounts are easily created (there is no email verification!).
None of this code has pretenses of being any more than it is. It's very straightforward and imperative.
Note: like all applications that store user data, this system uses cookies.To use this, you will need to run the WebClipBoard.sql file on a MySQL server you control.
Create new accounts from within the system so the passwords will be encrypted correctly. Otherwise you will need to encrypt the passwords using the PHP function crypt(YOUR_PASSWORD, $encryptionPassword) and then run the following from within MySQL:
INSERT INTO `user`(email, password, created) VALUES ('[email protected]', 'your_encrypted_password', '2023-01-01');
Then you will need to point to your database in a config.php file in the root with this structure:
<?php$servername = "localhost";
$username = "your_username";
$database = "your_database";
$password = "your_password";
$encryptionPassword = "your_cookie_encryption_password";
$cookiename = "your_cookie_name";?>
To see this in action (and create your own clipboard hosted on my server until I stop paying the bills), go here:http://randomsprocket.com/cb/index.php
If you do this, keep in mind that I can read your clipboard's contents, though your password is encrypted beyond my ability to recover it.