# Giấy phép của thư viện bên thứ ba

Danh sách các thư viện mà bản chạy thật (production) của hệ thống sử dụng, lấy từ `package-lock.json` (không gồm công cụ phát triển như ESLint, TypeScript). Tạo tự động ngày 27/09/2026; tạo lại bằng cách chạy lại script trong `TAI-LIEU-BAN-GIAO-VA-BAO-TRI.md` mục 9.

## Tóm tắt

| Giấy phép | Số gói |
|---|---|
| MIT | 133 |
| ISC | 28 |
| Apache-2.0 | 8 |
| BSD-3-Clause | 5 |
| MIT/X11 | 2 |
| LGPL-3.0-or-later | 1 |
| Apache-2.0 AND LGPL-3.0-or-later AND MIT | 1 |
| Unlicense | 1 |
| không khai báo | 1 |
| CC-BY-4.0 | 1 |
| (MIT OR GPL-3.0-or-later) | 1 |
| MIT-0 | 1 |
| (MIT AND Zlib) | 1 |
| 0BSD | 1 |
| MIT AND ISC | 1 |

## Lưu ý

- Toàn bộ là giấy phép cho phép dùng thương mại và sửa đổi. Không có gói nào theo giấy phép AGPL/GPL bắt buộc mở mã nguồn của hệ thống.
- `jszip` cấp phép kép (MIT hoặc GPL-3.0) — chọn MIT.
- `sharp` và `@img/sharp-*` (LGPL-3.0 cho thư viện `libvips` đi kèm) là thư viện xử lý ảnh do Next.js kéo theo; hệ thống **không gọi trực tiếp**, chỉ liên kết động dưới dạng tệp nhị phân riêng nên không ảnh hưởng đến quyền sở hữu mã nguồn của hệ thống.
- `buffers` không khai báo trường giấy phép trong `package.json` (phụ thuộc gián tiếp của `exceljs`); cần đối chiếu thêm với kho gốc nếu khách yêu cầu kiểm tra pháp lý chi tiết.
- `caniuse-lite` theo CC-BY-4.0 (dữ liệu trình duyệt, chỉ dùng lúc build).

## Chi tiết

| Gói | Phiên bản | Giấy phép |
|---|---|---|
| @babel/runtime | 7.29.7 | MIT |
| @electric-sql/pglite | 0.2.17 | Apache-2.0 |
| @fast-csv/format | 4.3.5 | MIT |
| @fast-csv/parse | 4.3.6 | MIT |
| @img/colour | 1.1.0 | MIT |
| @img/sharp-darwin-arm64 | 0.35.4 | Apache-2.0 |
| @img/sharp-libvips-darwin-arm64 | 1.3.3 | LGPL-3.0-or-later |
| @img/sharp-wasm32 | 0.35.4 | Apache-2.0 AND LGPL-3.0-or-later AND MIT |
| @next/env | 15.5.26 | MIT |
| @next/swc-darwin-arm64 | 15.5.26 | MIT |
| @swc/helpers | 0.5.15 | Apache-2.0 |
| @types/d3-array | 3.2.2 | MIT |
| @types/d3-color | 3.1.3 | MIT |
| @types/d3-ease | 3.0.2 | MIT |
| @types/d3-interpolate | 3.0.4 | MIT |
| @types/d3-path | 3.1.1 | MIT |
| @types/d3-scale | 4.0.9 | MIT |
| @types/d3-shape | 3.1.8 | MIT |
| @types/d3-time | 3.0.4 | MIT |
| @types/d3-timer | 3.0.2 | MIT |
| @types/node | 14.18.63 | MIT |
| @types/node | 14.18.63 | MIT |
| @types/node | 22.20.1 | MIT |
| @types/nodemailer | 8.0.1 | MIT |
| @types/pg | 8.21.0 | MIT |
| @types/react | 19.2.18 | MIT |
| archiver | 5.3.2 | MIT |
| archiver-utils | 2.1.0 | MIT |
| archiver-utils | 3.0.4 | MIT |
| async | 3.2.6 | MIT |
| balanced-match | 1.0.2 | MIT |
| base64-js | 1.5.1 | MIT |
| big-integer | 1.6.52 | Unlicense |
| binary | 0.3.0 | MIT |
| bl | 4.1.0 | MIT |
| bluebird | 3.4.7 | MIT |
| brace-expansion | 1.1.18 | MIT |
| brace-expansion | 2.1.4 | MIT |
| buffer | 5.7.1 | MIT |
| buffer-crc32 | 0.2.13 | MIT |
| buffer-indexof-polyfill | 1.0.2 | MIT |
| buffers | 0.1.1 | không khai báo |
| caniuse-lite | 1.0.30001809 | CC-BY-4.0 |
| chainsaw | 0.1.0 | MIT/X11 |
| client-only | 0.0.1 | MIT |
| clsx | 2.1.1 | MIT |
| compress-commons | 4.1.2 | MIT |
| concat-map | 0.0.1 | MIT |
| core-util-is | 1.0.3 | MIT |
| crc-32 | 1.2.2 | Apache-2.0 |
| crc32-stream | 4.0.3 | MIT |
| csstype | 3.2.3 | MIT |
| d3-array | 3.2.4 | ISC |
| d3-color | 3.1.0 | ISC |
| d3-ease | 3.0.1 | BSD-3-Clause |
| d3-format | 3.1.2 | ISC |
| d3-interpolate | 3.0.1 | ISC |
| d3-path | 3.1.0 | ISC |
| d3-scale | 4.0.2 | ISC |
| d3-shape | 3.2.0 | ISC |
| d3-time | 3.1.0 | ISC |
| d3-time-format | 4.1.0 | ISC |
| d3-timer | 3.0.1 | ISC |
| dayjs | 1.11.21 | MIT |
| decimal.js-light | 2.5.1 | MIT |
| detect-libc | 2.1.2 | Apache-2.0 |
| dom-helpers | 5.2.1 | MIT |
| drizzle-orm | 0.38.4 | Apache-2.0 |
| duplexer2 | 0.1.4 | BSD-3-Clause |
| end-of-stream | 1.4.5 | MIT |
| eventemitter3 | 4.0.7 | MIT |
| exceljs | 4.4.0 | MIT |
| fast-csv | 4.3.6 | MIT |
| fast-equals | 5.4.1 | MIT |
| fs-constants | 1.0.0 | MIT |
| fs.realpath | 1.0.0 | ISC |
| fstream | 1.0.12 | ISC |
| glob | 7.2.3 | ISC |
| graceful-fs | 4.2.11 | ISC |
| ieee754 | 1.2.1 | BSD-3-Clause |
| immediate | 3.0.6 | MIT |
| inflight | 1.0.6 | ISC |
| inherits | 2.0.4 | ISC |
| internmap | 2.0.3 | ISC |
| isarray | 1.0.0 | MIT |
| jose | 5.10.0 | MIT |
| js-tokens | 4.0.0 | MIT |
| jszip | 3.10.1 | (MIT OR GPL-3.0-or-later) |
| lazystream | 1.0.1 | MIT |
| lie | 3.3.0 | MIT |
| listenercount | 1.0.1 | ISC |
| lodash | 4.18.1 | MIT |
| lodash.defaults | 4.2.0 | MIT |
| lodash.difference | 4.5.0 | MIT |
| lodash.escaperegexp | 4.1.2 | MIT |
| lodash.flatten | 4.4.0 | MIT |
| lodash.groupby | 4.6.0 | MIT |
| lodash.isboolean | 3.0.3 | MIT |
| lodash.isequal | 4.5.0 | MIT |
| lodash.isfunction | 3.0.9 | MIT |
| lodash.isnil | 4.0.0 | MIT |
| lodash.isplainobject | 4.0.6 | MIT |
| lodash.isundefined | 3.0.1 | MIT |
| lodash.union | 4.6.0 | MIT |
| lodash.uniq | 4.5.0 | MIT |
| loose-envify | 1.4.0 | MIT |
| minimatch | 3.1.5 | ISC |
| minimatch | 5.1.9 | ISC |
| minimist | 1.2.8 | MIT |
| mkdirp | 0.5.6 | MIT |
| nanoid | 3.3.18 | MIT |
| next | 15.5.26 | MIT |
| nodemailer | 9.1.1 | MIT-0 |
| normalize-path | 3.0.0 | MIT |
| object-assign | 4.1.1 | MIT |
| once | 1.4.0 | ISC |
| pako | 1.0.11 | (MIT AND Zlib) |
| path-is-absolute | 1.0.1 | MIT |
| pg | 8.23.0 | MIT |
| pg-cloudflare | 1.4.0 | MIT |
| pg-connection-string | 2.14.0 | MIT |
| pg-int8 | 1.0.1 | ISC |
| pg-pool | 3.14.0 | MIT |
| pg-protocol | 1.16.0 | MIT |
| pg-types | 2.2.0 | MIT |
| pgpass | 1.0.5 | MIT |
| picocolors | 1.1.1 | ISC |
| postcss | 8.4.31 | MIT |
| postgres-array | 2.0.0 | MIT |
| postgres-bytea | 1.0.1 | MIT |
| postgres-date | 1.0.7 | MIT |
| postgres-interval | 1.2.0 | MIT |
| process-nextick-args | 2.0.1 | MIT |
| prop-types | 15.8.1 | MIT |
| react | 19.2.8 | MIT |
| react-dom | 19.2.8 | MIT |
| react-is | 16.13.1 | MIT |
| react-is | 18.3.1 | MIT |
| react-smooth | 4.0.4 | MIT |
| react-transition-group | 4.4.5 | BSD-3-Clause |
| readable-stream | 2.3.8 | MIT |
| readable-stream | 2.3.8 | MIT |
| readable-stream | 2.3.8 | MIT |
| readable-stream | 2.3.8 | MIT |
| readable-stream | 3.6.2 | MIT |
| readable-stream | 2.3.8 | MIT |
| readdir-glob | 1.1.3 | Apache-2.0 |
| recharts | 2.15.4 | MIT |
| recharts-scale | 0.4.5 | MIT |
| rimraf | 2.7.1 | ISC |
| safe-buffer | 5.1.2 | MIT |
| safe-buffer | 5.1.2 | MIT |
| safe-buffer | 5.1.2 | MIT |
| safe-buffer | 5.1.2 | MIT |
| safe-buffer | 5.2.1 | MIT |
| safe-buffer | 5.1.2 | MIT |
| saxes | 5.0.1 | ISC |
| scheduler | 0.27.0 | MIT |
| semver | 7.8.5 | ISC |
| server-only | 0.0.1 | MIT |
| setimmediate | 1.0.5 | MIT |
| sharp | 0.35.4 | Apache-2.0 |
| source-map-js | 1.2.1 | BSD-3-Clause |
| split2 | 4.2.0 | ISC |
| string_decoder | 1.1.1 | MIT |
| string_decoder | 1.1.1 | MIT |
| string_decoder | 1.1.1 | MIT |
| string_decoder | 1.1.1 | MIT |
| string_decoder | 1.3.0 | MIT |
| string_decoder | 1.1.1 | MIT |
| styled-jsx | 5.1.6 | MIT |
| tar-stream | 2.2.0 | MIT |
| tiny-invariant | 1.3.3 | MIT |
| tmp | 0.2.7 | MIT |
| traverse | 0.3.9 | MIT/X11 |
| tslib | 2.8.1 | 0BSD |
| undici-types | 6.21.0 | MIT |
| unzipper | 0.10.14 | MIT |
| util-deprecate | 1.0.2 | MIT |
| uuid | 8.3.2 | MIT |
| victory-vendor | 36.9.2 | MIT AND ISC |
| wrappy | 1.0.2 | ISC |
| xmlchars | 2.2.0 | MIT |
| xtend | 4.0.2 | MIT |
| zip-stream | 4.1.1 | MIT |
| zod | 3.25.76 | MIT |
