HACKER Q&A
📣 minjsthrowaway

Minimal JavaScript for simple UIs with Python back end


Hi all,

My team is primarily using Python and SQL and works with financial data (prices, timeseries, reference data, etc). We need some simple UIs (have tried a ton of low/no-code solutions but don't really like many of them) but have a hard time actually evaluating all of the Javascript options out there. HTMX, alpine.js, and next.js all seemed interesting but I am actually pretty terrible at evaluating options. Ideally we would be able to use a FastAPI backend and have a datatable with graphs linked to the data rendered.

Something like https://perspective.finos.org/ would be perfect (but overkill) but honestly been having great difficulty getting the examples working


  👤 asimjalis Accepted Answer ✓
Is there a real time UI that you like, which is able to read data from a real timestream like Kinesis or Kafka? You could use Python to write into the stream and then see the results in the UI.

For wrappers around command line interfaces I use Gradio. That might not work so well for your use case which seems more real time.


👤 texodus
Maintainer of Perspective here - we have an enterprise version that does exactly what you ask for! https://prospective.co/

👤 whinvik
Would Streamlit not be enough. Why do you need Javascript?

The only issues with Streamlit is whole page refreshes but there are ways to get around that.