@hunghg255/bm-render-linux-x64-musl 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 hunghg255
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,38 @@
1
+ bm-render
2
+ Copyright (c) 2026 hunghg255
3
+ https://github.com/BM-Hospital/bm-render
4
+
5
+ Licensed under the MIT License (LICENSE).
6
+
7
+ bm-render is a port to Zig / WebAssembly of takumi (https://github.com/kane50613/takumi):
8
+
9
+ takumi
10
+ Copyright (c) 2025 Kane Wang
11
+ Licensed under the MIT License or the Apache License, Version 2.0, at your option.
12
+
13
+ Large parts of bm-render are transliterations of takumi's Rust code (layout, painting, text, CSS,
14
+ Tailwind, HTML, SVG, animation, codecs); bm-render is therefore a derivative work of takumi, uses
15
+ takumi under the MIT option of its dual license, and keeps its copyright notice in LICENSE.
16
+
17
+ takumi in turn follows Chromium's Blink renderer and Skia in many places, and bm-render ports or follows
18
+ further third-party code, algorithms and data. The notices they require are reproduced in
19
+ THIRD-PARTY-NOTICES.md:
20
+
21
+ - Chromium (Blink) and Skia ............ BSD-style (via takumi's LICENSE-CHROMIUM)
22
+ - tiny-skia ............................ BSD 3-Clause
23
+ - HarfBuzz ............................. "Old MIT"
24
+ - libwebp .............................. BSD 3-Clause (+ patent grant)
25
+ - Independent JPEG Group (libjpeg) ..... "This software is based in part on the work of the
26
+ Independent JPEG Group."
27
+ - Unicode data, ICU / ICU4X ............ Unicode License V3
28
+ - emoji-segmenter ...................... Apache License 2.0 (Copyright 2019 Google LLC)
29
+ - Brotli static dictionary ............. MIT (Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors)
30
+ - Taffy ................................ MIT (Copyright (c) 2018 Visly Inc.)
31
+ - krilla (PDF output) .................. MIT OR Apache-2.0 (Copyright (c) 2024 Laurenz Stampfl), with notices for code
32
+ it takes from resvg (MPL 2.0), typst, svg2pdf and vello
33
+ - subsetter (PDF font subsetting) ...... MIT, with ttf-parser (Copyright (c) 2018 Yevhenii Reizner) and fonttools
34
+ (Copyright (c) 2017 Just van Rossum), both MIT
35
+ - pdf-writer, xmp-writer (PDF output) .. MIT OR Apache-2.0
36
+ - Compact ICC Profiles, sRGB v4 ........ CC0 1.0 (Clinton Ingram / saucecontrol); src/pdf/srgb-v4.icc
37
+
38
+ No font files are distributed with the package. Fonts you register at run time keep their own licenses.
package/README.md CHANGED
@@ -1,3 +1,23 @@
1
- # Temporary Holding Version
1
+ # @hunghg255/bm-render-linux-x64-musl
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The native Node-API addon of [bm-render](https://www.npmjs.com/package/bm-render) for **Linux x64, musl (Alpine)**
4
+ (`os: linux`, `cpu: x64`, `libc: musl`).
5
+
6
+ Do not install this package yourself. `npm install bm-render` lists every platform package as an optional
7
+ dependency and your package manager installs only the one that matches the machine. `bm-render` loads it
8
+ when present and otherwise uses its WebAssembly build, with the same API and the same output bytes:
9
+
10
+ ```js
11
+ import { backend } from "bm-render";
12
+ console.log(backend); // "native" when this package is installed and loads, else "wasm"
13
+ ```
14
+
15
+ It is released together with `bm-render` at the same version (0.1.0), which pins it exactly; an
16
+ addon whose internal interface version does not match the installed `bm-render` is ignored (wasm is used).
17
+ Requires Node-API 6 (`engines.node`: `>=10.20.0 <11 || >=12.17.0 <13 || >=14.0.0`); `bm-render` itself requires Node.js 18+.
18
+
19
+ The x64 binary needs an x86-64-v2 CPU (SSE4.2, 2009+); on older CPUs it refuses to load and `bm-render` uses wasm.
20
+
21
+ Status: cross-compiled and structurally verified (exports, imported symbols, CPU level), but **not yet executed on this platform** by the project; `bm-render` falls back to WebAssembly if it does not load.
22
+
23
+ License: MIT. See LICENSE, NOTICE and THIRD-PARTY-NOTICES.md.