TranslucentTB icon indicating copy to clipboard operation
TranslucentTB copied to clipboard

Feature suggestion: API for other programs to control TTB

Open olliecheng opened this issue 7 years ago • 4 comments

Suggestion for feature: implement a background web server on a specified port which exposes a RESTful API which allows for other applications to control TTB (with user permission, of course).

olliecheng avatar Feb 12 '18 05:02 olliecheng

Meh, I think this may add too much bloat. I think the next release (after V4) could go this route, but then we will want to decouple the current UI and the core part.

emmatyping avatar Feb 12 '18 07:02 emmatyping

It doesn't necessarily have to be a RESTful API (even though that would be easiest to control from within Node.JS or Python), but a programmable interface would be nice. Also, moving priority down to low as there probably isn't much demand for such a feature. Of course, if anyone reading feels such a feature would be useful feel free to tell us :)

olliecheng avatar Feb 12 '18 12:02 olliecheng

Implementing a named pipe from the hook to a client program would be ideal. This way, we could have diverse client programs, and allow the hook to live without a client running either.

sylveon avatar Feb 12 '18 12:02 sylveon

I agree with that. (By the way, this should be implemented after #134, as the suggestion would be best done with the listening being done by a hook.) After such an implementation, should we rewrite the client to make use of the new named pipe API?

olliecheng avatar Feb 13 '18 07:02 olliecheng