DIDAlterHub is an open-source platform for managing Dissociative Identity Disorder (DID) related data and workflows.
- Backend: Rust (Axum) with multiple crates under
backend/ - Frontend: React + TypeScript in
frontend/app/ - Build & Tooling: Python scripts in
build_tools/for codegen, builds, and release - Runtime Tools: Zig-based utilities in
runtime_tools/ - Schemas: Source of truth for API and DB in
schemas/
git clone https://github.com/Kusekushi/didhub.git
cd didhubPrerequisites:
- Rust (latest stable)
- Node.js (v18+)
- Python 3.10+
- pnpm
- PostgreSQL
# Create and activate Python virtual environment
python -m venv .venv
# Activate virtual environment (Linux/macOS)
source .venv/bin/activate
# Activate virtual environment (Windows PowerShell)
.\.venv\Scripts\Activate.ps1
# Install build tool dependencies
pip install -r build_tools/requirements.txt
# Install frontend dependencies
cd frontend/app && pnpm install && cd ../..# Start both backend and frontend with hot-reload
python build.py dev
# Or start individual services
python build.py dev --rust # Backend only
python build.py dev --web # Frontend only# Run all tests
python build.py test
# Run specific test suites
python build.py test --backend # Backend tests only
python build.py test --frontend # Frontend tests only# Full build (includes code generation)
python build.py build
# Production build
python build.py build --release# Check code style
python build.py lint
# Auto-fix issues
python build.py lint --fixThe build system forwards commands to specialized tools:
# Clean build artifacts
python build.py clean
python build.py clean --generated # Reset generated code
# Code generation
python build.py codegen
# Generate docs and coverage
python build.py docs
# Create release
python build.py releaseFor direct backend development:
# Set log level to debug
cargo run --manifest-path backend/Cargo.toml -- -L "info,didhub_backend=debug"- Developer Documentation — Setup, architecture, code conventions, testing
- User Documentation — Installation, usage, API reference
- AI Agent Guidelines — Code style and conventions for contributors
Contributions welcome! Please see AGENTS.md for code conventions.
See LICENSE for license information.