Pulse Engine Handbook

This handbook explains the Pulse codebase: what each subsystem does, how to use its interfaces, where code belongs and what the current implementation actually supports. It is for game developers, plugin authors and people maintaining the engine itself.

Examples use Pulse's own APIs. Read a topic for the behaviour and practical examples; follow its source reference for exact declarations and implementation details.

Start here

Getting started introduces the vocabulary, local setup, a first plugin and hooks.

Understand the engine

Topic Questions it answers
Architecture and runtime What starts first? How do providers, middleware, routes and product extensions fit together?
Configuration and installation Which environment/config/settings values are used, and where are they stored?
Data and model ownership Which tables belong to core? How do migrations, models and plugin metadata work?
Security and account access How do authentication, roles, policies, 2FA, bans and plugin capabilities interact?
Multi-account detection What does the anti-multi check record, what goes on the privacy page, how do clusters form and how do staff ban from one?

Find an exact contract

Reference Coverage
All core models Every core model: fields, casts, relations and every directly declared method
Database dictionary Every migrated core table: columns, defaults, indexes and cleanup relationships
HTTP catalogue Core route registrations with inputs, responses, errors and effects
Artisan commands Custom command classes: arguments, options, aliases and outcomes
Vue component contracts Reusable player/admin components with props, events, slots and dependencies
Individual hook pages Dispatched and catalogue-only hook names, with actual payload/timing boundaries
Backend configuration keys Every checked-in backend config declaration, symbolic default and consumer
Screen workflows Static router registrations and every player/admin view/layout
Contract checklist Reproducible mappings and source drift checks; distinct from runtime verification

Core reference

Topic Interfaces covered
User Fields, every directly declared method, relationships, roles, tokens, macros and account output.
Economy, stats and timers Money movement, ledger hashes/audit limits, progression, regeneration and cooldowns.
Game Studio Entity schemas/CRUD, formula evaluation/simulation and widget placement.
Hooks and events Registration, priorities, action/filter payloads, errors and declared versus dispatched hooks.
Plugin package contract Maintained ownership, validation, runtime and release requirements.
Plugins Manifests, registry, lifecycle, routes, migrations, contexts and extension contracts.
Packages, themes and marketplace client Bundles, runtime assets, integrity, installation, kits, themes and optional licensing.
Communication Notifications, email, staff chat, activity, text formatting, webhooks and WebSockets.
Frontend and admin runtime The two Vue applications, API clients, state, slots, SDK contracts and builds.
Operations Health, metrics, logs, caching, scheduler/queues, backups and documented environment boundaries.
Upgrading to 1.0.1 Operator steps from 1.0.0: no migration; the Mafia Underworld kit leaves the download, one Docker image, and a player rebuild for games that run the kit.
Upgrading to 1.0.2 Security release from 1.0.1: one migration that scrubs stored error logs, OAuth linking, error-log access and device fingerprinting fixes, and the operator checks to run after it.
Upgrading to 1.0.3 From 1.0.2: one migration (users.has_own_password), the OAuth link and unlink contract change, 2FA on OAuth sign-in, OAuth sign-up and closed registration, and moderators' alerts.
Upgrading to 1.0.4 From 1.0.3: seven migrations (player transfer rules, multi-account detection, error-log rescrub), the 2FA disable and recovery-code contract change, switching on multi-account detection, transfer limits, moderation-alert hooks and stricter log redaction.
Upgrading to 1.0.0 Operator steps from 1.0.0-rc.3: database checks, the maintenance window, migrations and checks afterwards.
Stage and 3D assets The training plaza fixture, its asset build, the player stage runtime and the optional shared room.
Build and documentation tools Asset packs, script effects, Scribe and source generation.
Testing and maintenance Test harnesses, verification commands, driver differences, CI and keeping this handbook current.

Build with Pulse

The complete feature tutorial follows a neutral Field Notes example through owned data, an authenticated API, owner permissions, hooks, Vue states, isolated tests, packaging and an additive upgrade. Its source stays under docs/examples; it is a teaching fixture, not an installed engine feature.

Working patterns connect the references into practical tasks: save player preferences, design a once-only reward, evaluate a tunable formula, run a periodic task, add an operator-editable entity, extend the interface and return account data safely.

If you have not run Pulse before, use local setup. The basic vocabulary and first-plugin exercise are the opening lessons of this handbook.

Find a specific class or method

The source reference indexes in-scope source components, method signatures, model storage configuration, commands, migrations, configuration and route definitions. Every entry names its source path and links a relevant handbook topic.

The coverage index records what has a source entry, a topic explanation and known implementation limitations. Source coverage does not mean every method has an independent runtime test. Each guide describes its evidence and caveats.

Licence

Pulse Engine 1.0.4 is the Community edition. It is delivered as a zip and licensed under the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later). The LICENSE file at the root of the download holds the full terms. Paid Indie and Pro licences are coming soon and cannot be bought yet. The Studio licence is by enquiry. PRODUCT.md and SUPPORT.md, also at the root of the download, say who publishes the engine and where to send commercial and licensing questions.

Scope and reading conventions

  • PHP examples run in a booted backend: a controller, service, plugin handler or Tinker. Shell commands say where to run them.
  • These pages describe the Pulse Engine 1.0.4 release, including known defects and incomplete features.
  • The engine core, plugins and game kits are separate products. This handbook documents the engine's integration interfaces; sibling-product internals need their own manuals.
  • The standard test database is SQLite in-memory. Production-driver, live-transport, clean-install and browser claims require separate evidence.
  • Core should not import concrete plugin classes. Extend through documented services, hooks, manifests and product seams.
  • 3D and open-world play is the separate Pulse 3D project; this handbook and the engine download cover the engine core only.

For repository rules, read Git Workflow and CONTRIBUTING.md. The documentation ownership rules explain retained policy, package manuals and old URL pointers.