![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2025
Device: Kindle (10th Generation) G090VB
|
![]()
I am developing a Tailscale plugin to create an HTTP proxy. The purpose of this proxy is to connect KOReader to an ODPS server on my local network via VPN. This development is quite challenging (perhaps because I'm not a Lua developer) without comprehensive documentation. I have already looked at the /koreader/plugins and koreader/contrib plugins. I also have the code loaded into an AI, which provides responses based on it.
Is there any official plugin documentation available? P.S. Example of the problem: I need to put a plugin button on the network tab, similar to the SSH and Wi-Fi buttons. I was stuck on this for a day until I found the AirPlane Mode plugin and saw it uses sorting_hint = "network". (Please excuse me if my English isn't perfect, it's not my first language.) |
![]() |
![]() |
![]() |
#2 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
IIRC tailscale is a frontend for wireguard, which is a kernel module.
In order for your plugin to use that feature you will need kernel support, which makes your plugin unable to work on most devices (kindles, kobos, pocketbooks...) It should work on the desktop if you interface with userspace tools (ie: wg-quick) but there're better ways to use a vpn there. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
You can develop plugins like you would develop a core feature. General "developer documentation" is rather sparse. It is autogenerated by `luadoc` based on comments. Only a subset of functions are docummented. tl;dr: you'll need to read the source code of the widgets you're using. |
|
![]() |
![]() |
![]() |
#4 | ||
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2025
Device: Kindle (10th Generation) G090VB
|
Quote:
If you're curious about how I did the Tailscale part, there's a way for me to generate an HTTP proxy that the plugin automatically adds to KOReader's proxy when active (I had insurmountable bugs, like the header it can't send via this proxy, for example). P.S.: It works well, I tested it with Calibre Web and Komga; I haven't tested Kavita, but it should work. I still need to find out if KOReader Sync works; overall, it's working well. Quote:
|
||
![]() |
![]() |
![]() |
#5 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Ahh, socks5. That makes sense. Thanks for the follow up!
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kobo development documentation | nutustru | Kobo Developer's Corner | 0 | 03-16-2022 12:09 PM |
Plugin development documentation | dowobeha | Plugins | 1 | 09-03-2021 02:12 PM |
[Metadata Source Plugin] browser documentation | Crisppr.cas9 | Plugins | 1 | 12-18-2020 11:34 PM |
MOBI development documentation | Gabius | Kindle Developer's Corner | 4 | 09-14-2014 04:25 AM |
Development documentation question (basic) | Coleccionista | Development | 5 | 03-01-2011 04:07 PM |