Skip to content

Introduction

Shiva is a modular, contract-driven FiveM RP framework. It replaces monolithic frameworks like QBCore and ESX with a clean architecture that lets you swap, override, or extend any component without touching framework internals.

Why Shiva?

Most FiveM frameworks suffer from the same problems:

  • God objects — one massive QBCore or ESX object that everything depends on
  • No contracts — change the inventory system, break 30 resources
  • No isolation — one misbehaving module crashes everything
  • No testing — side effects everywhere, nothing is testable

Shiva solves all of these with a small set of core principles:

  1. Modules are the only unit of code. There's no monolith.
  2. Contracts define interfaces. Modules talk through contracts, not implementations.
  3. The container wires everything. Dependency injection means no global state.
  4. Everything is overridable. Five levels of override from config all the way to replacing the implementation.

Who Is This For?

AudienceWhat You WantWhere to Start
Server OwnersInstall, configure, and runInstallation →
Module DevelopersBuild custom gameplay systemsYour First Module →
ContributorsUnderstand internals, build replacement modulesArchitecture →

The Projects

Shiva is split into focused repositories:

RepoPurpose
shiva-fwShared Lua foundation (container, event bus, utilities)
shiva-coreFiveM framework engine — the runtime
shiva-modules73 default RP modules (player, economy, jobs, etc.)
shiva-dbMySQL/MariaDB FiveM resource — the DB driver
shiva-bootBoot trigger resource — fires the 7-phase boot pipeline
shiva-testTesting framework for module authors
shiva-cliDeveloper CLI (shiva make, shiva migrate, etc.)
shiva-apiExternal REST/WebSocket API server
shiva-panelReact admin panel (connects to shiva-api)
shivaFiveM Docker boilerplate
shiva-docsThis documentation site

Quick Start

If you just want a running server:

bash
# Clone the FiveM Docker boilerplate
git clone https://github.com/adrianmejias/shiva

# Follow the installation guide

Installation Guide →

Released under the MIT License.