STABLE_RELEASE :: v1.0.0

Neuron JS

The functional logic registry. Define complex business logic as pure JSON and execute it anywhere with zero side effects.

Core Capabilities

Strict Serialization

Logic is data. Scripts are pure JSON, making them portable, database-ready, and network-transparent for consistent execution.

Pluggable Registry

Extend the engine by registering custom Actions and Conditions. Build a domain-specific vocabulary tailored to your application.

Shared Context

A persistent ExecutionContext manages state and messages throughout the execution chain with built-in lifecycle hooks.

ARCHITECTURAL_PATTERN

Registry-Engine Pattern

Neuron-JS decouples logic definition from execution. The **Neuron** registry acts as a component catalog, while the **Synapse** engine serves as the runtime reader.

This separation ensures that logic remains functional and predictable. By only registering necessary components, the engine remains lightweight and highly performant across Node.js and Browser environments.

// EXECUTION_SCRIPT.json

{

  "rule": "CalculateDiscount",

  "conditions": [

    { "type": "UserIsPremium", "params": { "minLevel": 5 } }

  ],

  "actions": [

    { "type": "ApplyDiscount", "params": { "percentage": 15 } }

  ]

}

STATUS: SERIALIZABLE

ENGINE: SYNAPSE_V1

Free & Open Source

Neuron-JS is a SebaSOFT Open Source Initiative. We believe in providing high-quality, clean-coded utilities that improve the ecosystem for everyone.