-
Notifications
You must be signed in to change notification settings - Fork 17
feature: add simpleton-client to cross platform text collaboration over braid #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1
Are you sure you want to change the base?
Conversation
There are two options we can consider:
|
Maybe there's a third possible option: an npm:// protocol handler npm:// would just resolve to the local node_modules folder, keeping the client light-- would this pattern work in peersky's architecture? e.g. i know most of the braid research demos to date are generally raw http handlers or express handlers, with critical node_modules just served as url routes for easy access to avoid builds. the npm: protocol pattern would also match how deno is approaching compatibility; https://docs.deno.com/runtime/fundamentals/node/ |
I like the approach, but I have two concerns to address:
We can implement Files: |
@akhileshthite I just updated this PR to have the braid-markdown component added, which will syncronize a with a markdown rendered view of the text in a two column layout. this shows how to decoratively link two components using html attributes-- check the sync function in simpleton-client, which references the data-script and data-action attributes sent from the braid-markdown component-- which also uses import.meta.url, which resolves as the location of the file as served by peersky:// |
Related Issue (if any)
Adds simpleton-client, a custom element for synchronizing text across braid-http.
Currently, this should be regarded as a functional WIP as it depends on https://esm.sh for resolving node_modules-- how should we plumb npm dependencies into the client?
Closes: #[issue number that will be closed through this PR]
Describe the add-ons or changes you've made
Type of change
How Has This Been Tested?
visited the plan1 page and https://sillyz.computer/app/simpleton-client?src=/example and edited text across the boundaries
Checklist:
Screenshots (Only for Front End and UI/UX Designers)