Duc File Format

An open SQLite-backed 2D CAD file format, shipped with first-class libraries for Rust, Python and TypeScript

SQLite at the core

A .duc file is a zlib-compressed SQLite database. Query it directly, version it, or stream it, the same file works from a browser, a Python notebook, or a Rust service.

Dynamic scales

Fluid transition between unit scopes, from meters down to nanometers, in metric or imperial. At every level, 100 grid units resolve to a single measurement unit and each square holds an infinite density of points, so precision is never lost as you zoom between macro and micro.

Infinite canvas

A boundless geometric surface anchored at (0, 0) with free negative coordinates. Pan and zoom without limits, the same file stays usable from a quick sketch to a city-scale plan.