# MindFry
**A Subjective Biological Memory Substrate**
> _"Databases store data. MindFry_ **_feels_** _it."_
[](LICENSE)
[]()
[]()
---
> β οΈ **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
### π³ Docker (Recommended)
```bash
docker run -d -p 9527:9527 ghcr.io/laphilosophia/mindfry:latest
```
### From Source
```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
| 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