Skip to content
Β 
Β 

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CivOS Logo

Civilization OS

The open-source, offline-first platform to rebuild civilization after collapse.

Quick Start β€’ What Is CivOS β€’ Features β€’ Knowledge Vault β€’ Hardware β€’ Contributing β€’ License

MIT License 100% Offline Alpha PRs Welcome


The Problem

In a total civilizational collapse β€” nuclear war, pandemic, solar EMP β€” survivors default to subsistence farming and oral tradition, losing centuries of accumulated knowledge. Existing resources are either static libraries with no intelligence, survival apps that require internet, or scattered PDFs that are impossible to search under stress.

The first group to organize wins. Speed of coordination equals survival advantage.

What Is CivOS

CivOS (Civilization OS) is a fully offline, AI-powered civilization accelerator designed to be downloaded today and activated after any collapse scenario. It turns survivors with a salvaged laptop into a rapid-rebuild team: part encyclopedia, part expert tutor, part virtual R&D lab, part project manager.

This isn't a survival app. It's a complete platform to leapfrog from stone age to industrial age 2.0 using whatever local resources survive.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    CIVILIZATION OS v1.0                      β”‚
β”‚                                                             β”‚
β”‚   Download today.  Store in a Faraday cage.                 β”‚
β”‚   Boot after collapse.  Rebuild faster than anyone else.    β”‚
β”‚                                                             β”‚
β”‚   "From ashes, we rebuild β€” faster."                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Core Design Principles

  • Offline-first and EMP-resilient β€” Download once via torrent/ISO. Store on rugged USBs or optical media in Faraday cages. Runs entirely from RAM or minimal storage. Zero cloud dependencies.
  • Hardware-agnostic β€” Works on a modern laptop, a 20-year-old PC, a smartphone, or even scrap 8086 hardware via CollapseOS/DuskOS integration.
  • AI as force multiplier β€” Local LLM (no cloud) that reasons step-by-step from your exact resources. "I have these scrap wires and a car battery β€” build me a generator?"
  • Curated and practical β€” Not raw Wikipedia dumps. Prioritized, cross-linked, tested knowledge focused on doing, with safety warnings for nuclear/fallout contexts.
  • Self-replicating β€” Full source code included. You can rebuild CivOS itself from scratch.
  • 100% open source β€” MIT licensed. Built on proven FOSS. Community-improvable before any crisis.

Quick Start

Run the Web Interface (Development)

# Clone the repo
git clone https://github.com/mikema-rgb/civilization-os.git
cd civilization-os

# Install dependencies
npm install

# Start development server
npm run dev

Open http://localhost:5173 in your browser.

Build for Production

npm run build

The dist/ folder contains a fully self-contained static site that works offline β€” no server required. Open dist/index.html directly in any browser.

Deploy to USB (Offline Kit)

# Build the static site
npm run build

# Copy to USB drive (replace /mnt/usb with your mount point)
cp -r dist/ /mnt/usb/civOS/

The entire web interface is a single static bundle. No internet required to use it.


Features

πŸ—ΊοΈ Personalized Rebuild Roadmap

On first boot, CivOS runs a Situation Assessment:

  1. Hardware Triage β€” What device are you running on? (Determines AI availability)
  2. Survivor Count β€” How many people? (Adjusts team roles and governance templates)
  3. Resource Inventory β€” What do you have? Solar panels, car batteries, seeds, tools...
  4. Radiation Status β€” Current exposure levels (Adjusts shelter/scavenging priorities)

CivOS generates a personalized 30/90/365-day rebuild plan tailored to your exact situation. Every recommendation adapts: no power source? Emergency generator is Priority #1. Have seeds? Start planting fast-calorie crops immediately.

🧠 AI Rebuilder Mentor

The game-changer for technological superiority. A local LLM fine-tuned on physics, engineering, chemistry, biology, and rebuilding knowledge:

  • Diagnose problems β€” "My alternator is fried β€” here's how to rewind it with copper from power lines"
  • Simulate & optimize β€” Physics/chemistry models via SciPy. "Prioritize these 5 projects with my 4 survivors and scrap inventory"
  • Teach interactively β€” Step-by-step tutorials adapted to your exact materials
  • Radiation reasoning β€” "My Geiger reads 0.5 mSv/hr. Is it safe to scavenge?" β†’ Detailed safety protocols

Other groups rediscover the wheel slowly. You have an expert consultant that never sleeps and cross-references 10,000 years of knowledge instantly.

Current status: The web interface ships with a simulated AI mentor demonstrating the interaction model. The full local LLM stack (Ollama + quantized Llama 3.2) is planned for the bootable ISO distribution. See Roadmap.

πŸ“– Knowledge Vault (~197 GB)

Module Size Contents
Wikipedia (Kiwix) ~90 GB Full English Wikipedia, offline searchable
iFixit Repair Manuals ~15 GB Thousands of device/machine repair guides
Medical Library ~8 GB Surgery, pharmacology, radiation medicine, field guides
Engineering Corpus ~12 GB Metallurgy, EE, mechanical, chemical engineering
Agriculture & Botany ~6 GB Permaculture, seed saving, regional crop guides
Project Gutenberg ~8 GB 70,000+ texts including historical tech manuals
OpenStreetMap ~25 GB Full offline world maps with navigation
Manufacturing Blueprints ~4 GB 3D-printable designs: turbines, engines, radios, pumps
Nuclear Survival Guides ~2 GB FEMA, ORNL, Kearny β€” tested fallout/EMP protocols
AI Models (Quantized) ~14 GB Llama 3.2/3.3 fine-tuned for rebuild reasoning

Core survival set fits on a 256 GB USB. Full suite on 512 GB.

πŸ“š Rebuild Tracks

Step-by-step progressions inspired by Lewis Dartnell's The Knowledge + modern engineering:

Phase 0: Immediate Survival (Day 0–30) Radiation detection, water purification, emergency shelter, first aid, group organization

Phase 1: Stabilization (Month 1–6) Food production, energy from junk, sanitation, basic chemistry, communications revival

Phase 2: Industrial Rebuilding (Year 1+) Metallurgy, machine tools, medicine, advanced energy, electronics, computing bootstrap

☒️ Radiation Monitoring Dashboard

  • Live sensor integration (ESPGeiger and compatible hardware)
  • 24-hour dose history with threshold alerts
  • Decontamination protocols
  • Fallout modeling (wind/current predictions)
  • Safe scavenging zone mapping

πŸ”§ Maker + Lab Suite

Full offline engineering toolkit:

Category Tools
CAD/Design FreeCAD, OpenSCAD, KiCad, LibreCAD
Simulation SciPy/NumPy, Circuit Sim, FEA Engine
Programming Python 3, GCC/G++, Forth, AVR/ARM ASM
Communications GNU Radio, BATMAN Mesh, Packet Radio
Radiation ESPGeiger Interface, Fallout Mapper, Dose Logger
Productivity SQLite DB, Task Tracker, Inventory System

πŸ“‘ Communications & Mesh Networking

  • Mesh networking (BATMAN) for local survivor networks via salvaged WiFi/LoRa
  • Software-defined radio (GNU Radio) + build guides for ham/shortwave from junk
  • One laptop serves an entire group via local WiFi hotspot mode

⚑ CollapseOS / Extreme Mode

If modern PCs die completely, CivOS includes Forth-based operating systems (CollapseOS/DuskOS) that run on Z80/8086/6502 processors β€” found in old calculators, industrial equipment, and 1980s computers. You can bootstrap computing from literal scrap.


Hardware Requirements

CivOS is designed to run on whatever survives:

Tier Hardware RAM AI Mentor Notes
🟒 Modern Laptop/PC (2015+) 8–16 GB βœ… Full Best experience. Full AI reasoning.
🟑 Legacy Old PC (2005-2015) 2–4 GB ❌ Text only Knowledge vault + tools work fully
🟑 Mobile Smartphone/Tablet 2–6 GB ❌ Text only Runs web interface in browser
🟠 Micro Raspberry Pi / SBC <1 GB ❌ Text only Can serve as mesh network node
πŸ”΄ Extreme Z80/8086 scrap <64 KB ❌ CollapseOS mode β€” Forth-based

Project Structure

civilization-os/
β”œβ”€β”€ public/
β”‚   └── logo.svg              # Project logo
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.jsx                # Main CivOS application
β”‚   β”œβ”€β”€ main.jsx               # React entry point
β”‚   └── index.css              # Global styles
β”œβ”€β”€ index.html                 # HTML entry point
β”œβ”€β”€ package.json               # Dependencies and scripts
β”œβ”€β”€ vite.config.js             # Build configuration
β”œβ”€β”€ LICENSE                    # MIT License
β”œβ”€β”€ CONTRIBUTING.md            # Contribution guidelines
β”œβ”€β”€ CODE_OF_CONDUCT.md         # Community standards
└── README.md                  # This file

Roadmap

CivOS is currently an alpha-stage interactive prototype. Here's what's planned:

Phase 1 β€” Web Interface (Current)

  • Boot sequence and situation assessment flow
  • Personalized rebuild roadmap generator
  • Knowledge vault browser with rebuild tracks
  • AI mentor chat interface (simulated)
  • Radiation monitoring dashboard
  • Maker/lab suite catalog
  • Persistent state (IndexedDB for progress tracking)
  • PWA support (installable, works offline)
  • Print-friendly procedure exports

Phase 2 β€” Knowledge Integration

  • Kiwix/ZIM reader integration for offline Wikipedia
  • OpenStreetMap tile renderer
  • Searchable iFixit and medical databases
  • Manufacturing blueprint viewer (STL/STEP)
  • Offline video tutorials (compressed)

Phase 3 β€” AI Mentor (Local LLM)

  • Ollama integration for local model serving
  • Fine-tuned Llama 3.2/3.3 rebuild model
  • Vision support (analyze photos of resources/readings)
  • Resource-aware reasoning ("given what you have...")
  • Physics/chemistry simulation integration

Phase 4 β€” Bootable ISO

  • Lightweight Linux base (Puppy Linux/antiX derivative)
  • Boot from USB/DVD with full GUI
  • WiFi hotspot mode for group access
  • CollapseOS/DuskOS integration for scrap hardware
  • EMP-hardened distribution packaging
  • Torrent distribution network

Phase 5 β€” Community & Expansion

  • Mesh network auto-discovery
  • Inter-settlement communication protocols
  • Community knowledge contribution pipeline
  • Regional adaptation packs (climate, flora, resources)
  • Multi-language support

Distribution Strategy

Pre-crisis:

  • Free ISO download (~200-500 GB depending on modules)
  • Torrent distribution for resilience
  • Physical media kits (USB + printed quick-start card)
  • Encourage multiple backup copies in Faraday cages

Post-crisis:

  • Plug in β†’ Boot β†’ Situation assessment β†’ Personalized roadmap
  • One device serves an entire group via WiFi hotspot
  • Scales to inter-settlement mesh networks as infrastructure rebuilds

Contributing

We welcome contributions from everyone. See CONTRIBUTING.md for guidelines.

High-impact areas where help is needed:

  • 🧠 AI/ML β€” Fine-tuning rebuild-focused LLM, optimizing for low-RAM inference
  • πŸ“š Knowledge curation β€” Reviewing, structuring, and testing survival/rebuild procedures
  • 🐧 Linux/OS β€” Building the bootable ISO, driver support, EMP hardening
  • πŸ“‘ Radio/Networking β€” Mesh networking, SDR integration, packet radio
  • ☒️ Nuclear science β€” Radiation modeling, fallout prediction, dosimetry
  • πŸ₯ Medicine β€” Field medicine procedures, pharmacology from natural sources
  • βš™οΈ Engineering β€” CAD templates, manufacturing procedures, materials science
  • 🎨 Design/UX β€” Making the interface usable under extreme stress and poor conditions
  • 🌍 Translation β€” Multi-language support for global distribution
  • πŸ§ͺ Testing β€” Actually building things from the procedures (IRL testing)

How to Contribute

# Fork the repo, then:
git clone https://github.com/mikema-rgb/civilization-os.git
cd civilization-os
npm install
npm run dev

# Create a branch for your feature
git checkout -b feature/your-feature-name

# Make your changes, then submit a PR

Philosophy

"The best time to prepare was yesterday. The second best time is now."

Existing prepper resources are either static libraries (great but unsearchable under stress), survival apps (useless without internet), or scattered PDFs (impossible to cross-reference). CivOS combines curated knowledge + AI reasoning + engineering tools into a single platform that adapts to your exact post-collapse reality.

A small group with CivOS could:

  • Detect and avoid radiation hotspots immediately
  • Build reliable power and communications in weeks
  • Scale food production and basic manufacturing in months
  • Rebuild electronics and computing in 1-2 years

Without it? Survivors default to subsistence and oral tradition β€” losing centuries of progress. With it? You become the seed of a new technological civilization.

Humanity's backup drive β€” literally.


Acknowledgments

CivOS builds on the shoulders of giants:


License

MIT License β€” see LICENSE for details.

Use it. Fork it. Improve it. Store it in a Faraday cage. Share it with everyone you know.


⚑ CIVILIZATION OS ⚑
From ashes, we rebuild β€” faster.

About

CivOS

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages