https://github.com/rozek/sharedtextvalue
a small programming experiment for the Automerge Build Day/1
https://github.com/rozek/sharedtextvalue
Last synced: about 1 month ago
JSON representation
a small programming experiment for the Automerge Build Day/1
- Host: GitHub
- URL: https://github.com/rozek/sharedtextvalue
- Owner: rozek
- License: mit
- Created: 2024-03-19T17:21:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-20T16:19:48.000Z (about 1 year ago)
- Last Synced: 2025-01-29T20:29:07.381Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 2.03 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sharedTextValue #
a small programming experiment for the Automerge Build Day/1 ([live demo](https://rozek.de/automerge/sharedTextValue.html))

The code takes care of the various steps needed to load automerge and either create a new or open an existing document.
Once ready, automerge is used to share a single string (the "TextValue") - but not like in a shared text editor (that will be the next step) but in an LWW fashion - taking care that when several people are working on the same text, key strokes on one side won't disturb the input on another side.
> An important detail worth mentioning: the experiment has not been built using Vite or another bundler but uses my [Automerge bundle](https://github.com/rozek/automerge-bundle) which allows you to use Automerge for plain script elements.
If you want to see a live demo, just navigate to [https://rozek.de/automerge/sharedTextValue.html](https://rozek.de/automerge/sharedTextValue.html). Open it twice in two browser windows and see how changes in one window affect the other one - and vice versa.
## License ##
[MIT License](LICENSE.md)