◐ Moontop — A Full-Featured Terminal Interface for the Snapmaker U1

I have read and understood all rules of the Innovation Fund Phase 2

on

I consent to my project information (username, project cover, summary, etc.) being publicly displayed for review and showcase

on

Username (for public display)

WildTang3nt

Project name

Moontop

Project URL

Project cover

Project Category

Software

Project Summary

What if you could manage your Snapmaker U1 without opening a web browser? Moontop is an open-source, keyboard-driven terminal interface for Klipper printers. I develop and test it on a physical U1. It runs on Linux, macOS, Windows and FreeBSD, and can be used over SSH. It runs on your computer and connects to the printer through a compatible Moonraker API.

The dashboard brings together printer status, temperatures, motion and tuning controls, G-code files, print jobs, macros and a console. Moontop discovers the tools and controls exposed by the printer, so the interface can adapt to the U1’s toolchanger and other Klipper configurations. Supported setups can also expose AFC lane information and controls. Dedicated views cover bed mesh, machine status, logs, configuration and administration. Printer capabilities depend on the connected setup, and the public roadmap tracks operations still awaiting physical validation.

One of my favourite features is a live webcam inside the terminal. Moontop uses Moonraker’s configured camera sources and FFmpeg for decoding. Ghostty, Kitty and WezTerm can render the feed using the Kitty graphics protocol. Other terminals can use character graphics. The dashboard also has configurable panes and twelve colour themes, including green phosphor.

Moontop is written in Go with Bubble Tea and Lip Gloss. It uses Moonraker’s WebSocket JSON-RPC and HTTP APIs, and a simulated Moonraker server supports automated tests. Standalone CLI commands also let you inspect printer state, upload jobs and send G-code without opening the dashboard.

The Phase 2 entry builds on my June prototype, which already supported basic printer control. The work during Phase 2 expanded it into a released application with a wider set of controls, terminal video, CLI utilities, automated tests and cross-platform binaries. The public Git history and release notes document those changes. Cash Fund support would help expand real-hardware validation and improve reconnect reliability and print monitoring.

Moontop is free under the MIT license. Visit Moontop — Klipper in your terminal for setup instructions and Release v0.2.2 · justinh-rahb/moontop · GitHub for prebuilt releases.

Open Source Status

Open Source

Please specify the open source license used by this project

MIT

Cash Fund or U1 Hardware Sponsorship

Cash Fund

Originality

Improvement / optimization based on an existing project

If based on an existing project — your independent contribution

The original project is my own June 2026 Moontop prototype, documented at Add LICENSE and README files; rename app title to "Moontop" · justinh-rahb/moontop@8bc9ce8 · GitHub. It already had basic terminal printer and job controls. During Phase 2 I expanded the dashboard and printer capability discovery, added file and administration workflows and standalone CLI utilities, and built out the simulated Moonraker tests, CI and cross-platform release process. The webcam feature originated with a community contribution and was integrated into the Phase 2 releases. Moontop is independently implemented in Go and uses the Moonraker API.

Is it a paid project?

No

Moontop — Technical Details and Development Evidence

For anyone interested in the implementation, here’s a closer look at the architecture, testing, and development work behind Moontop.

Architecture

Moontop is written in Go with Bubble Tea and Lip Gloss. It uses Moonraker JSON-RPC over WebSocket for printer communication and the Moonraker HTTP API for files and administration. Printer notifications update the application’s internal state, and asynchronous requests keep network operations out of the rendering and keyboard event paths. The interface discovers available tools, sensors, fans, outputs, and macros rather than assuming a fixed printer configuration.

On a compatible U1 Moonraker setup, the dashboard puts tool selection, heater controls, print files, job status, and macros within reach of the keyboard. Macro support includes searchable and pinned entries, parameter forms, and interactive prompts. Other views cover bed mesh, machine and MCU status, software, services, power devices, logs, and configuration files. The available controls depend on the printer’s configuration. Moontop provides emergency-stop access and checks jog requests against homing state and travel limits.

Terminal camera and command line

The camera follows Moonraker’s enabled webcams and their configured orientation. FFmpeg decodes supported live sources. Kitty graphics render detailed frames on Ghostty, Kitty, and WezTerm, with quadrant or half-block rendering available on other terminals. Thanks to djsplice for contributing the camera feature, and to jimmyjon711 for AFC and sensor feedback.

The standalone commands also work without opening the dashboard:

moontop console           # Interactive G-code console
moontop gcode M115        # Query printer firmware information
moontop dump              # Export printer state as JSON
moontop upload file.gcode # Upload G-code
moontop print file.gcode  # Upload and start a print

Testing and hardware validation

The repository includes a simulated Moonraker server for exercising RPCs, printer status notifications, keyboard interaction, configuration differences, error conditions, and safety refusals. Continuous integration runs formatting and static checks, cross-platform tests, and Go’s race detector.

The dashboard, toolhead controls, temperature display, file browser, and full-screen tools have been exercised on my Snapmaker U1 and Qidi Q2. Community testing covers AFC display and console output, and the camera has been tested in Ghostty. The roadmap tracks operations still awaiting physical validation, including AFC load, unload, and eject, extrusion and filament commands, power switching, upload-and-print, and some webcam streaming modes. Feature availability depends on the printer and its Moonraker configuration.

Development timeline

  • June 26, 2026 — The early Moontop prototype already provided basic terminal printer and job controls.
  • November 1 — v0.1.0 — First public release with a configurable dashboard, printer management, macros, files, administration, CLI commands, and cross-platform builds.
  • November 1 — v0.2.0 — Terminal webcam support, improved AFC output, humidity sensors, and printer switching.
  • November 2 — v0.2.1 — Improved camera rendering, persistent interface choices, and safeguards for credentials on cross-host redirects.
  • November 6 — v0.2.2 — Dependency maintenance release.

Source and documentation

The source is available under the MIT license. Contributions, bug reports, and testing feedback are welcome.

Sorry, but why?

…in other words, anywhere it wouldn’t be inconvenient to use a web browser.

Because not everyone uses their tools the same way. :slight_smile:

Moontop isn’t trying to solve the problem of web browsers being unavailable. It’s providing a different workflow for people who prefer working in a terminal, along with standalone CLI utilities for scripting, diagnostics, and automation.

Mainsail and Fluidd are excellent interfaces, and I use them too. The existence of one good way to do something doesn’t mean there isn’t room for another.

It’s not solving a problem that exists in anyone’s mind but yours. It’s your pet project and it would be appropriate in the mods & builds section of the forum – but you have chosen to present it for the innovation fund. I’m critical only because it doesn’t seem to me to meet the standard required to qualify for consideration.

Looks awesome

“If a product doesn’t makes sense, it may not be meant for you.”

I’ve done automated control and testing of printers in the past including the U1. The REST API was enough for what I was doing.

But I can see the utility of something like this. It’s neat.

This comes in handy for me, sometimes I use alternative methods to slice/send prints (CLI), so being able to switch to another terminal tab and check on the printer is pretty sweet!