npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ooopearls/cad-simple-viewer

v1.0.0

Published

Public fork of @mlightcad/cad-simple-viewer with enhanced large-DWG parsing and bundled LibreDWG Worker/WASM assets.

Readme

@oopearls/cad-simple-viewer

This package is a public fork of @mlightcad/cad-simple-viewer. It adds a locally built LibreDWG parser with improved handling for large R2007 DWG files and validates parser output before accepting a drawing.

Installation

npm install @ooopearls/cad-simple-viewer

The public API and peer dependency contract follow the upstream @mlightcad/cad-simple-viewer package.

Worker And WASM Deployment

The npm package contains these browser assets in dist:

  • dxf-parser-worker.js
  • libredwg-parser-worker.js
  • libredwg-web.wasm
  • mtext-renderer-worker.js

Copy them into a public directory in your application. The LibreDWG worker loads libredwg-web.wasm relative to the worker script, so those two files must remain in the same deployed directory.

const manager = AcApDocManager.createInstance({
  webworkerFileUrls: {
    dxfParser: '/cad-workers/dxf-parser-worker.js',
    dwgParser: '/cad-workers/libredwg-parser-worker.js',
    mtextRender: '/cad-workers/mtext-renderer-worker.js'
  }
})

Use AcApDocManager.checkWebworkerReadiness() or manager.areWorkersReady() before opening a drawing when the assets may be served from a separate CDN or deployment path.

Fork Changes

  • Builds LibreDWG WebAssembly from pinned source commit 4d3fc98d7767c0881c5f24a801506819f2ab38eb.
  • Applies the R2007 value-bound and EED allocation patch included in the public source repository.
  • Bundles the matching LibreDWG Worker and WASM files in the npm tarball.
  • Rejects empty or unusable parser results instead of treating them as a successfully opened drawing.

Source And License

This distribution includes GPL-covered parser Worker/WASM artifacts. See LICENSE, LICENSES/GPL-3.0-or-later.txt, THIRD_PARTY_NOTICES.md, and SOURCE.md in the package for license terms and corresponding-source access.

The complete fork source is available at github.com/tangsh0708/cad-viewer.