Repository navigation
Plugins are coming #215
Gamer92000
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This project keeps growing, and so does the list of things people want their Echo to do. Some things are too niche, some are better written by someone who know the problem better than me, and every new feature makes the core a little bigger and a little harder to keep reliable.
Thus, plugins are coming.
What is a plugin?
A plugin is a small program that runs beside hassmic on your Echo. It is not a script inside hassmic. Each plugin runs in a sandbox: it has its own user, a strict filter on what it may ask the system for, limits on memory and CPU, and none of hassmic's keys. Out of the box it has no files, no network and no microphone. It gets only what it asks for in its manifest. Your Echo shows you that list before you install it, and nothing happens until you actively acknowledge its required scopes.
If a plugin crashes, hassmic carries on. If it misbehaves, it is stopped.
Where will plugins come from?
There will be a plugin index: one signed list of plugins. You browse it on the Echo's settings page and install with a press of the button. An Echo without internet access can install a plugin from a file instead. The index can also withdraw a plugin version, and your Echo will stop it until you decide what to do.
What will be a plugin?
Whether a feature will be implemented natively or not, I will decide based on vibes and whether I think a feature will be used by the majority of people. The first official plugin will be the microWakeWord engine. The built-in mWW engine will be marked as deprecated, and the Wake word page gets a button that moves your models over in one step. It will be removed in a later, announced release.
I think for example #193(#197) #198 #199(#186) #206 would all be better build as a plugin.
Write your own
Plugins are static Linux programs for 32-bit ARM. You can write it in C, Rust, Go or anything else that builds one. There will be a small C SDK, and the protocol is written down with test vectors, so other languages don't have to reverse-engineer the C code.
When will the update land?
I am still working hard making it good and robust. The plugin system will be marked as experimental and disabled by default. The settings page will make it clear what is new and what is still rough. Everything will be thoroughly reviewed and tested, so it might take me a couple more days - hopefully not weeks. And yes, this is the reason issues and PRs are currently piling up a bit...
What plugins would you like to have?
Is there anything you would like to see a plugin for or would like to develop one yourself?
All reactions