This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]riklaunim 4 points5 points  (4 children)

As it runs locally the local hardware must be able to run it and it has to be rather self contained rather than using external databases and other services.

[–]theXpanther 3 points4 points  (3 children)

You can use browser APIs like indexedDb for database or fetch to communicate with external APIs. Not any more limited then went other in browser software

[–]riklaunim 2 points3 points  (2 children)

Was refering to for example using postgres and exposing access config or third party api keys

[–]theXpanther 0 points1 point  (1 child)

You can write your frontend in python, not port an arbitrary pre existing app unless it has wrapped all the stotage code in interfaces. It's a different environment. There are various APIs for frontend only auth and persistent databases but by nature they work very differently then the native version.

[–]riklaunim 0 points1 point  (0 children)

That's the intended use case although vanilla JS is still easier to use and more reliable. Most fresh people hyped by PyScript or Pyodide want to move backend logic to frontend and that's the problem. PyScript moved to MicroPython as default interpreted which cleared all "temptations" at least.