mindfry 1.6.0

The World's First Ephemeral Graph Database - A Cognitive DB Engine
Documentation
# MindFry


**A Subjective Biological Memory Substrate**

> _"Databases store data. MindFry_ **_feels_** _it."_

[![License: BSL](https://img.shields.io/badge/License-BSL--1.1-blue.svg)](LICENSE)
[![Tests](https://img.shields.io/badge/tests-74%20passing-brightgreen)]()
[![Version](https://img.shields.io/badge/version-1.6.0-blue)]()

---

> ⚠️ **EXPERIMENTAL:** MindFry is currently in active R&D. The API is volatile. It simulates biological memory processes which may result in data inhibition (data loss from the user's perspective) based on the system's "mood". **Do not use for banking.**

---

## What Makes This Different?


Traditional databases are **objective** β€” they store exactly what you give them, forever (or until you delete it).

MindFry is **subjective** β€” it processes data through a simulated cognitive layer that can:

- **Forget** data that isn't accessed (organic decay)
- **Suppress** data it finds antagonistic (mood-based inhibition)
- **Strengthen** frequently accessed data (Hebbian learning)
- **Propagate** stimulation through neural bonds (synaptic chains)

## 🧬 Core Principles


### 🧠 Tri-Cortex Architecture


Decisions are made using **Balanced Ternary Logic** (Setun):

- `+1` = True / Excitation
- `0` = Unknown / Neutral
- `-1` = False / Inhibition

The database has a **Personality Octet** (8 dimensions) and a **Mood** that affects query results.

### ❀️ Mood & Personality


A depressed database behaves differently than a euphoric one:

- **High Mood** β†’ Lower consciousness threshold β†’ More data accessible
- **Low Mood** β†’ Higher threshold β†’ Data feels "distant"

### πŸ•ΈοΈ Synaptic Propagation


When you `stimulate("A")`:

```
A (+1.0) β†’ B (+0.5) β†’ C (+0.25) β†’ ... (damped)
```

Touch one memory, its neighbors tremble.

### πŸ’Ύ Resurrection


Shutdown and restart. The database remembers:

- Its mood
- Its personality
- All lineages and bonds

## Quick Start


```bash
# Clone

git clone https://github.com/laphilosophia/mindfry.git
cd mindfry

# Run server

cargo run --release --bin mindfry-server

# In another terminal

cargo run --bin mfcli -- ping
cargo run --bin mfcli -- create fire 0.9
cargo run --bin mfcli -- stimulate fire 1.0
cargo run --bin mfcli -- stats
```

## SDK


```bash
npm install mindfry
```

```typescript
import { MindFry } from 'mindfry'

const brain = new MindFry({ host: 'localhost', port: 9527 })
await brain.connect()

// Touch one memory...
await brain.lineage.stimulate({ key: 'trauma', delta: 1.0 })

// ...and its neighbors tremble
const associated = await brain.lineage.get('fear')
console.log(associated.energy) // Increased by propagation
```

## Status


| Component            | Status     |
| -------------------- | ---------- |
| Core Engine          | βœ… Working |
| SDK (TypeScript)     | βœ… Working |
| Persistence          | βœ… Working |
| Auto-Propagation     | βœ… Working |
| OQL (Query Language) | 🚧 Planned |
| CEREBRO (GUI)        | 🚧 Planned |
| Documentation Site   | 🚧 Planned |

## License


[BSL 1.1](LICENSE) Β© [Erdem Arslan](https://github.com/laphilosophia)

---

_"If you're not embarrassed by the first version of your product, you've launched too late."_ β€” Reid Hoffman