server
server copied to clipboard
[FR] Server API
Any plans to offer an API for the server to allow makers integrate into other tools?
Nothing in particular. The code is all open so it's possible to run it easily on your own servers. Of course figuring out the environment stuff does take time.
What kind of problems are you looking to solve with an API? Maybe I can open up stuff based on the usecase.
Command line tool, wrapper libraries for other languages, automation scripts, Apple Shortcuts/Applescript , plugins to other markdown applications. I would be wanting to use an API on self hosted anyway.
I have been thinking about this and one approach we can do is to turn the create_deck script into a web server. It's already using JSON for configuring so exposing that, refactoring and providing more flexibility should be good. I am not really a Python guy so open to hear your thoughts if you have any suggestions on tools / frameworks to use. I want to play with FastAPI but codegen using OpenAPI spec is also tempting.
rought notes from talking with @alpkaanaksu on what to expose
{
title: string;
description: string;
explanation: {
title: string;
logo: string;
description: string;
externalLink: string;
}
connection: unknown;
// Where does the input come from
// How is it handled
}