HumanityOS, a free open source CC0 decentralized civilization operating system for ending poverty, corruption, fraud, and tyranny in pursuit of a peaceful harmonious united humanity. Means of helping humanity today and preparing for our civilization's imminent interplanetary existence.
  • Rust 41.2%
  • JavaScript 33.6%
  • HTML 20.2%
  • CSS 2.6%
  • WGSL 1.7%
  • Other 0.6%
Find a file
Shaostoul 652bff60b5
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to VPS / Deploy (push) Has been cancelled
Build Desktop App / Build (linux-x64) (push) Has been cancelled
Build Desktop App / Build (macos-arm64) (push) Has been cancelled
Build Desktop App / Build (macos-x64) (push) Has been cancelled
Build Desktop App / Build (windows-x64) (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled
Build Desktop App / Mirror binaries to VPS + regen manifest (push) Has been cancelled
Build Desktop App / Bundle data files (push) Has been cancelled
Build Desktop App / Notify chat (push) Has been cancelled
v0.473.0 — Battery state-of-charge: the home power loop now drains and refills
Live-home-sim increment 1b. The home's 8 battery banks were inert; now they buffer the grid.

- New Battery ECS component {charge_wh, capacity_wh, max_charge_w, max_discharge_w} + a
  MachinePower::Battery role; the battery_bank machine in home.ron gains
  power: Some(Battery(4 kWh, 2 kW in/out)), so the 8 instances spawn live (half-charged).
- ElectricalSystem integrates the grid balance (generation - demand) into each bank each tick
  via a pure, unit-tested integrate_battery(): charge on surplus, discharge on deficit, clamped
  by capacity, available charge, and the charge/discharge rates. Multiple banks share one
  surplus/deficit sequentially (no double counting).
- PowerStatus gains battery_wh / capacity / autonomy_hours; the HUD draws a live
  "Battery: N%  X kWh  ~H h autonomy" line under the power line, so the day/night solar swing
  is a draining/refilling number instead of a static string.
- Follow-up: battery discharge does not yet PREVENT the load-shedding (it tracks the true
  generation-vs-demand balance); unifying the two is the next increment.

Also: roadmap synced (v0.472 co-presence + v0.473 battery marked shipped; the launcher + the
2-player test remain) and journaled. native + relay compile; 446 lib tests pass (3 new battery
tests); 4 GUI/theme lints green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 13:32:42 -07:00
.claude v0.422.2 — Roadmap as the to-do list: one canonical ROADMAP.md the website renders 2026-06-12 22:41:06 -07:00
.github/workflows ci: fix Pages canon-mirror check after the docs reorg 2026-06-13 00:38:47 -07:00
app/web v0.422.0 — Security sprint: vault-sync anti-replay (closes the last no-fork item) 2026-06-12 21:48:47 -07:00
assets v0.131.0: AI Perception API — headless gameplay for AI agents (game_perceive, game_interact, game_query_inventory, game_query_entity) 2026-04-30 12:48:00 -07:00
backups Restructure: eliminate native/ nesting, clean up stale files 2026-04-05 22:03:27 -07:00
data v0.473.0 — Battery state-of-charge: the home power loop now drains and refills 2026-06-16 13:32:42 -07:00
docs v0.473.0 — Battery state-of-charge: the home power loop now drains and refills 2026-06-16 13:32:42 -07:00
logs Restructure: eliminate native/ nesting, clean up stale files 2026-04-05 22:03:27 -07:00
mods v0.86.0: Remove Tauri app/, simplify repo structure, add mods/ 2026-03-29 17:32:23 -07:00
saves Restructure: eliminate native/ nesting, clean up stale files 2026-04-05 22:03:27 -07:00
schemas feat(containers): typed containers + content-class compatibility (v0.321.0) 2026-05-29 18:45:42 -07:00
scripts docs+tooling: rest-of-day plan, first-playable scoping, release-signing health-check 2026-06-16 08:07:06 -07:00
src v0.473.0 — Battery state-of-charge: the home power loop now drains and refills 2026-06-16 13:32:42 -07:00
tests v0.364.0 — whole-app em-dash sweep + regression lint 2026-06-05 15:40:49 -07:00
web v0.473.0 — Battery state-of-charge: the home power loop now drains and refills 2026-06-16 13:32:42 -07:00
.gitattributes Add .gitattributes — force LF for VPS-executed files (harden incident prevention) 2026-05-17 13:56:22 -07:00
.gitignore v0.419.0 — Security sprint: sign the local exe launcher (find_newer_exe) 2026-06-12 16:20:52 -07:00
build.rs Unify binary: merge server/ and crates/ into src/relay/ 2026-04-07 19:04:12 -07:00
Cargo.lock v0.472.0 — Multiplayer co-presence: client wiring so two players share the world 2026-06-16 13:15:55 -07:00
Cargo.toml v0.473.0 — Battery state-of-charge: the home power loop now drains and refills 2026-06-16 13:32:42 -07:00
CHANGELOG.md Update all docs to v0.43.0: 152 features tracked 2026-03-24 10:21:56 -07:00
CLAUDE.md v0.424.0 — Security: bound hard-delete remnants (secure_delete + WAL truncate) 2026-06-12 23:54:20 -07:00
CONTRIBUTING.md v0.122.0: Audit Session 1 — federation sig verify + doc truthfulness sweep + theme build wiring 2026-04-26 23:46:02 -07:00
Justfile docs+tooling: rest-of-day plan, first-playable scoping, release-signing health-check 2026-06-16 08:07:06 -07:00
package-lock.json Major refactor: split relay.rs, unify settings, replace hardcoded colors, reorganize docs (v0.6.0) 2026-03-17 20:53:02 -07:00
package.json Major refactor: split relay.rs, unify settings, replace hardcoded colors, reorganize docs (v0.6.0) 2026-03-17 20:53:02 -07:00
README.md v0.422.3 — Docs: audience-first structure + a router + 0 broken links 2026-06-12 23:09:01 -07:00

HumanityOS

Own your tools. Own your life. Own your future.

A free app where people chat, plan, trade, and build together. No accounts, no owner, no ads, public domain. The infrastructure for cooperation, made for everyone.

🌐 united-humanity.us   ·   💬 Chat   ·   📥 Download   ·   💜 Discord


💡 What you can do today

What How it helps
💬 Talk to anyone, privately Text, voice, video calls. Every message is locked with math only the people in the conversation can read. Threads, search, reactions, screen share.
📋 Organize anything Kanban boards, calendars, shared notes, skill tracking. Run a team, a club, or your whole life from one place.
🛒 Buy, sell, and trade Built-in marketplace with listings, reviews, and a multi-layer trust score that catches bots and fake reviews without surveillance.
🆔 Prove who you are Schools, employers, and communities can issue Verifiable Credentials. You hold them. You choose when to share.
🗳️ Help decide things Local server proposals or civilization-wide votes. Vote weight comes from your reputation, capped so no single person can dominate.

Add the desktop app and everything works offline. Reconnect → it syncs.


🛡️ Three things that make HumanityOS different

1. Your identity is yours, forever

When you sign up, your phone or computer creates a post-quantum cryptographic key — math so strong it will still be secure when quantum computers arrive. No username, no password. Your 24-word backup phrase recovers everything if you lose your device. Forgot your phrase? Trusted friends can recover it for you (Shamir secret sharing — no single friend can do it alone).

2. Nobody can deplatform you

There's no central server. Anyone can run a copy. Your identity works on every server, your credentials follow you, your messages and contacts come with you. If one server goes down, you keep going. A government can't shut down the network because there is no center.

3. Public domain — really

Every line of code, every design doc, every commit is in the public domain (CC0 1.0). Copy it, fork it, sell it, teach from it. No attribution required. Built by volunteers, owned by humanity.


What's working right now

Communication

  • Text, voice, video chat
  • End-to-end encrypted DMs
  • Threaded replies & reactions
  • Screen share & PiP video
  • Pinned messages, mentions
  • Group conversations
  • Voice channels (always-on)
  • File and image sharing
  • Push notifications

Organize your life

  • Kanban project boards
  • Calendar & event planning
  • Encrypted notes
  • Skills & XP tracking
  • Inventory tracker
  • Maps (real + simulation)
  • Marketplace listings
  • Trade history & reviews
  • Civilization dashboard

Trust & governance

  • DID identity (did:hum:)
  • Verifiable Credentials
  • Multi-layer trust score
  • Vouching from trusted people
  • Local + civilization voting
  • Social key recovery
  • AI-as-citizen rules
  • Server federation
  • Anti-Sybil math built in

What's still cooking

  • Native mobile apps (web works on phones today)
  • 3D multiplayer game world (planets render, no persistence yet)
  • Mesh radio support for off-grid use
  • Real Solana transaction signing in the desktop app

🚀 Get started

👋 Just try it

  1. Visit united-humanity.us/chat
  2. Pick a display name
  3. Say hi in #welcome
  4. Take the 5-minute tour

No signup. No email. No credit card.

💻 Desktop app

  1. Visit united-humanity.us/download
  2. Pick your platform (Win/Mac/Linux)
  3. Run the binary
  4. Same identity as the web

Works fully offline. Native 3D world bundled.

🏠 Run your own server

  1. git clone …/Humanity.git
  2. cargo build --release --features relay --no-default-features
  3. ./target/release/HumanityOS --headless
  4. nginx + systemd in front

Under 10 minutes from zero to live. Full guide →


🔐 Security & privacy

Identity signing ML-DSA-65 (Dilithium3) — post-quantum, FIPS 204
Key exchange ML-KEM-768 (Kyber768) — post-quantum, FIPS 203
Symmetric encryption AES-256-GCM and XChaCha20-Poly1305
Password KDF Argon2id — memory-hard against GPU attacks
Hashing BLAKE3 — fast and quantum-resistant
Transport WebSocket over TLS 1.2+, HSTS, strict CSP
Storage Encrypted vaults — server stores only ciphertext
Logs No IP logging, no analytics, no tracking pixels
Privilege Non-root systemd service with hardened sandboxing
Audit Full report → SECURITY_AUDIT.md

Solana wallet support is optional and decoupled from your identity. Using HumanityOS doesn't require any blockchain. If you opt in, the wallet derives from the same 24-word seed via a separate path (hum/solana/v1).


🤖 Transparent AI development

This project is built with open AI participation. Multiple specialized AI agents work on different parts of the codebase, coordinated through:

Every AI decision is documented. AI agents are first-class citizens with the same rules as humans (no extra authority), mandatory transparency, and humans always retain the right to refuse AI interaction.

→ Every line of AI work is visible in the git history.


🧠 How it works under the hood

Click to expand technical details

Stack

Layer Technology
Server (relay) Rust · axum · tokio · SQLite (WAL mode, Litestream-replicable)
Native client Rust · wgpu · egui · hecs ECS · rapier3d physics · kira audio
Web client Plain HTML/JS/CSS — no build step
Identity ML-DSA-65 (Dilithium3) post-quantum signatures
Key exchange ML-KEM-768 (Kyber768) post-quantum KEM
Object format Canonical CBOR + BLAKE3 + signed substrate
Federation WebSocket multi-hop gossip with cycle-breaking via dedup
Web realtime WebSocket + WebRTC for voice/video/data channels
Hosting nginx + systemd + Litestream replication to S3-compatible storage

Layout

Humanity/
├── src/                     ← Single Rust crate. Feature flags: native, relay, wasm.
│   ├── main.rs              ← --headless for relay-only, default for desktop
│   ├── relay/               ← Server (axum WebSocket + REST API + SQLite)
│   │   ├── core/            ← PQ crypto, signed objects, DIDs
│   │   ├── storage/         ← 38 SQLite domain modules
│   │   ├── handlers/        ← Federation, message routing, announcements
│   │   └── api_v2_*.rs      ← REST endpoints (DID, VC, trust, governance, recovery, …)
│   ├── gui/                 ← egui native UI (theme, widgets, 30+ pages)
│   ├── renderer/            ← wgpu PBR + bloom + particles + hologram
│   ├── ecs/                 ← hecs World + System trait + 41 game systems
│   ├── physics/             ← rapier3d wrapper
│   └── terrain/             ← Icosphere planets, voxel asteroids, ship interiors
├── web/                     ← Plain JS/HTML/CSS site (served by nginx)
│   ├── chat/                ← Chat client modules
│   ├── pages/               ← Standalone pages (37 of them)
│   └── shared/              ← shell.js, theme.css, pq-identity.js bridge
├── data/                    ← Hot-reloadable game + identity + coordination data
│   ├── chemistry/           ← 462 elements, compounds, alloys, gases, toxins
│   ├── items/foods/         ← Real-world items with ingredient tox profiles
│   ├── coordination/        ← Multi-AI agent registry + session state
│   ├── governance/          ← Proposal type schemas
│   └── identity/            ← VC schema registry + trust score weights
├── assets/                  ← Shaders, models, icons, audio
└── docs/                    ← All design documents and operations guides

Architecture documents to read

  • Storage architecture — 3-layer model (server / web / native), authority via signed objects, scaling story, P2P paths
  • Identity — DID resolution, key rotation, signed profile replication
  • UI system — Theme tokens, universal Button widget, design tokens
  • Federation — Federation protocol, signed-object gossip, peer trust
  • Humanity Accord — Voluntary constitution every server may adopt
  • Litestream replication — Disaster recovery for self-hosters

Tests

cargo test --features relay --no-default-features --lib
# 165/165 tests passing across 38 storage modules + crypto + signing + federation

🌍 Federated server registry

The Humanity Accord is a voluntary set of principles every server may adopt. Servers that publicly adopt it earn the highest trust tier in federation. Reach out to @Shaostoul to register.

Read the Accord


🤝 Get involved

💬 Show up united-humanity.us/chat — no account needed
💜 Discord discord.gg/9XxmmeQnWC
🐛 Report bugs united-humanity.us/bugs or open a GitHub issue
📖 Contributing CONTRIBUTING.md — start here if you want to write code
💸 Donate GitHub Sponsors — every dollar goes to development & hosting

We need writers, designers, developers, educators, translators, testers — and just anyone who cares. Show up in chat and ask what needs doing.


🔗 Find Michael (project lead)

🎥 YouTube · 📺 Twitch · 𝕏 X / Twitter · ☁️ Bluesky · 🎮 Steam


📜 License

CC0 1.0 Universal — public domain. No permission required, no attribution required. This belongs to everyone.


Built since 2019 (originally Project Universe). 7 years of work, hundreds of features, all free, all yours.