embed typescript playground to web page

some programming language guides like the rust book lets you directly edit and run code in their docs, would it be possible for deno to do this in client-side? i'm planning to create a blog in deno and being able to run code snippets inside posts would be helpful. https://doc.rust-lang.org/book/ch01-02-hello-world.html
theoretically it's just JS so I don't see why not you'd have to write a shim layer for the Deno.* apis that's a fantastic idea though thinking about how to create a "Learn Deno from Zero" site

Looking for more? Join the community!