Rulingpen

Install

The viewer

Nothing to install. Open the viewer page and drop a drawing on it. It needs JavaScript and WebAssembly. It has been tested in Chromium; it uses nothing that 2023 browsers lack, but Firefox and Safari have not been checked yet. Once the page has loaded it works with the network switched off.

The rp command

rp is one executable with no runtime dependencies: no CAD program, no fonts to install, no services to run.

Release archives are not published yet. Until they are, licence holders receive a build directly, and anyone with the source can build it:

# Rust 1.85 or later
cargo build --release -p rulingpen-cli --features gated
./target/release/rp

--features gated makes the build check licence keys for the paid commands, as the released builds do. A build without it runs every command without a key; it exists for development and for the judges, and is not a licence to use the paid commands.

The build has been made and tested on macOS (Apple silicon, macOS 27). The code has no platform-specific parts besides where the licence key is kept, but Linux and Windows builds have not been produced or tested yet, so they are not promised.

Put rp anywhere on your PATH. Running it with no arguments prints its usage and exits with status 1:

$ rp
usage:
  rp info <file> [--json]             version, counts, cached and computed extents
  rp dump <file>                      canonical JSON Lines dump of the whole drawing (licensed)
  rp plot <file> -o <out.svg|out.pdf|out.png>
          [--layout NAME | --view saved]   a paper layout, or model space as last saved
                                           (default: model space zoomed to extents)
          [--size WxH]                     pixels, for PNG and SVG
          [--paper WxH]                    millimetres, for PDF (default 420x297)
          [--white]                        white background for PNG and SVG
                                           PNG is free; PDF and SVG need a licence
  rp licence [status | install <key> | refresh | remove]

Where things are kept

rp keeps one file, the licence key, and only after rp licence install:

PlatformFile
macOS~/Library/Application Support/rulingpen/licence.key
Linux, BSD$XDG_CONFIG_HOME/rulingpen/licence.key, else ~/.config/rulingpen/licence.key
Windows%APPDATA%\rulingpen\licence.key

Beside it, a licensed build keeps revoked.json, the list of refunded licences, fetched at most once a day. Nothing else is written except the files you ask rp plot to make.

The library

The library is the same engine as Rust crates (rulingpen-core, rulingpen-dwg, rulingpen-dxf, rulingpen-geom, rulingpen-text, rulingpen-render, rulingpen-out). How licence holders receive the crates (a private registry or a source archive) is being settled before sales open. See the drawing model for how to use them.