Materials-Data-Science-and-Informatics / somesy

A CLI tool for synchronizing software project metadata
https://materials-data-science-and-informatics.github.io/somesy/main/
MIT License
12 stars 2 forks source link

Interactive somesy demo using pyodide to run somesy in the browser #78

Open apirogov opened 8 months ago

apirogov commented 8 months ago

It would be a nice feature to include in the Github Pages if there would be a view with code text boxes (somesy input on the left, tabbed different target formats on the right and a somesy sync button).

This could be realized using pyodide, one can also load and save files from/to a virtual file system in the browser, see e.g. here.

pydantic 2 does not work as-is with pyodide because of the Rust-based core, but there exist (currently inofficial) wheels for wasm, see here.

Once somesy successfully loads in the browser, building a little demo page would not be difficult using a little bit of glue code.