# mirage/mirage

MirageOS is a library operating system that constructs unikernels

Repository: https://github.com/mirage/mirage
Canonical: https://ross.abutalabs.com/products/mirage-mirage
Homepage: https://mirageos.org
Language: OCaml
License: ISC
License Family: permissive
Topics: mirageos, unikernel, xen, kvm, ocaml, opam, linux
Last push: 2026-07-28T11:01:30+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 94, release rhythm 95, longevity 100
- inputs: {"age_days": 6116, "days_push": 36, "days_rel": 36, "gap_med": 28.5, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2981, forks 276 (observed 2026-08-28T04:07:33.162005+00:00)

## What it is
MirageOS is a library operating system written in OCaml that compiles application code into fully standalone, specialized unikernels for secure, high-performance network applications. This repository contains the `mirage` command-line tool that configures and builds unikernels targeting Xen, KVM/Solo5, BHyve, VMM, and Unix/macOS userlevel backends.

## Use cases
- build a unikernel in OCaml
- deploy a minimal single-purpose VM to the cloud
- run a secure network service without a full OS
- compile an OCaml app into a standalone Xen or KVM image
- reduce memory footprint of a server application
- develop on Linux or macOS and deploy as a hypervisor kernel

## When to choose
- you want small, fast-booting, resource-efficient single-purpose services
- you prefer OCaml's type safety for systems code
- you deploy on Xen, KVM, BHyve, or OpenBSD VMM hypervisors
- you need a minimal trusted computing base for security-sensitive services

## When to avoid
- you need preemptive multithreading or a general-purpose OS environment
- your team has no OCaml experience
- you rely on arbitrary existing libraries requiring a full POSIX OS
- you need broad third-party package compatibility outside the OCaml ecosystem

## Facets
- artifact type: framework
- maturity: active
- function: build-tool, cli, compiler, networking, concurrency, deployment
- domain: operating-systems, cloud-computing, programming-languages, security, self-hosted
- platform: bsd, cloud, cli, cross-platform
- tags: unikernel, library-operating-system, ocaml, opam, dune, xen, kvm, solo5, hypervisor, cloud-deployment, event-driven, type-safe, devops, linux, macos

## Member repositories
- mirage/mirage (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:33.162005+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:31:30.075769+00:00, confidence not recorded.
  - readme: https://github.com/mirage/mirage (fetched 2026-08-28T04:07:33.162005+00:00, sha b9d8dc252a9b)
  - homepage: https://mirageos.org (fetched 2026-08-29T09:46:47.527823+00:00, sha 09fa328c2425)
  - site_page: https://mirageos.org/docs (fetched 2026-08-29T09:46:47.536721+00:00, sha 35367d24aff7)
  - site_page: https://mirageos.org/docs/hello-world (fetched 2026-08-29T09:46:47.538750+00:00, sha 771b63b330de)
  - site_page: https://mirageos.org/docs/mirage-4 (fetched 2026-08-29T09:46:47.541344+00:00, sha 4284f5ec6d03)
  - site_page: https://mirageos.org/docs/xen-boot (fetched 2026-08-29T09:46:47.543086+00:00, sha f1f24bbec755)
  - site_page: https://mirageos.org/docs/talks (fetched 2026-08-29T09:46:47.545163+00:00, sha f565256d11f8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
