Podginator / KoboOmnivoreConverter

A Proxy to enable the Kobo Clara to use Omnivore over Pocket for it's articles.
64 stars 9 forks source link

Support running on mulit platform and mulit users #10

Closed EINDEX closed 1 week ago

EINDEX commented 3 weeks ago

Hi @Podginator

Thank you for making this repo, which is amazing.

I want to deploy it on Cloudflare Worker, so I switched the express to hono to support all common js running time and it working well.

Which allows users to deploy it anywhere, eg. Vercel, Cloudflare workers, deno, etc.

And I add access_token to the client side, letting's server know who is accessing data.

https://github.com/EINDEX/KoboOmnivoreConverter/blob/1679c52721a07a0211b03786134fe6639ff36da9/hook/pocket.cc#L58

This change makes the server become stateless, there is no possibility to see other user information, except the server owner. https://github.com/Podginator/KoboOmnivoreConverter/blob/3c24a89ae1c23f5d077340dbd01b4ffad7415d26/index.ts#L14-L20

[!WARNING]
If you are using other's server, the owner can see your access_token & data, if they want.

And there is my POC server on Cloudflare Worker. https://omnivore-kobo.eindexli.workers.dev

[!WARNING]
The POC server will stop working in the end of this year.