News for hackers. Stuff that matters.

Ask HN: 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

( 3 comments | 2 points | on HN )
Re:Ask HN: Minimal JavaScript for simple UIs with Python bac... by asimjalis on Sunday November 26, 2023 @04:04PM (#38425019)
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.

Re:Ask HN: Minimal JavaScript for simple UIs with Python bac... by whinvik on Sunday November 26, 2023 @05:41PM (#38425813)
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.

Re:Ask HN: Minimal JavaScript for simple UIs with Python bac... by texodus on Tuesday November 28, 2023 @11:14AM (#38447314)
Maintainer of Perspective here - we have an enterprise version that does exactly what you ask for! https://prospective.co/