dan-smetana / gollab

Gollab is a library written in pure Go providing basic functionality needed to implement a collaborative editor similar to Google Docs or Office 365.
MIT License
2 stars 0 forks source link

examples available? #1

Open stevegt opened 2 years ago

stevegt commented 2 years ago

Hi Daniel!

Gollab looks promising, but I can tell you've been busy elsewhere. By any chance is the frontend source for https://editor.learningspoons.danslee.com/ laying around in public already somewhere? If so I might be able to do something with it in lieu of the gollab examples you had wanted to put together last year. The API between frontend and WASM bits in particular would be interesting, I think.

Thanks,

Steve

dan-smetana commented 2 years ago

Hi Steve!

It's great to hear you're interested in Gollab! I'll try to get back to you on this soon. I should be able to make a few changes to the source for https://editor.learningspoons.danslee.com/ and upload that.

The biggest problem is that it's too tightly bound to Codemirror, but it should still be a good starting point for you. The frontend code works with both Gollab compiled to WASM and ot.js, so I believe it's possible to skip the WASM part. Gollab compiled to WASM results in a binary that's a tad too big for my liking, so it is more of a proof of concept. You may have more luck with TinyGo, though that will require making some changes to the JS-WASM interface.

Daniel

stevegt commented 2 years ago

Oh! Didn't realize you were using Codemirror. Since you have your feet in both worlds, have you ever run across anything that works like Codemirror or Prosemirror in terms of being a building-block editor library but is written in Go? I'm not finding anything, been looking off and on for several days so far. Trying to decide whether it needs tackling now or should wait. I've been using tinygo on microcontrollers, watching the WASM efforts there.