Skip to content

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.

Title blockSheet 03 · Case 03
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

  1. C1Each site is its own instance, with its own database, storage and users. Nothing is shared.
  2. C2Payment and SMS providers differ by country, and change.
  3. C3A new theme must never need a backend release.
  4. C4A small team, so installs, updates, backups and restores are scripted.
FIG. 02Deployment topology, one instanceNTS · Request path in orange
VPS — ONE PER SITERESTHOOKSJOBSVisitorACTOR · HTTPSSite themeNEXT.JS · SERVICEmn-core APILARAVEL · SERVICEMySQLDATASTORE · PER SITETheme packageVERSIONED · SWAPPABLERegion pluginsPAYMENTS · SMS / OTPRedisCACHE · QUEUEQueue workerJOBS · RETRIESRegional gatewaysEXTERNAL · PAY / SMS
View as list
Nodes · 9
  1. Visitor — actor, https
  2. Site theme — service, next.js, inside the VPS
  3. mn-core API — service, laravel, inside the VPS
  4. MySQL — datastore, per site, inside the VPS
  5. Theme package — service, versioned, swappable, inside the VPS
  6. Region plugins — service, payments, SMS / OTP, inside the VPS
  7. Redis — queue, cache, inside the VPS
  8. Queue worker — service, jobs, retries, inside the VPS
  9. Regional gateways — external, PAY / SMS, outside the VPS
Connections · 8 · — Main path
  1. Visitor → Site theme
  2. Site theme → mn-core API · REST
  3. mn-core API → MySQL
  4. Theme package → Site theme
  5. mn-core API → Region plugins · HOOKS
  6. Region plugins → Redis · JOBS, async
  7. Redis → Queue worker
  8. Queue worker → Regional gateways
Nodes · 9
  1. Visitor — actor, https
  2. Site theme — service, next.js, inside the VPS
  3. mn-core API — service, laravel, inside the VPS
  4. MySQL — datastore, per site, inside the VPS
  5. Theme package — service, versioned, swappable, inside the VPS
  6. Region plugins — service, payments, SMS / OTP, inside the VPS
  7. Redis — queue, cache, inside the VPS
  8. Queue worker — service, jobs, retries, inside the VPS
  9. Regional gateways — external, PAY / SMS, outside the VPS
Connections · 8 · — Main path
  1. Visitor → Site theme
  2. Site theme → mn-core API · REST
  3. mn-core API → MySQL
  4. Theme package → Site theme
  5. mn-core API → Region plugins · HOOKS
  6. Region plugins → Redis · JOBS, async
  7. Redis → Queue worker
  8. Queue worker → Regional gateways
  1. A: One instance per site. A traffic spike or a bad deploy on one site never reaches another.
  2. B: Plugins register settings, routes, jobs and admin screens through typed registries. The core never imports a plugin by name.
  3. C: Providers change by country. Swapping one is a plugin change, never a core release.
Key decisions

Three calls that shaped the rest.

  1. 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.

  2. 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.

  3. 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