Settings

Theme

Show HN: An open-source Spotlight tool connecting to ChatGPT

github.com

1 points by gusye 2 years ago · 4 comments

Reader

gusyeOP 2 years ago

I really enjoy using some launch tools, like Spotlight, Alfred, and so on. I love the feeling of being able to switch applications without having to leave the keyboard. Recently, I've been looking for a way to directly chat with ChatGPT in a Spotlight-like app, but I haven't found any open-source solutions. I have an OpenAI API key, and I just want something that I can use by simply entering the key and cover my own cost. So I spent a few days using Electron to create a simple cross-platform version. Its functionality is very simple, just a shortcut key to invoke Spotlight, where you can input your question and automatically copy the answer. Pressing the shortcut key again will bring you back to where you were working before. I really like the feeling of quick access, and this little tool has also saved me some time. It also can save customized prompts.

arshxyz 2 years ago

As you mentioned you like Alfred, why did you choose to build a standalone app as opposed to an Alfred extension? Since you use Electron: spinning up a browser every time I need a quick-launch bar seems a little overkill.

Anyway, the UI looks very neat! Starred the repo and will try playing with it.

  • gusyeOP 2 years ago

    Thank you for your reply! Indeed, creating an extension for Alfred or Raycast would be better. However, personally, I feel that it may not be fast enough since it would require some command prompts to enter the question and answer mode. As for Electron, I agree with what you said. Although I haven't observed too many lagging issues at the moment, the current app package size has already reached 90MB...

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection