cql icon indicating copy to clipboard operation
cql copied to clipboard

cqlplay: support multiple library execution

Open suyashkumar opened this issue 8 months ago • 1 comments

Regarding the discussion on #111, here's a quick working example illustrating one way we could support multiple library execution without saving any files on the server as per my comment (the server code is much simpler as well). This includes auto saving on the client side as well using localstorage, which we could also extend to the CQL/Data if we wanted (and have more robust ui around this).

There's a larger question of what should the playground become in the future (e.g. how can we host this somewhere central, or better yet can we compile to webassembly and run everything 100% locally for playground like activities, do we care about supporting "collaboration" and link sharing, etc).

For now, this should add a requested feature somewhat expediently.

Demo:

https://github.com/user-attachments/assets/d30f3a62-5471-49e1-aae9-e6b6fd7b09c8

suyashkumar avatar Apr 19 '25 22:04 suyashkumar

Going to mark this ready for review for now, since these changes were requested and seemed useful for people doing experimentation and prototyping.

suyashkumar avatar May 23 '25 23:05 suyashkumar