1.8 KiB
1.8 KiB
Oikos Modularization Backlog
Status: low priority roadmap item.
Goal
Convert Oikos from module-shaped code into a proper modular platform where users and contributors can add, remove, and customize modules without editing core router/navigation/settings files in several places.
Desired outcome
- A single module manifest/registry owns route, navigation, icon, theme, stylesheet, settings visibility, permissions, and API capability metadata.
- New modules can be added by creating a module folder plus manifest entry, not by touching many core files.
- Existing modules can be disabled cleanly at UI and API/capability level.
- Language packs can be added by dropping in a locale file and registering display metadata in one place.
- Deployment-specific or family-specific customizations stay outside upstreamable core code.
Candidate implementation tasks
- Introduce a module registry, for example
public/modules/manifest.jsor a JSON manifest loaded during boot. - Refactor
router.jsto build routes, navigation order, primary nav, theme accents, and disabled-module guards from the registry. - Move Kitchen tabs to module metadata so grouped/submodules are first-class.
- Add a server-side module/capability registry for API exposure and OpenAPI grouping.
- Add a locale registry so
SUPPORTED_LOCALES, locale picker labels, and service-worker precache entries are generated from one source. - Define an extension/overlay mechanism for local deployments without patching core files.
- Add contributor docs: “Create a module” and “Add a language pack”.
- Add regression tests that verify module registration, hiding/disabling, navigation, and locale discovery.
Priority
Low. Do after the current Kitchen / Meal Planning work is stable and after Friborg-specific customizations are separated from upstreamable platform code.