Case study 03 — Platform
MN-Core.
One core for company, personal and service-business sites, with everything that differs by client or country kept in plugins and themes.
- Year
- 2026
- Role
- Architect and lead developer
- Stack
- Laravel · Next.js · MySQL · Redis · Docker
- Duration
- Since Feb 2026
- Status
- In progress · First instance: this site
Problem
Client sites kept hitting the same limits: plugins that break each other, themes mixed with business logic, and updates with no way back.
MN-Core keeps what WordPress gets right, installing a site and running it from the browser, and changes what keeps going wrong. Plugins declare what they need and are checked before they run. A theme is a separate Next.js app that reads the public API and never touches the database. Every update takes a backup first and can roll back.
Constraints
- C1Each site is its own instance, with its own database, storage and users. Nothing is shared.
- C2Payment and SMS providers differ by country, and change.
- C3A new theme must never need a backend release.
- C4A small team, so installs, updates, backups and restores are scripted.
View as list
- Visitor — actor, https
- Site theme — service, next.js, inside the VPS
- mn-core API — service, laravel, inside the VPS
- MySQL — datastore, per site, inside the VPS
- Theme package — service, versioned, swappable, inside the VPS
- Region plugins — service, payments, SMS / OTP, inside the VPS
- Redis — queue, cache, inside the VPS
- Queue worker — service, jobs, retries, inside the VPS
- Regional gateways — external, PAY / SMS, outside the VPS
- Visitor →← Site theme
- Site theme →← mn-core API · REST
- mn-core API →← MySQL
- Theme package →← Site theme
- mn-core API →← Region plugins · HOOKS
- Region plugins →← Redis · JOBS, async
- Redis →← Queue worker
- Queue worker →← Regional gateways
- Visitor — actor, https
- Site theme — service, next.js, inside the VPS
- mn-core API — service, laravel, inside the VPS
- MySQL — datastore, per site, inside the VPS
- Theme package — service, versioned, swappable, inside the VPS
- Region plugins — service, payments, SMS / OTP, inside the VPS
- Redis — queue, cache, inside the VPS
- Queue worker — service, jobs, retries, inside the VPS
- Regional gateways — external, PAY / SMS, outside the VPS
- Visitor →← Site theme
- Site theme →← mn-core API · REST
- mn-core API →← MySQL
- Theme package →← Site theme
- mn-core API →← Region plugins · HOOKS
- Region plugins →← Redis · JOBS, async
- Redis →← Queue worker
- Queue worker →← Regional gateways
- A: One instance per site. A traffic spike or a bad deploy on one site never reaches another.
- B: Plugins register settings, routes, jobs and admin screens through typed registries. The core never imports a plugin by name.
- C: Providers change by country. Swapping one is a plugin change, never a core release.
Three calls that shaped the rest.
- D1
One instance per site, not shared multi-tenancy
WhyEach site owns its stack, database and data, and one site's busy week never slows another.
Trade-offMore servers to look after, so install, update with automatic rollback, backup and restore are all scripts.
- D2
Plugins talk to the core only through registries
WhyPayments, SMS and other regional code register themselves in typed registries. A plugin that fails while booting is switched off, and the site keeps running.
Trade-offRegistry contracts are versioned and need care. Every plugin declares the core versions it supports, and that is checked before it is activated.
- D3
Themes are separate packages over one API
WhyDesign work for one client ships without touching backend code, and themes can be reused across clients.
Trade-offThe API has to stay stable and documented, since every theme depends on it directly.
Where it stands
- 12
- first-party plugins, from payment gateways to off-site backups
- 1,100+
- automated backend tests
- 1
- instance in production: this site
As of November 2026