A WordPress plugin to save posts as favorite using the new Interactivity API
Also available as a browsable site: https://spaghetti-dojo.github.io/konomi/
| Module | What you can do |
|---|---|
| Blocks | Reaction, bookmark, and container blocks — render them, extend the Konomi block via Block Hooks, and build your own Context-driven block |
| Rest | Register custom REST endpoints with a typed route builder, schemas, and a composable middleware chain |
| User | Read & write a user's reactions and bookmarks — get the current user, query items, save/toggle, and hook save events |
| Post | React to interaction saves and read a post's reaction/bookmark counts |
| Storage | Swap the interactions storage backend for both the Post and User domains via one shared service |
| Extending | Add services, replace a Konomi implementation, or hook the plugin lifecycle from your own code |
| Database | The konomi_interactions table shape and adding your own tables via the activation pattern |
| Activation | Run tasks on plugin activation, deactivation, and uninstall |
| Configuration | Read and extend the client-facing plugin configuration |
| Icons | Render Konomi SVG icons server-side and enqueue the konomi-icons script |
| ApiFetch | Import the shared @konomi/api-fetch client with Konomi's error-handling middleware pre-applied |
| Functions | Run a WordPress filter once and self-remove — e.g. load a script module's dependency on first import |
This software is released under the "GNU General Public License v2.0 or later" license.