Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Question]: ui / gui

Open sosacrazy126 opened this issue 1 year ago • 12 comments

What is your question?

Is there any update on the UI/GUIs for Fabric? I understand that the developer working on it is a doctor and quite busy, but I would like to offer my assistance if possible. Could you provide more insights on this?

sosacrazy126 avatar Nov 14 '24 18:11 sosacrazy126

Ditto. I've started a home project to serve Fabric on my Mac with an iOS app front end. But can't help thinking I'm reinventing the wheel. Is there a place where like minded people can discuss this?

garkpit avatar Nov 18 '24 08:11 garkpit

I would really like to contribute to this project. What specific UI/GUI functionalities were you referring to? Please forgive me as I'm just getting to know this project and am not very familiar with it yet.

igophper avatar Nov 18 '24 09:11 igophper

@sosacrazy126 @igophper @garkpit It slid under the radar a bit, but the UI was release about 5-6 days ago. See here: https://github.com/danielmiessler/fabric/pull/1165

SamAcctX avatar Dec 02 '24 19:12 SamAcctX

Very nice!

garkpit avatar Dec 05 '24 07:12 garkpit

@SamAcctX @johnconnor-sec Wow! Really nice! You've got 3 of my favourite things there - Svelte, Obsidian, and Fabric. I've just started playing with it. Got the Obsidian vault opened and added a blog entry - nice! Haven't quite worked out the 'run Svelte components within your markdown (svx)' - but that sounds great. Wish I had more time to play :)

Is there a roadmap (url)? Would you like help with anything?

I'm going to get this working on my LAN so I can use it from my iPad & iPhone. High on my todo list is to write a simple iOS app front end for this. You've done the REST API - great!

My very brief 'played with it for 30 minutes' wishlist: View response markdown well formatted Copy response to Obsidian File upload (e.g. extract_wisdom from my pdf file)

Summary: High praise! And I bought you a coffee :)

garkpit avatar Dec 05 '24 07:12 garkpit

@garkpit thank you! The response markdown formatting is completed. A file upload button has been added, working on the logic. Same for 'add to posts/obsidian' button. There are more updates that I'll push soon

Just FYI, the buymeacoffee is a placeholder for your account. Be sure to set one up for yourself.

johnconnor-sec avatar Dec 05 '24 09:12 johnconnor-sec

@johnconnor-sec Hey! That's great news. Looking forward to it. Many thanks!

garkpit avatar Dec 05 '24 09:12 garkpit

@johnconnor-sec - Been playing around with the UI and it's looking great! Here are my notes so far:

The Youtube Transcript does some weird HTML escaping in the output text - most specifically with the ' (apostrophe) character showing as '. Example: what's up guys let me show you the action I got going on today.... It looks like a double-escape to me... First the apostrophe is escaped to ' and then it escapes the & character to &.

I was having issues with the chat fully obeying the prompt (especially regarding formatting the output). I was looking at the Fabric API for chat completions and it looks like it has a hard-coded token limit of 2048 tokens, so I'm thinking that prompt truncation is likely kicking in, especially with some longer prompts/inputs. I did some testing and it should be noted that the outputs are definitely different when using the same input, template, and model using the CLI (works as expected) vs this UI and the the Fabric API directly via Postman (both output equivalent responses improperly formatted), so I feel this is most likely an issue with the API and not the UI client.

Lower on the priority list, but I'd love a write-up on how to customize the theme colors. I got pretty far using this to generate a new theme file: https://www.skeleton.dev/docs/generator and removing the 2 gradient functions in web/src/routes/+layout.svelte (lines 28 and 31), but the pattern-select and model-select drop-downs I'm still having trouble getting to work right.

SamAcctX avatar Dec 05 '24 16:12 SamAcctX

I was going to ask about changing the theme too 😆

garkpit avatar Dec 06 '24 18:12 garkpit

@johnconnor-sec How's it going? Just wondering when the next update is coming out? If there's a beta branch let me know!

garkpit avatar Dec 11 '24 06:12 garkpit

@garkpit @SamAcctX https://github.com/danielmiessler/fabric/pull/1218

sosacrazy126 avatar Dec 20 '24 14:12 sosacrazy126

@garkpit @SamAcctX https://github.com/danielmiessler/fabric/pull/1218

Nice one. Looking forward to trying it. Logs screenshot - logging at 3am?! The mark of dedication ;)

garkpit avatar Dec 20 '24 14:12 garkpit

I'm closing this. You can use the Svelte GUI, instructions are in the README.

More detailed instructions exist in the web/README.

ksylvan avatar Aug 12 '25 02:08 ksylvan