Distributing extensions is fundamentally harder than distributing Kinode packages. This is because Kinode runs wasm which is system-independent: if you're running Kinode, it'll run packages of the same WIT version.

In contrast, extensions are native code. This means we immediately run into all the problems associated with running native code on different platforms:

  1. For interpreted, must have the proper interpreter version & packages.
  2. For compiled, must have the proper version of the compiler OR have access to a pre-compiled version appropriate for our platform.

We can make things easier for users, but I don't think we'll be able to make things 100% reliable. As such, its important to make the provider model work well so that there is a reliable fallback.

On the other hand, it might be reasonable to shoot for an 80/20 situation. If most users are hosted and we can build for that case, we should be able to do a reasonable job, since the platform will be very uniform (i.e. an Ubuntu docker container).

Open questions for extensions

Who is the target audience?

M-of-N or N-of-N?

What are security considerations?

E.g., do we want Kinode to be able to launch extensions? If so, we'll need to add a runtime module to do so. If not, some architectures are not possible, since the user has to start the extension manually.

The decision depends on who the target audience is. My instinct is towards not starting via Kinode, which works better for M-of-N. If aiming for N-of-N, Must start via Kinode for automation's sake.

Some proposed architectures

Kinode-started

  1. Integrate with app_store?

User-started

  1. Some command-line tooling. kit-like: browse, start, etc., different extensions. E.g.
    ext list nick.kino
    ext list foo:nick.kino
    ext get foo:nick.kino
    ext run foo:nick.kino --port 8080
    ext list running
    ext kill foo:nick.kino
    

Action items

Answer Open questions. Make a plan as to proposed architecture and start to flesh out that possibility.

Original gist on GitHub