PureRef-style reference-image boards with an infinite canvas, image transforms, notes and limited .pur import.
Open-source alternatief voor PureRef
PureRef-style reference-image boards with an infinite canvas, image transforms, notes and limited .pur import.
READMEhlophlopgaming/mothRef op GitHub
A fast reference board for artists, with crash recovery. Drop images onto an infinite canvas, arrange them, keep them in view while you work.
Download · Features · Controls · Roadmap · CLI · Build from source · Docs
English · Русский · Español · Português (BR) · Français · Deutsch · Italiano · Polski · Svenska · Suomi · Ελληνικά · Türkçe · العربية · हिन्दी · 简体中文 · 日本語 · 한국어
BeeRef was a lovely open-source reference board, and it stopped moving. PureRef is fast and polished, but closed. MothRef picks up where BeeRef left off: native, open, and built to handle huge boards without eating your RAM.
| Priority | How it works |
|---|---|
| Recover your work | Board edits are journaled for crash recovery. Saves add checkpoints, and compaction replaces the file atomically. |
| Keep large boards responsive | Image caches have fixed budgets. By default, full-resolution images stay in video memory up to a hardware-based limit. |
| Keep editing while images load | Decoding, disk I/O and compression run in the background. |
The .moth format embeds and deduplicates original image bytes. If you enable downscaling on import,
the board stores a reduced copy and leaves the source file intact. See the format specification.
Canvas and library
wgpu (Vulkan, Metal or DirectX 12), with a software adapter option where supportedImages, notes and layout
Import and export
.bee) and PureRef (.pur, 1.10 and 2.x) boards, including supported images, text notes and layout. MothRef reports unsupported content and saves edits to a separate .moth fileSpeed and customization
mainmain use schema 11 and require an updated MothRef to reopen. The public alpha saves schema 9. See the changelog for recovery fixes, the AVIF decoder upgrade and dependency updatesIn the list editor, Enter adds an item and exits the list on an empty item. Use Shift+Enter for a line break within an item and Tab / Shift+Tab to change its level. Save the draft with Ctrl+Enter (Cmd+Enter on macOS).
Download the public alpha from GitHub Releases.
Version 0.3.0-alpha.2 offers a Windows ZIP and setup wizard, macOS archives and DMGs
(Apple Silicon and Intel), Linux x86_64 tarball, AppImage, DEB and RPM (Ubuntu 24.04
or a compatible distribution), a Linux ARM64 tarball and AppImage, and an Arch package
and build recipe, plus SHA256SUMS. See the release notes for direct downloads
and formats and installation. The
installers and packages are new in this release and have not been checked by hand on
every system yet.
Windows binaries are unsigned. macOS builds are not notarized.
| To do this | Use |
|---|---|
| Add images | Drop files, Ctrl+V, or Insert → Paste |
| Pan | Middle-drag, Space+drag or W/A/S/D |
| Zoom | Mouse wheel, pinch, or the + / − buttons |
| Fit everything | Home, or tap Space with nothing selected |
| Fit the selection | Tap Space, or double-click a selected image (again to go back) |
| Duplicate while dragging | Alt+drag |
| Rotate / flip | R / Shift+H, Shift+V |
| Group the selection | Ctrl+G |
| View / timed drawing session | Tab / F5 |
| Command palette | Ctrl+K |
| Settings / shortcut cheat sheet | Ctrl+O / / |
| Arrange / edit / export selection | Selection bar, context menu or command palette |
On macOS, use Cmd instead of Ctrl. The full list, plus a side-by-side comparison with PureRef, is in docs/SHORTCUTS.md.
| Release | Scope | Status |
|---|---|---|
| 0.3 public alpha | BeeRef parity, PureRef import, zoom and memory modes | First public alpha released |
| 0.7 beta | PureRef 2 parity, including drawing tools, rich notes and composition overlays | In development |
| 1.0 | Expanded board library, Milanote-style elements, broader import support and release qualification | Planned |
| After 1.0 | Web, collaboration, artist tools and capture integrations | Planned |
| No target release | Android | Planned |
See milestones and performance targets and the feature matrix.
The same mothref executable contains ordinary headless subcommands and a
stateful --agent JSON Lines interface. No extra runtime is required.
mothref create references.moth
mothref add references.moth image.jpg
mothref arrange references.moth --mode grid --gap 24
mothref info references.moth --json
Use mothref --help, the CLI reference and the
agent guide for commands and JSON scripts.
The catalog and agent guide are also embedded in mothref commands --json.
Builds from main support note --kind label|note|list and stroke --style pen|marker|arrow.
On main, use group-origin or add --group-origin for source-folder grouping
and snap-grid to snap items to a given grid spacing.
You need Rust 1.98 or newer plus CMake, a C/C++ toolchain and NASM for x86/x86_64 builds. On Linux, also install the X11/Wayland headers
(libxkbcommon-dev, libdbus-1-dev and libwayland-dev on Debian/Ubuntu).
git clone https://github.com/hlophlopgaming/mothRef.git
cd mothRef
cargo run -p mothref --release
On Arch/EndeavourOS, install the native build dependencies with:
sudo pacman -S --needed base-devel rust cmake nasm libxkbcommon libxkbcommon-x11 libx11 libxcursor libxi libxrandr wayland dbus
Release packaging also produces an Arch build recipe and a pacman package; see packaging and installation.
Use --release for normal use. Optimized builds decode images faster.
cargo run -p mothref --release -- image.png reference.jpg # open images at startup
cargo run -p mothref --release -- board.moth # open a board
cargo run -p mothref --release -- --software # request a software GPU adapter
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo deny check
cargo xtask corpus # round-trip every file in corpus/
cargo xtask bench --quick # render, io and scene benchmarks
cargo xtask paste # paste-to-visible measurement
cargo xtask soak 1800 # long-running memory plateau check
xtask uses optimized builds so timings exclude debug overhead. Use bench --quick --enforce on reference
hardware to enforce the 8 ms p99 frame budget, and bench --quick --software to exercise a CPU adapter.
For decoder fuzzing, install cargo-fuzz and a nightly toolchain:
mkdir -p fuzz/corpus/image_reader
cp corpus/images/* fuzz/corpus/image_reader/
cargo +nightly fuzz run image_reader fuzz/corpus/image_reader -- -max_total_time=300
Fuzz targets also exist for moth_reader, bee_reader and pur_reader.
crates/
mothref/ the app: event loop, windows, tabs
moth-scene/ scene graph, commands, undo/redo (no GPU, no I/O)
moth-format/ .moth reader/writer, journal, recovery
moth-io/ image decoding, preview and tile caches
moth-render/ wgpu renderer
moth-ui/ egui interface, theme, motion, localization
moth-platform/ OS-specific code: clipboard, input, settings
moth-import/ BeeRef .bee and PureRef .pur import
moth-thumb/ thumbnails for file managers
third_party/purcore/ attributed fork of LazyRef's .pur reader
xtask/ benchmarks, corpus checks, soak tests
corpus/ test boards and images
docs/ format spec, architecture, decisions
.moth file formatBug reports and ideas are welcome in Issues. Before sending code, read AGENTS.md: it covers the architecture rules, data-safety rules and which checks to run. It applies to humans and AI coding agents alike.
MothRef is free software under the GNU GPL v3.0 or later. Third-party fonts and code are listed in THIRD_PARTY.md.
PureRef import is built on a fork of purcore from LazyRef (MIT).
"BeeRef", "PureRef" and "Milanote" are named only to describe compatibility; MothRef is not affiliated with them.
Artwork in the screenshots is by David Revoy: Electron donor, Peacock dragon and Alice in Wonderland, licensed under CC BY 4.0. The illustrations are scaled for display.
Laatst bijgewerkt vanaf GitHub: 4 uur geleden
GitHub-cijfers worden een paar keer per dag ververst.
Log in of maak een account aan om te reageren.
Nog geen reacties. Wees de eerste.
Laat het zien: een live kaart met je positie en beoordeling, die zichzelf bijwerkt.
Liever de kleine? Voeg toe: ?style=flat