npm package: @lucieri/daxiom
Description: DAXIOM SDK — Pattern database client with quality gates, tier management, and semantic search via RuVector PostgreSQL
Author: Danny Alberttis
Latest version: 0.2.4
Deprecated: This package has been superseded by @lucieri/rvf (RuVector Format). Migrate to rvf-node or rvf-mcp-server. See https://github.com/ruvnet/ruvector

# DAXIOM

**Danny's Autonomous eXtended Intelligence Operating Mind**

A Life Operating System / Second Brain built on RuVector PostgreSQL with 1536-dimensional embeddings, HNSW indexing, and 16 specialized AI agents.

## Architecture

```
┌─────────────────────────────────────────────────────────────────┐
│                         DAXIOM                                  │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐ │
│  │              6-LAYER SECURITY MODEL                       │ │
│  │  L1: Transport  │ L2: Auth  │ L3: Authorization          │ │
│  │  L4: Data Protection │ L5: AI Defense │ L6: Sandbox      │ │
│  └───────────────────────────────────────────────────────────┘ │
│                                                                 │
│  ┌─────────────────────┐    ┌─────────────────────────────┐   │
│  │   RuVector Core     │    │   Multi-Channel Gateway     │   │
│  │   PostgreSQL        │◄──►│   WhatsApp │ Telegram       │   │
│  │   • 1536 dims       │    │   Discord  │ Slack          │   │
│  │   • 30+ HNSW idx    │    │   Signal   │ iMessage       │   │
│  │   • RLS isolation   │    │   Voice    │ Web            │   │
│  └─────────────────────┘    └─────────────────────────────┘   │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │   10 SCHEMAS │ 48 TABLES │ 30+ HNSW INDEXES             │   │
│  │   daxiom │ memory │ work │ projects │ business          │   │
│  │   personal │ mind │ comms │ planning │ audit            │   │
│  └─────────────────────────────────────────────────────────┘   │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────┐   │
│  │   16 SPECIALIZED AGENTS                                  │   │
│  │   daxiom-router │ daxiom-memory │ philanthropy-analyst  │   │
│  │   adhd-coach │ pattern-detector │ project-assistant     │   │
│  └─────────────────────────────────────────────────────────┘   │
└─────────────────────────────────────────────────────────────────┘
```

## Schemas

| Schema | Tables | Purpose |
|--------|--------|---------|
| `daxiom` | 4 | Core: agents, routing, conversations, self-awareness |
| `memory` | 3 | Unified knowledge: entries, patterns, relationships |
| `work` | 18 | Cleveland Clinic $250M philanthropy campaign |
| `projects` | 4 | Tech repos, code patterns, tasks |
| `business` | 4 | Ventures: entities, finance, marketing |
| `personal` | 3 | Health, ADHD management, people |
| `mind` | 4 | Inner world: thoughts, aspirations, fears |
| `comms` | 3 | Communications: messages, contacts |
| `planning` | 3 | Documents: ADRs, PRDs, roadmaps |
| `audit` | 2 | Immutable history |

## Privacy Layers

```
System → Work → Business → Personal → Private/Encrypted → Audit
```

Each layer has increasing privacy controls with Row-Level Security.

## Quick Start

```bash
# Clone
git clone https://github.com/yourusername/daxiom.git
cd daxiom

# Install dependencies
pnpm install

# Set up database
createdb daxiom
psql daxiom < db/schemas/000_init.sql

# Configure
cp config/default.json config/local.json
# Edit config/local.json with your settings

# Run
pnpm dev
```

## Tech Stack

- **Database**: PostgreSQL 16+ with RuVector extension
- **Embeddings**: OpenAI text-embedding-3-small (1536 dims)
- **Indexing**: HNSW for 150x-12,500x faster search
- **Runtime**: Node.js 22+ / Bun
- **Agents**: Claude Flow v3 orchestration
- **Channels**: OpenClaw-compatible gateway adapters

## Self-Building

DAXIOM is designed to build itself. This repo's knowledge is stored in RuVector so agents can:

1. Query the schema for table structures
2. Understand agent capabilities and routing
3. Generate migrations and code
4. Track progress in `projects.tasks`

```sql
-- Agents can query their own documentation
SELECT * FROM memory.entries
WHERE embedding <-> embed('DAXIOM architecture') < 0.3
ORDER BY embedding <-> embed('DAXIOM architecture')
LIMIT 5;
```

## Documentation

- [Architecture](docs/daxiom-v1.md)
- [Full Schema](docs/daxiom-schema.md)
- [Agents](docs/agents.md)
- [Embeddings Guide](docs/embeddings-guide.md)
- [Integrations](docs/integrations.md)

## License

Private - All rights reserved.