Skip to content

chrryAI/vex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5,541 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Hetzner Patent Pending Powered by Arcjet

Vex

πŸ† Patent Pending - US Application #64/000,114
Spatial Intelligence System with Self-Evolving App Ecosystem

A sovereign, self-sustaining AI platform powered by user-provided models.

The Ecosystem

πŸ¦„ Vex Core (Infrastructure)
β”œβ”€β”€β”€β”€ 🌍 Atlas (Travel Agent)
β”œβ”€β”€β”€β”€ πŸ‘ Peach (Social Assistant)
β”œβ”€β”€ 🌸 Bloom (Wellness Coach)
└── 🏦 Vault (Finance Manager)

πŸ’Έ The Builder Economy (70% Rev Share)

Vex is not just a tool; it is a marketplace.

70% Revenue Share: Builders keep the lion's share of subscription revenue.

BYOK (Bring Your Own Key): We operate on a sovereign model. Users/Builders provide their own API keys (OpenAI, Anthropic, DeepSeek).

Benefit: We don't tax your intelligence.

Benefit: You optimize your own margins by selecting efficient models.

Inheritance: New apps can "extend" existing apps, inheriting their capabilities and tools.

🧠 Philosophy: Friction as Feature

"Does this feature cause brain damage?" "It should. That's how they learn."

Vex operates on a counterintuitive principle: friction is not failure, it's feedback.

Small errors, navigation dead-ends, and user corrections aren't bugsβ€”they're essential signals for organic growth. Our multi-agent ecosystem (Chrry, Vex, Grape, Pear, Sushi) doesn't compete; it specializes and cooperates, creating a closed-loop learning economy.

What users love most: RAG + Knowledge Graph. Upload documents, and watch the system build connections you didn't know existed. The "brain damage" becomes neural pathways.

The future isn't a hierarchy of AIs; it's an ecology.

✨ Features

πŸ€– Model Agnostic: First-class support for OpenAI, Claude, DeepSeek, Gemini, and Perplexity.

πŸ”‘ API Key Support:

  • Official Providers: Bring your own API keys for OpenAI, Anthropic, DeepSeek, Google (Gemini), and Perplexity
  • OpenRouter: Single API key for access to all models with unified billing
  • Coming Soon: Custom OpenAI-compatible endpoints (LocalLLM, Ollama, vLLM) and per-app API keys

🧠 Vector Memory: Smart context management that persists across sessions.

πŸ“š RAG (Retrieval-Augmented Generation): Upload documents (PDF, images, video) and chat with your files using hybrid vector + graph search.

πŸ•ΈοΈ Knowledge Graph: FalkorDB-powered entity extraction and relationship mapping for advanced context understanding.

🌍 Multi-App PWA: The only open-source implementation of dynamic manifest injection.

πŸ”’ Privacy First: User-controlled keys mean user-controlled data. Burn mode for incognito conversations.

⚑ Real-Time: WebSocket-powered collaboration and streaming.

πŸ₯‹ Sato Dojo: AI-powered mutation testing system where agents learn through code strikes

  • Students (Coder agents): Strike code, gain XP, level up
  • Senseis (Architect agents): Strategic high-value mutations
  • Organic Learning: System learns from failures, improves mutation quality
  • Integration Ready: BAM (bug detection), STRIKE (mutation engine), Memory (learning system)

⚑ Quick Start

🏠 Self-Hosted (Recommended)

Run Vex entirely on your local machine with Docker. No cloud dependencies required.

# Clone and install
git clone https://github.com/chrryai/vex.git
cd vex
pnpm install

# Start local infrastructure (PostgreSQL, Redis, MinIO, FalkorDB, Mailhog)
pnpm local:setup

# Add your API keys to .env.local
# OPENAI_API_KEY=sk-...

# Start development
pnpm dev:all

That's it! Everything runs locally. See SELF_HOSTING.md for full guide.

☁️ Cloud Setup (Alternative)

Prerequisites:

  • Node.js 18+
  • pnpm 9+
  • PostgreSQL 14+ (with pgvector extension)
  • FalkorDB (for Knowledge Graph RAG)
git clone https://github.com/chrryai/vex.git
cd vex
pnpm install
Environment Setup

Bash

# Generates necessary .env files from templates

pnpm run setup:env
Edit the .env files to add your DB_URL and OPENAI_API_KEY (or set VITE_TESTING_ENV='e2e' for mock mode).

Database Initialization

**PostgreSQL + pgvector:**

Bash

# Install pgvector extension

psql -d your_database -c "CREATE EXTENSION IF NOT EXISTS vector;"

# Run migrations

cd packages/db
pnpm run generate # Generate Drizzle artifacts
pnpm run migrate # Push to Postgres
pnpm run seed # Populate default apps
cd ../..

**FalkorDB (Knowledge Graph):**

Bash

# Using Docker (recommended)

docker run -p 6379:6379 -it --rm falkordb/falkordb:latest

# Or install locally via Homebrew (macOS)

brew tap FalkorDB/falkordb
brew install falkordb

# Add to .env

FALKORDB_URL=redis://localhost:6379
FALKORDB_GRAPH_NAME=vex_knowledge_graph
Launch

Bash

pnpm run dev:all
Web App: http://localhost:3000

Marketing/API: http://localhost:3001

πŸ—οΈ Architecture
Vex is a modern monorepo built for scale and separation of concerns.

Stack:

Frontend: Vite, React 19

Backend: Bun, Hono, WebSocket Server

Data: PostgreSQL (pgvector), FalkorDB (Knowledge Graph), Drizzle ORM, Redis (Upstash)

State: React Context + Server Actions

Project Structure:

Plaintext

vex/
β”œβ”€β”€ apps/
β”‚ β”œβ”€β”€ api/ # Core API & Marketing (Hono, Port 3001)
β”‚ β”œβ”€β”€ flash/ # Main PWA (Vite + React, Port 5173)
β”‚ β”œβ”€β”€ mobile/ # React Native (Expo)
β”‚ β”œβ”€β”€ extension/ # Browser Extension (Chrome/Firefox)
β”‚ └── browser/ # Desktop App (Tauri)
β”œβ”€β”€ packages/
β”‚ β”œβ”€β”€ ui/ # Shared Design System (@chrryai/chrry)
β”‚ β”œβ”€β”€ db/ # Drizzle Schema & Migrations
β”‚ β”œβ”€β”€ pepper/ # Universal Routing Logic
β”‚ β”œβ”€β”€ waffles/ # E2E Testing (Playwright)
β”‚ β”œβ”€β”€ auth/ # Better Auth Configuration
β”‚ β”œβ”€β”€ calendar/ # Calendar Utilities
β”‚ β”œβ”€β”€ focus/ # Focus Mode Logic
β”‚ β”œβ”€β”€ shared/ # Shared Utilities
β”‚ β”œβ”€β”€ cache/ # Caching Layer
β”‚ β”œβ”€β”€ typescript-config/ # Shared TypeScript Config
β”‚ └── eslint-config/ # Shared ESLint Config
└── scripts/ # DevOps & Automation

## βš–οΈ License & Attribution

License: AGPL-3.0. Use it, learn from it, but if you distribute it, share your changes.

Icons: This project uses premium icons from Wannathis.

Note: If you fork this project for commercial use, you must purchase your own license for these assets or replace them.

Support: Issues β€’ Email β€’ Twitter

## Support The Project

Vex is built entirely open source by a solo developer, pioneering a new economic model for AI. If you find value in this platform, support it directly by **buying credits** at [vex.chrry.ai](https://vex.chrry.ai).

No sponsors. No middlemen. Just users supporting the product they use.

## πŸš€ One Codebase, Unlimited Apps

Vex introduces a breakthrough **Polymorphic PWA, Web, Extension, Desktop, Mobile Architecture** with **Spatial Navigation**. It enables a single codebase to spawn infinite, independent applications on a user's device.

### 🧭 Spatial Navigation System

Apps exist in a 3D coordinate system:

- **X-Axis (Apps)**: Navigate between apps (Vex β†’ Atlas β†’ Bloom)
- **Y-Axis (Stores)**: Navigate between domains/stores (chrry.ai β†’ vex.chrry.ai β†’ atlas.chrry.ai)
- **Z-Axis (Depth)**: Navigate into code structure (/ β†’ /.sushi β†’ /.sushi/mutations)

**Examples:**

- `chrry.ai` β†’ Blossom store, Chrry app
- `vex.chrry.ai` β†’ LifeOS store, Vex app
- `atlas.chrry.ai` β†’ Compass store, Atlas app
- `chrry.ai/atlas` β†’ Blossom store, Atlas app (different context!)
- `vex.chrry.ai/.sushi` β†’ LifeOS store, Vex app, Sato Dojo depth

### πŸ—οΈ Architecture Features

πŸ“± **Dynamic Manifest Generation**: The server generates unique PWA manifests on the fly (/api/manifest/[id]).

πŸ”„ **Context Switching**: The app detects which "personality" (Atlas, Bloom, Vault) it should adopt based on the install context.

🧬 **App Inheritance**: Apps extend parent apps (FightClub extends Popcorn extends Chrry), inheriting features and tools.

πŸ“² **Native-Grade Experience**: Each app installs separately with its own name, icon, theme, and memory, despite running on shared infrastructure.

About

LifeOS

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors