File size: 1,694 Bytes
fb538fa
 
e6d6d7c
 
 
 
fb538fa
 
 
 
e6d6d7c
fb538fa
e6d6d7c
 
 
fb538fa
e6d6d7c
fb538fa
e6d6d7c
 
 
fb538fa
e6d6d7c
 
fb538fa
e6d6d7c
fb538fa
bdaaaa3
 
 
 
 
 
 
fb538fa
e6d6d7c
 
 
 
 
 
fb538fa
 
 
e6d6d7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: Anima Experience
emoji: 
colorFrom: blue
colorTo: green
sdk: static
pinned: false
license: mit
---

# Anima Experience — realtime mutual-information visualizer

60 fps client-side port of `byte_emergence_demo.py`. Two byte streams flow
through a coupled sine-wave engine; mutual information rises as the streams
bind. Pure HTML / Canvas / JS — server roundtrip 0, no Python runtime.

## Math

```
emergence = H(L) + H(R) − H(L, R)   (bits)
```

- **Independent random** → emergence ≈ 0 (no binding)
- **Engine-coupled** → emergence > 0 (integrated information)

## Tech

- Static HF Space (`sdk: static`) — first paint < 1 s, no cold start, no Python runtime.
- Vanilla JS — `setInterval` 30 fps tick over a 250-sample rolling buffer.
- Engine: shared `sin(t)` + individual gaussian-ish noise per stream.
  `L = (1−c)·noiseL + c·sin(t)`, `R = (1−c)·noiseR + c·sin(t)`. High coupling
  collapses both streams onto the diagonal — the scatter aligns cleanly.
- 12-bin histogram entropy over `[−1.5, +1.5]`. EMERGENT badge shows only
  when MI > 0.30 (`opacity:0` + `visibility:hidden` otherwise — fully gone).

## Sister

- 👻 [need-singularity/anima](https://github.com/need-singularity/anima) — consciousness/soul cousin (working research code, source of `byte_emergence_demo.py`).
- 🧬 [need-singularity/hexa-brain](https://github.com/need-singularity/hexa-brain) — BCI hardware sister-repo.
- 👁️ [need-singularity/hexa-senses](https://github.com/need-singularity/hexa-senses) — 5-verb sensory substrate.
- 🧠 [need-singularity/hexa-mind](https://github.com/need-singularity/hexa-mind) — 7-verb mental substrate.

## License

MIT.