sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.44k stars 714 forks source link

Frontend refactor #625

Open sosedoff opened 1 year ago

sosedoff commented 1 year ago

Frontend code is seriously dated and needs a fresh rewrite, using some minimalistic js framework.

A few things to consider:

gedw99 commented 1 year ago

consider the htmx approach

https://htmx.org/

https://github.com/topics/htmx?l=go

Davincible commented 1 year ago

I like Lit HTML elements (native web components) with pure TS; https://lit.dev/

Both Adobe and IBM have their component libraries available as Lit HTML elements, I think that would look cool

Nice video on the topic; https://www.youtube.com/watch?v=x9YDQUJx2uw

nelsonic commented 11 months ago

Upvote for htmx and ideally have navigation + title too. so the URL changes from http://localhost:8081/# to reflect the table that is being viewed. This would help with bookmarking and when multiple tabs.

carlqt commented 4 months ago

Is this still up for debate? Svelte looks great. The library is just 1.7kb total size

sosedoff commented 3 months ago

This issue is still relevant, although i would not call this "up for debate". Svelte looks promising, but i have not done any frontend work in a while so not sure if it'll be a right choice. But to be fair, at this point any framework is going to be a better choice than the current stack (html+jquery).

azan-n commented 1 month ago

I'll be happy to help with this, I use pgweb every day. In my opinion, the amount of readily available, accessible, batteries-included, headless (unthemed so you can make them your own) components available in React makes it a viable option to build complete UIs, fast (IF, there is minimal state to handle).

sosedoff commented 1 month ago

@azan-n I specifically do not want react in this project.