Rulingpen

Clean room and privacy

How the engine was written

From the published format. The DWG format was implemented from the Open Design Alliance's public specification of it and from looking at files.

LibreDWG only as a program to check against. LibreDWG is GPL-licensed. Rulingpen uses its compiled programs (dwgread, dwg2dxf, dwgbmp, dwglayers) as an oracle: run on the same file, their output is compared with Rulingpen's. Nobody working on Rulingpen opens LibreDWG's source code; its test drawings are fetched without the source beside them.

ezdxf for understanding, not for copying. ezdxf is MIT-licensed. It is the reference the DXF judge compares against, and reading it to understand what a DXF field means is allowed. Its code is not copied.

No Autodesk files are shipped. No AutoCAD fonts, hatch pattern files or plot style tables. The stroke fonts are built from public-domain Hershey data; the fallback outline font is Liberation Sans (SIL Open Font License); hatch patterns are written from their published definitions.

Test drawings are not redistributed. The corpus used for measuring is collected from public sources and kept with the terms each source states. It is never committed to the repository or shipped.

Dependencies are under permissive licences: on 1 December 2026 the 45 third-party crates in the build were under MIT, Apache-2.0, BSD, Zlib, 0BSD or Unlicense terms (each offering MIT or Apache-2.0 where it offered a choice), one with the Unicode licence for its data. No GPL or LGPL code is linked into Rulingpen.

Trademarks. AutoCAD and DWG are trademarks or registered trademarks of Autodesk, Inc. They are used only to say which files Rulingpen reads. Rulingpen is not made, endorsed or supported by Autodesk.

Hostile files

Drawings arrive from strangers. Every reader limits what it allocates (ReadOptions), never panics on bad input, and reports what it could not read instead of guessing silently. The DWG container is tested on 100 deliberately damaged copies of every file in its sample; the number of panics allowed is zero (see the numbers page). No unsafe code is allowed anywhere in the engine.

Privacy

The viewer. Your drawing is read by the page itself, in your browser. It is never uploaded: the page's security policy allows it to talk only to the site it came from, and it sends nothing there either. Once the page has loaded you can switch off your network and it keeps working. A licence key typed into the viewer is checked in the page and kept in that browser only.

**The rp command** reads and writes only the files you name, and its licence key. A licensed build makes two kinds of request to the licence service, described in Licence keys: the list of refunded licences, at most once a day, and the current key for your licence when yours has expired. Neither carries a drawing, a file name or anything about your machine beyond its IP address. A build without licence checking makes no network requests at all.

The library makes no network requests.

Buying. Payment is taken by Stripe; Rulingpen never sees card details. The licence service keeps, for each licence, its tier, seats, dates, the Stripe customer and subscription ids, and a salted hash of the buyer's email address; no email address is stored in it, and none is inside a key. Keys are emailed to the buyer. The privacy policy has the full statement.