rustpad icon indicating copy to clipboard operation
rustpad copied to clipboard

Make RustPad just-enough compatible with EtherPad URLs

Open ntninja opened this issue 1 year ago • 2 comments

Allows RustPad to work as a drop-in alternative for services that have basic EtherPad (popular collaborative document editing tool) integration using an IFrame

Really, it just extracts the two key pieces of information when invoked like:
https://path/to/rustpad/SomePadName?some=param&userName=AUserName&other=param
but that is enough to make it useful in the context of the “Collaborative Editing” (=EtherPad) support in the Jitsi Meet video conferencing solution. (SomePadName will be the name of the Jitsi Meet conference and AUserName the name of the currently logged in user.)

Based on https://github.com/ekzhang/rustpad/pull/75, no real dependency through.

ntninja avatar Jul 19 '24 14:07 ntninja

Interesting, I like the idea! Down to merge this if the CI works.

ekzhang avatar Jul 20 '24 01:07 ekzhang

I just found https://docs.etherpad.org/api/embed_parameters.html which documents the EtherPad parameter list and I found that aside from userName and the Pad name there is one more parameter with semantic overlap (userColor), so hue is now derived from that if it is set.

There are now also comments about the supported and unsupported parameters that should be helpful and I restructured the code to have all the URL handling in the now renamed useFromURL.ts rather than App.tsx.

Let me know what you think!

ntninja avatar Jul 23 '24 15:07 ntninja

Sorry it's been a few months @ntninja — I reevaluated my priorities and I don't think I can merge this at this time. Apologies. You might need to fork :(

ekzhang avatar Dec 31 '24 02:12 ekzhang

May I ask why the change in heart?

ntninja avatar Jan 01 '25 07:01 ntninja