shadow-cljs

Jacob Emcken 2026-06-05T15:22:04.962969Z

Have anyone worked with PDF in the browser in ClojureScript. https://github.com/mozilla/pdf.js is supposed to work in the browser, but when I try to import it in shadow-cljs it throws the error: The required JS dependency "os" is not available, it was required by "node_modules/@napi-rs/canvas/index.js" Does anyone know how to make this work, or have an alternative suggestion for extracting XMP metadata from a PDF in the browser?

Jacob Emcken 2026-06-05T15:22:44.521699Z

PDF.js requires napi-rs