Tools/mlightcad/cad-viewer

cad-viewer

The world’s first fully web-based DXF/DWG viewer and editor that runs entirely in the browser, no backend server required.

1.1k ★emergingTypeScriptMIT License →trending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Sep 2026

cad-viewer opens AutoCAD drawings (DXF and DWG files) in a web browser and lets you edit them, with no server. The file is parsed on the user's own device and never uploaded. It ships as npm packages and a one-line iframe embed, so you can drop a CAD viewer into your own app. MIT.

DXF works out of the box with the project's own MIT parser. DWG, the format most people actually have, is where licensing kicks in: the open source route uses LibreDWG, which is GPL-3.0, adds roughly 13MB to the download, and still covers drawing entities only partially. There's also an AI assistant plugin that draws lines, circles and layers from a chat panel, using your own OpenAI or Anthropic key.

Internal tools and open source projects: use it freely, DWG included. Closed-source products that need DWG either comply with the GPL or buy the maintainer's commercial parser: $3,000 for a perpetual license, then $1,500 a year if you want upgrades.

The catch: very large DWG files can run the browser out of memory, and the commercial parser's trial licenses go only to companies, not individuals.

Free vs Self-Hosted vs Paid

open core

Free: The viewer, editor, iframe embed and DXF parser are MIT. Self-hosting is static files.

DWG, open source route: The optional @mlightcad/libredwg-converter package wraps LibreDWG and is GPL-3.0. Fine for internal and open source use; shipping it inside a closed-source product triggers GPL obligations. About 13MB of WASM, with partial entity coverage.

DWG, commercial route: The maintainer's proprietary @mlightcad/dwg-converter (about 437KB, no GPL) is $3,000 for a perpetual license, framed as a donation. The first year of upgrades is included; after that, upgrades are $1,500/yr, and you can keep running the version you have without paying. Trials are for companies only. Reselling it as a standalone DWG SDK is prohibited.

AI plugin: Uses your own OpenAI, Anthropic or compatible API key; token costs are yours.

MIT and free for DXF. DWG in a closed-source product means GPL compliance or a $3,000 perpetual parser license.

What to do by team size

Solo
free; DXF and GPL DWG are fine for personal and open source use
Small team
free for internal tools; budget $3,000 if you ship closed-source DWG
Medium team
$3,000 parser license if DWG is core to a commercial product
Large team
$3,000 perpetual plus $1,500/yr for upgrades
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
70/100 · B+
Adoption13/30
Maintenance25/25
Community7/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Community discussions enabled

License: MIT License

Use freely, including commercial. Just keep the license.

Commercial use: ✓ Yes

About

Owner
mlightcad (User)
Stars
1,081
Forks
225

Explore Further

More tools in the directory