Runnable code snippets

Each snippet includes a small fixture so you can see it work. Open it in the editor to run, change and keep it.

Loading the editor…

How snippets open

“Open in the editor” adds the snippet as a new file in your home project and selects it. Only the snippet’s id travels in the link; your own code is never put in a URL. JavaScript and TypeScript snippets run in the Worker, Python ones in the optional Pyodide runtime and SQL ones in SQLite.

Questions

Can I use these snippets in my projects?

Yes. They are short, original examples you can copy freely.

Can I save my own snippets?

Inside the editor every file is saved locally; keep a “snippets” project for reusable code. Typing a snippet name in the editor also offers built-in completions such as log, afn and fetchjson.