Developers

Build it with us.

RefyOS is built from source on top of PureDarwin. Here is how the project is organised, how the system is built, and where it is going.

Source code

The repositories.

The repositories open to the public with the first release. Until then, this is what they hold.

Public at release

System

PureDarwin's full history with our downstream commits on top: the kernel and its extensions, the frameworks, the window server and the system apps.

Public at release

InstaDock

The Dock and the desktop picture, the application switcher and the stacks.

Public at release

Build tools

The scripts that build frameworks and kernel extensions and assemble the images, plus our test and profiling tools.

Building

From source to a bootable image.

The system is cross-built on Linux with a Darwin toolchain: clang, ld64 and cctools. The goal for the first release: the whole system rebuilt from source with one command, by anyone.

  1. SourcePinned versions of every component, ours and third-party.
  2. Toolchainclang, ld64 and cctools targeting x86_64 Darwin.
  3. ComponentsFrameworks, apps and daemons, each checked against the exports it must provide.
  4. KernelXNU and its extensions linked into kernel collections.
  5. ImageA bootable disk image, smoke-tested in a virtual machine.

Binary compatibility is the rule. Every framework we touch keeps Apple's names, signatures and behaviour, so apps built for macOS run unchanged. An export check stops a build that would drop a symbol.

On RefyOS

Develop on the system itself.

The Command Line Tools are part of the image, so you can build Darwin programs right on RefyOS, against the same frameworks that ship with it.

  • clang, ld64, cctools, compiler-rt, dsymutil, bmake
  • AppKit, Foundation, CoreAudio and the other frameworks' headers
  • defaults, hdiutil, systemsetup with macOS's options
// hello.m #import <AppKit/AppKit.h> int main(void) { @autoreleasepool { [NSApplication sharedApplication]; NSAlert *a = [NSAlert new]; a.messageText = @"Hello from RefyOS"; [a runModal]; } } refy:~$ clang -fobjc-arc -framework AppKit hello.m -o hello refy:~$ ./hello
Licensing policy

What may go into the image.

Checked file by file, for every component. A part that doesn't fit is rewritten or replaced, never shipped "for now".

In the image

  • Our own code: MPL-2.0 OR BSD-2-Clause
  • Permissive third-party code: APSL, BSD, MIT, Apache, ISC and the like
  • Fonts under the SIL Open Font License
  • Device firmware, only where its licence allows redistribution

Never in the image

  • GPL or LGPL code, in any part of the system
  • Closed-source software
  • GPL code in the kernel, not even as an option

Optional downloads

Kept apart from the image: GPL or LGPL userland tools with their source code, and vendor drivers exactly as the vendor ships them.

Artwork

The logo, icons and wallpapers are our own, all rights reserved. They are not covered by the code licences.

Roadmap

Where we're going.

Done

A desktop to work in

Dock, menu bar, Finder's desktop, Settings, login and lock screen, fast user switching, light and dark.

Done

Real hardware

Boots from USB on PCs; Wi-Fi, HD Audio and USB audio, backlight, external displays.

Now

Measured compatibility

Real macOS binaries, command-line tools and apps, tested against the system; the missing APIs that block the most programs come first.

Now

Graphics on the GPU

GPU compositing and drawing, zero-copy buffers, then native Intel and AMD drivers.

Next

Rebuildable from source

Every component built from source in one command, with export checks and a virtual-machine smoke test on every change.

Next

First release

A developer preview: a downloadable image, installation notes and release notes.

Later

Swift

The Swift runtime for apps built with Swift, then the compiler on RefyOS itself.

Later

The kernel line

XNU from the macOS 26 (Darwin 25) line, the last for Intel Macs, kept up with security fixes.

Issue tracker
Every task, in the open.

Each task, question and decision has an issue: what was found, what was tried, what was decided and why. Today the tracker is private; it opens together with the repositories.

Bug reports and hardware reports will go there too, once the first image is out.

Contributing

How a change gets in.

01

Fix the cause

Fix a bug where it starts, in the framework, the driver or the kernel. No workarounds in the app on top.

02

Apple's names

A new API comes in only with Apple's name, signature and behaviour, so Mac apps find what they expect.

03

Licence first

Every new file says its licence; code that can't go into the image doesn't go in.

04

Tested twice

In a virtual machine first, then on real hardware.

05

Upstream where it fits

Small, self-contained fixes go back to PureDarwin as pull requests.

06

Pull requests

Open to everyone with the public repositories, at the first release.

Want to help?

The code opens with the first release. Follow the news to hear when, and tell us what you'd like to work on.