{"id":40477192,"url":"https://github.com/mlightcad/libredwg-web","last_synced_at":"2026-01-20T18:25:50.447Z","repository":{"id":319311156,"uuid":"1073720586","full_name":"mlightcad/libredwg-web","owner":"mlightcad","description":"A DWG/DXF JavaScript parser based on libredwg","archived":false,"fork":false,"pushed_at":"2026-01-20T05:47:35.000Z","size":96310,"stargazers_count":28,"open_issues_count":2,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-20T13:51:27.102Z","etag":null,"topics":["autocad","cad","dwg","dwg-reader","dxf","dxf-reader","libredwg"],"latest_commit_sha":null,"homepage":"https://mlightcad.github.io/libredwg-web/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlightcad.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":"CONTRIBUTING","funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"rurban","patreon":"rurban"}},"created_at":"2025-10-10T14:16:14.000Z","updated_at":"2026-01-20T06:20:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ed11a28-5018-426e-8f26-dd7ac198b498","html_url":"https://github.com/mlightcad/libredwg-web","commit_stats":null,"previous_names":["mlightcad/libredwg-web"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mlightcad/libredwg-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlightcad%2Flibredwg-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlightcad%2Flibredwg-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlightcad%2Flibredwg-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlightcad%2Flibredwg-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlightcad","download_url":"https://codeload.github.com/mlightcad/libredwg-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlightcad%2Flibredwg-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autocad","cad","dwg","dwg-reader","dxf","dxf-reader","libredwg"],"created_at":"2026-01-20T18:25:49.382Z","updated_at":"2026-01-20T18:25:50.430Z","avatar_url":"https://github.com/mlightcad.png","language":"C","funding_links":["https://github.com/sponsors/rurban","https://patreon.com/rurban"],"categories":[],"sub_categories":[],"readme":"LibreDWG - free implementation of the DWG file format\n\nLibreDWG is a free C library to read and write DWG files.  This program is\npart of the GNU project, released under the aegis of GNU.  It is licensed\nunder the terms of the GNU General Public License version 3 (or at you option\nany later version).\n\nDWG is a file format created in the 70's for the emerging CAD applications.\nCurrently it is the native file format of AutoCAD, a proprietary CAD program \ndeveloped by AutoDesk.\n\nLibreDWG is a fork from LibDWG due to its usage of Esperanto, which we\nthink is not the best strategy for a free software project which aims\nto get lots of contributors. LibreDWG is written in English. At the\nmoment our decoder (i.e. reader) is done, it can read all DWG\nversions, just some very advanced R2010+ objects fail to read and are\nskipped over. The writer is good enough for R1.4 - R2000. Among the\nexample applications we wrote using LibreDWG is a reader, a writer, a\nrewriter (i.e. saveas), an initial SVG and Postscript conversion, dxf\nand json converters, dwggrep to search for text, and dwglayer to print\nthe list of layers. More are in the pipeline. Please contact us if you\nwant to help.\n\nThe strings API is UTF-8 (WTF8 really, Windows UCS-2 has no surrogate\npairs), and encodes to the internal 8-bit or UCS-2 strings, depending\non the DWG version. Older DWG's are encoded in ~30 codepages, which we\nconvert to unicode/UTF-8.\n\nWe also maintain a diff document for our internal fixed ODA-5.4.1 spec\nat doc/ODA-5.4.2-libredwg-diff.pdf\n\nFor contact file a ticket or email the package maintainers:\n\nReini Urban \u003crurban AT cpan.org\u003e\n\nThe now inactive founders and previous maintainers were:\n\nFelipe Corrêa da Silva Sanches \u003cjuca AT members.fsf.org\u003e\nRodrigo Rodrigues da Silva \u003cpitanga AT members.fsf.org\u003e\nHardeep Singh Rai \u003chardeep.rai AT gmail DOT com\u003e\n\nIf you are looking for general information about the project, check our website:\nhttp://www.gnu.org/software/libredwg/\n\n== Building and installing the library ==\n\nYou need the following dependencies:\n- Basic development tools (a C99 compiler like gcc/clang, make, autoconf, automake\n  and libtool)\n\nOptionally:\n\n- libiconv: optional codepage conversion. without it's just a bit slower.\n- libmimalloc: faster memory allocation, but usually not worth the hassle.\n- pslib for dwg2ps: http://pslib.sourceforge.net/doc/pslib.html\n- pcre2 with 8bit and 16bit libraries for dwggrep regexp support.\n- gperf to update static hashes for several API's\n  Only needed when you added objects or changed the dwg.spec significantly\n- cmake, ninja\n- TeXinfo for building the docs\n- SWIG 1.7+\n- Python 2.7 or 3.x development headers (debian: python-dev; yum: python-devel)\n  and the libxml2 python bindings.\n- Perl 5 for the perl bindings\n- doxygen to generate the reference manual\n- jq to check json validity, and as dwgfilter backend\n- shellcheck to check shell scripts\n- rpmlint to check the spec validity\n- jinq with some svg11 relaxng to check SVG validity.\n  LaTeXML used to have a broken svg11-basic.rng. If so\n  the zip from http://yupotan.sppd.ne.jp/relax-ng/svg11/ is correct.\n  Needs to be installed into /usr/local/share/relaxng/svg11/\n  sudo unzip ~/Downloads/svg11-relaxng-20060604.zip -d  /usr/local/share/relaxng/\n  On Ubuntu I needed:\n  apt install jing libjaxp1.3-java libbatik-java libavalon-framework-java\n- mapbox/geojsonhint as geojson linter\n  npm install -g @mapbox/geojsonhint\n- geojson-validation as 2nd geojson fallback linter\n  npm install -g geojson-validation\n- shfmt to format shell scripts\n- clang-format to format the C source code\n- clang-tidy to check source code\n- valgrind to find leaks and memory bugs\n- timeout to help tests with large or hanging DWG's\n- GNU parallel to speed up special tests (not the moreutils parallel!)\n- picat to find unknown fields, a better prolog. http://picat-lang.org/\n\nSee INSTALL for generic instructions.  Basically, you do:\n\n$ sh ./autogen.sh (if you checked out the source code from git)\n$ ./configure [--enable-trace] [--disable-write] [--disable-shared]\n$ make\n$ make check\n$ sudo make install\n\nThis builds and installs various files in the \"installation dirs\":\n  $libdir     ($exec_prefix/lib)   -- library files (libredwg.*)\n  $includedir ($prefix/include)    -- dwg.h dwg_api.h\n  $libdir/pkgconfig                -- libredwg.pc\n  $infodir    ($datarootdir/info)  -- LibreDWG.info\n\nUse \"./configure --help\" to see a full list of options you can use to\ncustomize the installation dirs.  Other options recognized by configure are:\n\n  --enable-release\n\n    Recommended for packagers and fuzzers. Disables all features\n    which will not be enabled in official tarball releases. Like skipping\n    unstable DWG features or objects, unknown DWG versions and objects.\n\n  --enable-trace\n\n    Enable runtime tracing (default: no).  When enabled, the environment\n    variable LIBREDWG_TRACE is consulted on the first decode/encode attempt.\n    Its value is an integer: 0 (no output) through 9 (full verbosity).\n    Most tools do support a --verbosity|-v flag instead.\n\n  --with-dxf-precision=rfc\n\n   How many after-comma places in DXF doubles. 6 is the recommended\n   value (e.g. use rfc), max and the default is 16.\n\n  --with-geojson-precision=rfc\n\n   How many after-comma places in GeoJSON doubles. 6 is the\n   recommended value by RFC 7946, max and the default is 16.\n\n  --disable-write\n\n    Disable DWG write support (default: no).\n    Write support only works for earlier versions until r2004. Rewriting most DWG's\n    \u003c= r2004 usually works fine.\n\n  --disable-bindings\n\n    Disable SWIG bindings for python and perl5.\n\n  --disable-dxf\n\n    Disables all in and out modules: DXF, DXFB, JSON, GeoJSON.\n\n  --disable-json\n\n    Disables the json in and out modules: JSON, GeoJSON.\n\n  --disable-python\n\n    Disable python bindings and tests.\n    Related: --enable-python=python3.6\n    Enforce a specific version.\n\n  --enable-debug\n\n    Activates support for unstable classes. For testing only.\n\n  --enable-gcov\n\n    Activates support for GNU gcov, test coverage reporting.\n\n  --with-perl-install=vendor\n\n   Where to install the perl bindings: vendor,arch,yes,no,site.\n   Default is perl-install=site\n\n== Windows ==\n\nSee the following scripts how we build on Windows:\n\n* .github/workflows/main.yml: via msys/autotools, or cmake. gcc, clang-cl or VS2019.\n* build-aux/smoke.sh: cross-compilation recipes\n* build-aux/msys2.bat: msys2 deps\n* .appveyor.yml: windows smoker\n\nWe do support mingw, clang-cl and now also Visual Studio 2019 via cmake.\nstdint.h and inttypes.h must be available.\nPre-compiled Windows binaries are here: https://github.com/LibreDWG/libredwg/releases\n\n== Example usage of the library ==\n\nThe programs and examples directories contains some application code\nthat uses our lib:\n\n* dwgread -- A DWG reader supporting various output formats, such as\n  JSON, DXF, DXFB, GeoJSON. Later also YAML, XML/OGR, GPX, SVG, PS.\n\n* dwgwrite -- A DWG writer supporting various input formats, such as DXF, DXFB, JSON.\n  GeoJSON, YAML, XML/OGR, GPX are under construction.\n\n* dwg2dxf -- Converts a DWG to a DXF (ascii or binary, minimal or full), optionally\n  under a different version. About 90% coverage.\n\n* dxf2dwg -- Converts a ascii or binary DXF to a DWG (r2000 only so far).\n  About 80% coverage.\n\n* dwglayers -- Prints the list of layers in a DWG. Optionally with --extnames\n\n* dwggrep -- Searches DWG files for a text string, via regular expressions.\n\n* dwg2ps -- Opens a DWG file and outputs an PostScript file.  This code\n  depends on the PSlib library.  On Debian-based systems this is usually\n  available as a package named pslib-dev. This is very limited so far.\n\n* dwgfilter -- Applies JSON filters via JQ. Either as structured grep,\n  or to mass change certain values.\n\n* dwg2SVG -- Opens a DWG file and outputs an SVG (Scalable Vector Graphics)\n  file.  SVG is a W3C standard for 2d vector graphics.  You can open these\n  files on several free software tools.  We recommend Inkscape, a free software\n  vector graphics editor.  The dwg2SVG program will not handle 3d content\n  from DWG since SVG only supports 2-dimensional images. Handles only some\n  entities.\n\n* dwgbmp -- Extracts the bmp thumbnail of a dwg file when it is available.\n\n* dwgadd -- the easiest way to create DWG's (or DXF, JSON) from scratch or\n  add entities to an existing DWG. It accepts a very simple file with commands\n  to create entities or objects and set its properties.\n\n* dwgrewrite -- Reads a DWG, writes it back under a different name and optionally\n  under a different version (default r2000), and re-reads it back for confirmation.\n\n* load_dwg -- This is a skeleton code, reading the DWG and adding an entity.\n  Look there if you want to have a quickly glance on how to use the library.\n\n* dwg2svg2 -- Another example how to use the DWG API, bypassing direct access to\n  the DWG struct.\n\n* xmlsuite -- an extensive example library to use XML to compare against prepared\n  features is in the test/xmlsuite directory. It also features code to output entities\n  in XML, but does not use the python bindings.\n\nCopyright (C) 2009, 2010, 2015, 2018-2025 Free Software Foundation, Inc.\n\nThis library is free software, licensed under the terms of the GNU\nGeneral Public License as published by the Free Software Foundation,\neither version 3 of the License, or (at your option) any later version.\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlightcad%2Flibredwg-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlightcad%2Flibredwg-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlightcad%2Flibredwg-web/lists"}