#neuron #feagi #platform-independent #computation #model

no-std feagi-npu-neural

Platform-agnostic neural computation: types, algorithms, and neuron models

5 releases

new 0.0.1-beta.9 Feb 2, 2026
0.0.1-beta.8 Feb 8, 2026
0.0.1-beta.4 Jan 25, 2026
0.0.1-beta.2 Jan 19, 2026
0.0.1-beta.1 Dec 23, 2025

#932 in Algorithms

Download history 3/week @ 2025-12-29 4/week @ 2026-01-05 2/week @ 2026-01-12 327/week @ 2026-01-19 6/week @ 2026-01-26 114/week @ 2026-02-02

449 downloads per month
Used in 11 crates (9 directly)

Apache-2.0

77KB
1.5K SLoC

feagi-neural

Platform-agnostic neural dynamics algorithms for FEAGI.

Features

  • no_std compatible (ESP32, RTOS, WASM)
  • ✅ Zero allocations (stack-only)
  • ✅ SIMD-friendly batch operations
  • ✅ Pure functions (no side effects)

Modules

  • dynamics - LIF neuron updates, leak, threshold checks
  • firing - Refractory periods, consecutive fire limits
  • utils - PCG random number generation, excitability

Example

use feagi_neural::update_neuron_lif;

let mut potential = 0.5;
let threshold = 1.0;
let leak = 0.1;
let input = 0.6;

let fired = update_neuron_lif(&mut potential, threshold, leak, 0.0, input);
assert!(fired); // 0.5 + 0.6 = 1.1 > 1.0
assert_eq!(potential, 0.0); // Reset after firing

Platform Support

Platform Status Notes
Desktop Full support
ESP32 no_std mode
RTOS FreeRTOS, Zephyr
WASM Browser, Node.js
HPC MPI clusters

Performance

  • Single neuron update: ~50 cycles (208 ns @ 240 MHz)
  • Batch processing: SIMD-optimized
  • Memory: <1 KB stack, 0 heap

License

Apache License 2.0

Dependencies

~0.1–0.9MB
~19K SLoC