Sovereign IDE with Arabic-First NLP, Three-Lobe Architecture, and Zero Cloud Dependency
Built by Sulaiman Alshammari (@Dragon403) in Riyadh, Saudi Arabia. Powered by KHAWRIZM โ the sovereign technology framework.
HAVEN is built to serve humans before markets.
- It must serve any person, not only Arabs, not only locals, and not only people with money.
- Privacy, dignity, and access are defaults, not premium features.
- Arabic matters deeply here, but the product must remain multilingual and globally useful.
- We aim for honest, local, inspectable intelligence rather than theatrical claims.
Read the full charter here:
Project identity:
- Maintainer: Sulaiman Alshammari
- Primary email:
iqd@hotmail.com - Backup email:
shammar403@gmail.com
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HAVEN-Sovereign โ
โ (Desktop IDE + Runtime) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโผโโโโโโโ โโโโโโผโโโโโโโโโ โโโโผโโโโโโโโโโโ
โ COGNITIVE โ โ EXECUTIVE โ โ SENSORY โ
โ LOBE โ โ LOBE โ โ LOBE โ
โ โ โ โ โ โ
โ Analysis โ โ Decision โ โ Perception โ
โ Reasoning โ โ Making โ โ Feedback โ
โ Planning โ โ Execution โ โ Response โ
โ โ โ โ โ โ
โdeepseek-r1 โ โ niyah:latestโ โniyah:writer โ
โ :8b โ โ โ โ โ
โโโโโโโฌโโโโโโโ โโโโโโฌโโโโโโโโโ โโโโฌโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ NIYAH Intent โ
โ Router โ
โ (Arabic Root Lex) โ
โโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ Ollama Local โ
โ 127.0.0.1:11434 โ
โโโโโโโโโโโโโโโโโโโโโโโ
| Feature | HAVEN-Sovereign | VSCode | Cursor |
|---|---|---|---|
| Language | TypeScript + Rust | C/C++ | C/C++ |
| AI Model | Local Ollama | Cloud (GitHub Copilot) | Cloud (OpenAI) |
| Privacy | โ 100% Local | โ Proprietary | โ Proprietary |
| Arabic NLP | โ Native | โ No | โ No |
| Three-Lobe Architecture | โ Yes | โ No | โ No |
| Telemetry | โ None | ||
| Cost | Free | Free ($4/mo Pro) | $20/mo |
| Offline Mode | โ Full | โ No | |
| Model Routing | โ Automatic | N/A | N/A |
| Desktop Runtime | โ Tauri | N/A | N/A |
- Node.js 18+ or Bun
- Ollama (local)
- Rust 1.70+ (for Tauri desktop build)
-
Clone the repository
git clone https://github.com/khawrizm/haven-sovereign.git cd haven-sovereign -
Install Ollama (if not already installed)
# macOS brew install ollama # Linux curl -fsSL https://ollama.ai/install.sh | sh # Windows # Download from https://ollama.ai
-
Pull required models
ollama pull deepseek-r1:8b ollama pull niyah:latest ollama pull niyah:writer
-
Install dependencies
npm install # or bun install -
Start Ollama daemon
ollama serve
-
Run HAVEN IDE (Web)
npm run dev # Opens http://localhost:5173 -
Build Desktop App (Tauri)
npm run tauri dev
haven-sovereign/
โโโ src/
โ โโโ components/ # React + TSX UI components
โ โ โโโ Hero.tsx # Main interface
โ โ โโโ Navbar.tsx # Navigation
โ โ โโโ Editor.tsx # Code editor with syntax highlighting
โ โโโ lib/
โ โ โโโ OllamaService.ts # Ollama API integration
โ โ โโโ NiyahEngine.ts # Intent recognition + routing
โ โ โโโ ModelRouter.ts # Three-lobe decision engine
โ โโโ store/ # State management (Zustand/Pinia)
โ โโโ App.tsx # Main entry
โ โโโ main.tsx # Bootstrap
โโโ src-tauri/ # Rust backend (Tauri)
โ โโโ src/
โ โ โโโ main.rs # Desktop app entry
โ โ โโโ lib.rs # Sovereign logic
โ โ โโโ ollama.rs # Ollama bridge
โ โโโ Cargo.toml
โโโ package.json
โโโ tsconfig.json
โโโ vite.config.ts
โโโ tauri.conf.json
โโโ README.md
// Input: "ุงุดุฑุญ ูู ููููุฉ ุจูุงุก API ุจู Node.js"
// Intent detected: educational + technical
const intent = analyzeNiyah(userInput);
// {
// type: 'COGNITIVE',
// confidence: 0.92,
// language: 'ar-gulf',
// domain: 'backend'
// }User Query
โ
NIYAH Intent Analysis
โ
โโ COGNITIVE (analysis) โ deepseek-r1:8b
โโ EXECUTIVE (code gen) โ niyah:latest
โโ SENSORY (feedback) โ niyah:writer
โ
Aggregated Response
- Cognitive: temp=0.3, ctx=2048 (analytical, precise)
- Executive: temp=0.5, ctx=4096 (balanced execution)
- Sensory: temp=0.7, ctx=1024 (creative, responsive)
โ
No cloud connectivity โ 100% local processing
โ
No telemetry โ No data collection, no tracking
โ
No API keys โ Runs entirely on your machine
โ
Audit-grade code โ Fully open source, peer-reviewable
โ
Sovereign jurisdiction โ Built in Saudi Arabia, owned by creators
ูููู -ุณููุฑูู ูู ุจูุฆุฉ ุชุทููุฑ ู ุชูุงู ูุฉ ุชุฌู ุน ุจูู:
- ู ุญุฑุฑ ุฃููุงุฏ ุฐูู ู ุน ุฅูู ุงู ุชููุงุฆู
- ู ุญุฑู ููุฉ ุนุฑุจู ูููู ุงููุตูุต ุจููุฌุฉ ุงูุฎููุฌ
- ู ุนู ุงุฑูุฉ ุซูุงุซูุฉ ุงููุตูุต (ู ุนุฑูู + ุชูููุฐู + ุญุณู)
- ูู ุงุฐุฌ ู ุญููุฉ ุนุจุฑ Ollama ุจุฏูู ุชุจุนูุฉ ุณุญุงุจูุฉ
# ุชุซุจูุช Ollama
brew install ollama
# ุชุญู
ูู ุงููู
ุงุฐุฌ
ollama pull deepseek-r1:8b
ollama pull niyah:latest
# ุชุดุบูู ุงูุจูุฆุฉ
npm install
npm run dev| ุงูู ูุฒุฉ | ุงูุชูุงุตูู |
|---|---|
| ุงูุฎุตูุตูุฉ | 100% ู ุญููุ ูุง ุชูุฌุฏ ุจูุงูุงุช ุณุญุงุจูุฉ |
| ุงูููู ุงูุนุฑุจู | ุชุญููู ูุตูุต ุจุงูููุฌุฉ ุงูุฎููุฌูุฉ |
| ุงูุฃุฏุงุก | ุณุฑุนุฉ ูุงุฆูุฉ (ูุง ุชูุฌุฏ ุชุฃุฎูุฑุงุช ุดุจูุฉ) |
| ุงูุชุญูู ุงููุงู ู | ู ูุชูุญ ุงูู ุตุฏุฑุ ูุงุจู ููุชุฎุตูุต |
OLLAMA_HOST=127.0.0.1:11434
OLLAMA_MODELS_DIR=/path/to/models
HAVEN_THEME=dark
NIYAH_TEMPERATURE=0.3{
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:5173"
},
"app": {
"windows": [{
"title": "HAVEN-Sovereign",
"width": 1200,
"height": 800
}]
}
}# Development
npm run dev # Start web IDE (port 5173)
npm run tauri dev # Start desktop app with live reload
# Building
npm run build # Build web bundle
npm run tauri build # Build standalone desktop EXE
# Testing & Quality
npm run lint # Run ESLint
npm run type-check # TypeScript validation
npm run test # Unit tests
# Ollama Management
npm run ollama:pull # Download models
npm run ollama:list # List available models
npm run ollama:stop # Stop Ollama daemon| Layer | Technology |
|---|---|
| UI | React 18 + TypeScript + Vite |
| Styling | Tailwind CSS + Radix UI |
| State | Zustand / Pinia |
| Desktop | Tauri + Rust |
| AI/ML | Ollama + deepseek-r1 + niyah |
| Backend | Node.js (optional server) |
| Build | Vite + SWC (lightning fast) |
We welcome contributions! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Code of Conduct: Be respectful, technical, and direct.
MIT License โ See LICENSE file for details.
Copyright ยฉ 2025 Sulaiman Alshammari (@Dragon403)
Built with ๐ธ๐ฆ in Riyadh, Saudi Arabia.
- GitHub Issues: Report bugs
- Discussions: Ask questions
- Twitter: @Dragon403
- Website: khawrizm.com
- IDE: ide.khawrizm.com
- Three-Lobe architecture core
- Ollama integration & model routing
- Arabic NLP intent engine
- Desktop (Tauri) build
- Mobile version (React Native)
- K-Forge (P2P network layer)
- VS Code extension
- Plugin marketplace
- Multi-language code analysis
Built by the people, for the people. Sovereign technology starts here. ๐ธ๐ฆโก