sveltejs/sites

Fully encapsulated REPL sharing function

brunnerh opened this issue · 1 comments

It would be nice if the REPL had a share function like the one of the TypeScript playground, where the entire state/code is encoded in the URL.

Example link: https://www.typescriptlang.org/play?#code/MYewdgzgLgBBBuBTANlRMC8MDkheDcKS72A3EA

  • This would be nice for one-off REPLs that are just meant for quick demonstration purposes
  • Helps prevent link rot, as there is no link to a live data set that may be intentionally or unintentionally deleted by the owner

Assuming that this functionality does not disappear again, this is now implemented in the new playground.