danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
25.51k stars 2.71k forks source link

[Feature request]: Fabric GUI that is cross platform and seperate of the server #905

Open ikcoil01 opened 2 months ago

ikcoil01 commented 2 months ago

What do you need?

I want to be able to connect a gui seperately from the server for instance I run my fabric server on fedora, it would be nice if I could access the gui via a web page or a electron app etc.

ikcoil01 commented 2 months ago

The gui im referencing is here https://www.youtube.com/watch?v=aEdS8ocmOZs

gedw99 commented 2 months ago

I use gio go this .

the cli commands are sent over nats .

the gui just then talks to nats .

you can run many fabric servers this way

thomaswhite commented 2 months ago

@gedw99 could you please give a link to gio

gedw99 commented 2 months ago

@gedw99 could you please give a link to gio

I use these 2 frameworks for projects. Both may be suitable ...

The cool thing is that is golang for the GUI, and so you are more productive if your backend and front end is golang. Less split brain coding :)

https://github.com/gioui

GIO compiles to Web, Desktop, Mobile.

Examples:

https://git.sr.ht/~gioverse/skel/tree/main/item/example/readme/stream2/main.go is a demo of 2 windows that are real time synchronised.

https://github.com/chapar-rest/chapar is another example. But it has no real time sync, which you need for an AI Prompt system.

--

The other option is of course htmx for web GUI.

https://datastar.fly.dev/

On the main page is the todo demo. See how the todo demo is real time synchronised by opening 2 browser tabs. Its uses NATS under the hood and uses the SSE transport.

https://github.com/delaneyj/datastar