

A TypeScript engine for generating AutoCAD DXF files.
DXF Builder is a zero-dependency, 16KB (gzipped) TypeScript library for generating AutoCAD DXF files in both browser and Node.js environments. It provides a direct bridge between modern web applications and industry-standard CAD workflows, allowing developers to construct geometry, define layers, and attach metadata through a strict fluent API.
The engine runs entirely in memory with no server-side dependencies. Applications stream coordinates, text definitions, and block geometry into a document builder, and DXF Builder validates and serializes the result into AC1027-compliant output. Every generated file is ready for direct import into AutoCAD, CNC workflows, and fabrication pipelines.
Strict mode throughout the entire codebase.
Generates AC1027-compliant geometry and drawing data.
Chainable APIs for document and entity construction.
Bundled for both browser and Node.js environments.
Written entirely from scratch without external CAD, geometry, or math libraries. The entire engine is just 16KB minified and gzipped.
Unit and integration testing.
Easiest to reach me on LinkedIn or by email. I read everything and usually reply within a day.