From 1f7e2e764708c18c0dfb248c95a7bb3b3cbcdfb3 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:42 +0400 Subject: [PATCH 01/43] fix: Ignore non-string manifest entries A published speakingurl version has an object among its scripts, which failed every install that reached it (VitePress does). Like npm, non-string scripts and dependency entries are ignored. --- crates/package/src/npm.rs | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/crates/package/src/npm.rs b/crates/package/src/npm.rs index 61c1a74..3745f3a 100644 --- a/crates/package/src/npm.rs +++ b/crates/package/src/npm.rs @@ -11,11 +11,14 @@ pub struct PackageJson { pub name: Option, #[serde(skip_serializing_if = "Option::is_none")] pub version: Option, + #[serde(default, deserialize_with = "string_entries")] #[serde(skip_serializing_if = "Option::is_none")] pub scripts: Option>, + #[serde(default, deserialize_with = "string_entries")] #[serde(skip_serializing_if = "Option::is_none")] pub dependencies: Option>, #[serde(rename = "devDependencies")] + #[serde(default, deserialize_with = "string_entries")] #[serde(skip_serializing_if = "Option::is_none")] pub dev_dependencies: Option>, #[serde(skip_serializing_if = "Option::is_none")] @@ -162,6 +165,28 @@ pub struct NpmPackage { pub versions: HashMap, } +/// Published manifests are loosely typed: some old ones put objects among their scripts +/// (`"blanket": { "pattern": … }`). Like npm, only the string entries count. +fn string_entries<'de, D>( + deserializer: D, +) -> std::result::Result>, D::Error> +where + D: serde::Deserializer<'de>, +{ + let value = serde_json::Value::deserialize(deserializer)?; + let serde_json::Value::Object(entries) = value else { + return Ok(None); + }; + let strings = entries + .into_iter() + .filter_map(|(key, value)| match value { + serde_json::Value::String(text) => Some((key, text)), + _ => None, + }) + .collect(); + Ok(Some(strings)) +} + #[cfg(test)] mod tests { use super::*; @@ -218,6 +243,28 @@ mod tests { assert_eq!(manifest.trusted_dependencies(), ["bcrypt", "esbuild"]); } + #[test] + fn test_ignores_entries_that_are_not_strings() { + let manifest: PackageJson = serde_json::from_str( + r#"{ + "scripts": { "test": "mocha", "blanket": { "pattern": ["/lib/"] } }, + "dependencies": { "ms": "^2.0.0", "broken": {} }, + "devDependencies": [] + }"#, + ) + .unwrap(); + + assert_eq!( + manifest.scripts, + Some(HashMap::from([("test".to_string(), "mocha".to_string())])) + ); + assert_eq!( + manifest.dependencies, + Some(HashMap::from([("ms".to_string(), "^2.0.0".to_string())])) + ); + assert_eq!(manifest.dev_dependencies, None); + } + #[test] fn test_install_scripts_in_order_with_implicit_node_gyp() { let dir = tempfile::tempdir().unwrap(); From 49cdee87f6a195f107a61af4458a2a3a2c1ea967 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:42 +0400 Subject: [PATCH 02/43] test: Cover manifests with non-string entries Reproduces the speakingurl manifest. --- apps/craft/tests/e2e/install.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/apps/craft/tests/e2e/install.rs b/apps/craft/tests/e2e/install.rs index b22b7d2..17fe12d 100644 --- a/apps/craft/tests/e2e/install.rs +++ b/apps/craft/tests/e2e/install.rs @@ -4,6 +4,26 @@ use testkit::{MockRegistry, PackageFixture}; use crate::common::{Project, block_on}; +#[test] +fn installs_packages_whose_manifest_has_non_string_entries() { + let registry = MockRegistry::start(); + registry.publish(PackageFixture::new("speakingurl", "14.0.1").manifest_field( + "scripts", + json!({ "test": "mocha", "blanket": { "pattern": ["/lib/"] } }), + )); + let project = Project::new( + ®istry, + json!({ "dependencies": { "speakingurl": "^14.0.0" } }), + ); + + project.craft().arg("install").assert().success(); + + assert_eq!( + project.required_version("speakingurl"), + Ok("14.0.1".to_string()) + ); +} + #[test] fn installs_dependencies_and_their_subtree() { let registry = MockRegistry::start(); From 765ef198f16000122bffce01473982d4818954bb Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:42 +0400 Subject: [PATCH 03/43] docs: Add the docs site package VitePress, installed with craft, with dev, build and preview scripts. --- docs/package.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/package.json diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 0000000..f3aedbc --- /dev/null +++ b/docs/package.json @@ -0,0 +1,13 @@ +{ + "name": "craft-docs", + "private": true, + "type": "module", + "scripts": { + "docs:dev": "vitepress dev", + "docs:build": "vitepress build", + "docs:preview": "vitepress preview" + }, + "devDependencies": { + "vitepress": "1.6.4" + } +} From ee6761238ac62e2660c86c14758165c36899fbe7 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:42 +0400 Subject: [PATCH 04/43] docs: Lock the docs site dependencies craft ci installs exactly these in the docs workflow. --- docs/craft.lock | 2354 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 2354 insertions(+) create mode 100644 docs/craft.lock diff --git a/docs/craft.lock b/docs/craft.lock new file mode 100644 index 0000000..13f970e --- /dev/null +++ b/docs/craft.lock @@ -0,0 +1,2354 @@ +{ + "lockfileVersion": 1, + "importers": { + ".": { + "devDependencies": { + "vitepress": { + "specifier": "1.6.4", + "version": "vitepress@1.6.4" + } + } + } + }, + "packages": { + "@algolia/abtesting@1.26.0": { + "name": "@algolia/abtesting", + "version": "1.26.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/abtesting/-/abtesting-1.26.0.tgz", + "integrity": "sha512-h6ff/as504npvSqhLlh1qw3B8lFktXgr6AOL5vkP4WCLU1oH+VCBh2K4x4Kvewnwr7kchH6HgLm3CcS8ZAYi8A==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/autocomplete-core@1.17.7": { + "name": "@algolia/autocomplete-core", + "version": "1.17.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.17.7.tgz", + "integrity": "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q==" + }, + "dependencies": { + "@algolia/autocomplete-plugin-algolia-insights": "@algolia/autocomplete-plugin-algolia-insights@1.17.7_search-insights@2.17.3", + "@algolia/autocomplete-shared": "@algolia/autocomplete-shared@1.17.7_@algolia/client-search@5.60.0_algoliasearch@5.60.0" + } + }, + "@algolia/autocomplete-plugin-algolia-insights@1.17.7_search-insights@2.17.3": { + "name": "@algolia/autocomplete-plugin-algolia-insights", + "version": "1.17.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.17.7.tgz", + "integrity": "sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A==" + }, + "dependencies": { + "@algolia/autocomplete-shared": "@algolia/autocomplete-shared@1.17.7_@algolia/client-search@5.60.0_algoliasearch@5.60.0" + }, + "peerDependencies": { + "search-insights": "search-insights@2.17.3" + } + }, + "@algolia/autocomplete-preset-algolia@1.17.7_@algolia/client-search@5.60.0_algoliasearch@5.60.0": { + "name": "@algolia/autocomplete-preset-algolia", + "version": "1.17.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.17.7.tgz", + "integrity": "sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA==" + }, + "dependencies": { + "@algolia/autocomplete-shared": "@algolia/autocomplete-shared@1.17.7_@algolia/client-search@5.60.0_algoliasearch@5.60.0" + }, + "peerDependencies": { + "@algolia/client-search": "@algolia/client-search@5.60.0", + "algoliasearch": "algoliasearch@5.60.0" + } + }, + "@algolia/autocomplete-shared@1.17.7_@algolia/client-search@5.60.0_algoliasearch@5.60.0": { + "name": "@algolia/autocomplete-shared", + "version": "1.17.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.17.7.tgz", + "integrity": "sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg==" + }, + "peerDependencies": { + "@algolia/client-search": "@algolia/client-search@5.60.0", + "algoliasearch": "algoliasearch@5.60.0" + } + }, + "@algolia/client-abtesting@5.60.0": { + "name": "@algolia/client-abtesting", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.60.0.tgz", + "integrity": "sha512-eLrG+gFBLcr8S9JuDc75K3jC8irl7v5ZlxSlR4o7N2VCGfmEbKEfu/J/fIuf5MVHV4NOCutyHD7CbxyZEyIzFQ==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/client-analytics@5.60.0": { + "name": "@algolia/client-analytics", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.60.0.tgz", + "integrity": "sha512-6Cg5ChVTSz5lP8F+sseoCxL5Jedyo9TSi7crgNNABOFRwlgauVfvZircY712ywpLJCJ7Yw7smEN4eCt9eWRKRg==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/client-common@5.60.0": { + "name": "@algolia/client-common", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.60.0.tgz", + "integrity": "sha512-GWW9ilvJJY1tVsyz8CRqRGFnl9WdLjxXXUexSvEBhfgoFf3JvFTPDPClfS4sB36AlIDJ4PnJvffbCyhqXB4l1g==" + } + }, + "@algolia/client-insights@5.60.0": { + "name": "@algolia/client-insights", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.60.0.tgz", + "integrity": "sha512-YOG1UOQdbOiQMZE3AnquBiHQrSdOWEcwx8caisOFT/VZMj6UZOsu4RdOn6tBEmWDXagyPEc3u9d9zySxMR2+Xw==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/client-personalization@5.60.0": { + "name": "@algolia/client-personalization", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.60.0.tgz", + "integrity": "sha512-TRFAnHeXuNoYffzeZUpLX6QFmUABIn/BlhdG+8JTn0x3T4KHVPGMsXkWNXOigrzLf03D+/Cb66tYnrcSsXRoMw==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/client-query-suggestions@5.60.0": { + "name": "@algolia/client-query-suggestions", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.60.0.tgz", + "integrity": "sha512-p8hGUjBGy4qL9lbiEqDpci5hG5Ru74iTBtz731NapdSkhJRlVYdjSXIO5k8RvtipNSjXmFjjV8RsHceLd1oaPw==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/client-search@5.60.0": { + "name": "@algolia/client-search", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.60.0.tgz", + "integrity": "sha512-MP9hqPQGnE04De15am/MXURtU/OudFkx4jrzlfiB9P+cUkDO/P/Opel0Kqwwwyzbu4OHaU2mIjAXkpaiRic7uQ==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/ingestion@1.60.0": { + "name": "@algolia/ingestion", + "version": "1.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.60.0.tgz", + "integrity": "sha512-gwLAiDSsGd5fhBUz/XwRM7okBx7KQvlS4WWOIUiy4Rb6SiebEXf38Woha7+S0qBRxEjtH7JHgL6xvvnYWrGCpQ==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/monitoring@1.60.0": { + "name": "@algolia/monitoring", + "version": "1.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.60.0.tgz", + "integrity": "sha512-s6l5VRvvebJeCmyapl9GBh7R8d4yimO1w7SfpIaejws8Xd+2Q2qS0NMiRWefHFO8hWqNUC0eQ/GQM+sbmS2Zmg==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/recommend@5.60.0": { + "name": "@algolia/recommend", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.60.0.tgz", + "integrity": "sha512-c4dZ8J0AslIIqENbwMwbcFVuLJoLlFBlRfU518sl0FZnmuJTkXQDBeGV/uLzZos1AbaxGYOlwGYwdGI+pPEMcA==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "@algolia/requester-browser-xhr@5.60.0": { + "name": "@algolia/requester-browser-xhr", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.60.0.tgz", + "integrity": "sha512-nz4eILpuYli7fsbYl5btdm8Gcdef5h38cuF4urKFpi94bFcDTdegJpYthJL3lENNsayJvLcLP3G6/oFT5ToNuQ==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0" + } + }, + "@algolia/requester-fetch@5.60.0": { + "name": "@algolia/requester-fetch", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.60.0.tgz", + "integrity": "sha512-3MWvjJXSMIE3tuNJS4WLQuvHgeG56ZFoNKj4WUkOYea0aBU7kGVI4NrTyThagItI+yhQex+fxOjkAaSPRUAffA==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0" + } + }, + "@algolia/requester-node-http@5.60.0": { + "name": "@algolia/requester-node-http", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.60.0.tgz", + "integrity": "sha512-Cx3D6S8NzSi9es4MIFljvImq+Ae2vo9gHyX+6RMMA0U+xy+C62mYE03X9u+mX+XXkgTWbkURCbMtuFDYRDNRig==" + }, + "dependencies": { + "@algolia/client-common": "@algolia/client-common@5.60.0" + } + }, + "@babel/helper-string-parser@7.29.11": { + "name": "@babel/helper-string-parser", + "version": "7.29.11", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", + "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==" + } + }, + "@babel/helper-validator-identifier@7.29.7": { + "name": "@babel/helper-validator-identifier", + "version": "7.29.7", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==" + } + }, + "@babel/parser@7.29.11": { + "name": "@babel/parser", + "version": "7.29.11", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.11.tgz", + "integrity": "sha512-OZ6+oaK7GMyg3IfCpj8JOmn8n+w2rJbDT0LLfVDTLb1ZFeKDh3AiNELgCMUw175IJHSkLl74hG0M0VLsvx+gag==" + }, + "dependencies": { + "@babel/types": "@babel/types@7.29.11" + } + }, + "@babel/types@7.29.11": { + "name": "@babel/types", + "version": "7.29.11", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==" + }, + "dependencies": { + "@babel/helper-string-parser": "@babel/helper-string-parser@7.29.11", + "@babel/helper-validator-identifier": "@babel/helper-validator-identifier@7.29.7" + } + }, + "@docsearch/css@3.8.2": { + "name": "@docsearch/css", + "version": "3.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz", + "integrity": "sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ==" + } + }, + "@docsearch/js@3.8.2": { + "name": "@docsearch/js", + "version": "3.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.2.tgz", + "integrity": "sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ==" + }, + "dependencies": { + "@docsearch/react": "@docsearch/react@3.8.2", + "preact": "preact@10.29.8" + } + }, + "@docsearch/react@3.8.2": { + "name": "@docsearch/react", + "version": "3.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.2.tgz", + "integrity": "sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg==" + }, + "dependencies": { + "@algolia/autocomplete-core": "@algolia/autocomplete-core@1.17.7", + "@algolia/autocomplete-preset-algolia": "@algolia/autocomplete-preset-algolia@1.17.7_@algolia/client-search@5.60.0_algoliasearch@5.60.0", + "@docsearch/css": "@docsearch/css@3.8.2", + "algoliasearch": "algoliasearch@5.60.0" + } + }, + "@esbuild/aix-ppc64@0.21.5": { + "name": "@esbuild/aix-ppc64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==" + }, + "os": [ + "aix" + ], + "cpu": [ + "ppc64" + ] + }, + "@esbuild/android-arm64@0.21.5": { + "name": "@esbuild/android-arm64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==" + }, + "os": [ + "android" + ], + "cpu": [ + "arm64" + ] + }, + "@esbuild/android-arm@0.21.5": { + "name": "@esbuild/android-arm", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==" + }, + "os": [ + "android" + ], + "cpu": [ + "arm" + ] + }, + "@esbuild/android-x64@0.21.5": { + "name": "@esbuild/android-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==" + }, + "os": [ + "android" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/darwin-arm64@0.21.5": { + "name": "@esbuild/darwin-arm64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==" + }, + "os": [ + "darwin" + ], + "cpu": [ + "arm64" + ] + }, + "@esbuild/darwin-x64@0.21.5": { + "name": "@esbuild/darwin-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==" + }, + "os": [ + "darwin" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/freebsd-arm64@0.21.5": { + "name": "@esbuild/freebsd-arm64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==" + }, + "os": [ + "freebsd" + ], + "cpu": [ + "arm64" + ] + }, + "@esbuild/freebsd-x64@0.21.5": { + "name": "@esbuild/freebsd-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==" + }, + "os": [ + "freebsd" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/linux-arm64@0.21.5": { + "name": "@esbuild/linux-arm64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==" + }, + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ] + }, + "@esbuild/linux-arm@0.21.5": { + "name": "@esbuild/linux-arm", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==" + }, + "os": [ + "linux" + ], + "cpu": [ + "arm" + ] + }, + "@esbuild/linux-ia32@0.21.5": { + "name": "@esbuild/linux-ia32", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==" + }, + "os": [ + "linux" + ], + "cpu": [ + "ia32" + ] + }, + "@esbuild/linux-loong64@0.21.5": { + "name": "@esbuild/linux-loong64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==" + }, + "os": [ + "linux" + ], + "cpu": [ + "loong64" + ] + }, + "@esbuild/linux-mips64el@0.21.5": { + "name": "@esbuild/linux-mips64el", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==" + }, + "os": [ + "linux" + ], + "cpu": [ + "mips64el" + ] + }, + "@esbuild/linux-ppc64@0.21.5": { + "name": "@esbuild/linux-ppc64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==" + }, + "os": [ + "linux" + ], + "cpu": [ + "ppc64" + ] + }, + "@esbuild/linux-riscv64@0.21.5": { + "name": "@esbuild/linux-riscv64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==" + }, + "os": [ + "linux" + ], + "cpu": [ + "riscv64" + ] + }, + "@esbuild/linux-s390x@0.21.5": { + "name": "@esbuild/linux-s390x", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==" + }, + "os": [ + "linux" + ], + "cpu": [ + "s390x" + ] + }, + "@esbuild/linux-x64@0.21.5": { + "name": "@esbuild/linux-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==" + }, + "os": [ + "linux" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/netbsd-x64@0.21.5": { + "name": "@esbuild/netbsd-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==" + }, + "os": [ + "netbsd" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/openbsd-x64@0.21.5": { + "name": "@esbuild/openbsd-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==" + }, + "os": [ + "openbsd" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/sunos-x64@0.21.5": { + "name": "@esbuild/sunos-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==" + }, + "os": [ + "sunos" + ], + "cpu": [ + "x64" + ] + }, + "@esbuild/win32-arm64@0.21.5": { + "name": "@esbuild/win32-arm64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==" + }, + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ] + }, + "@esbuild/win32-ia32@0.21.5": { + "name": "@esbuild/win32-ia32", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==" + }, + "os": [ + "win32" + ], + "cpu": [ + "ia32" + ] + }, + "@esbuild/win32-x64@0.21.5": { + "name": "@esbuild/win32-x64", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==" + }, + "os": [ + "win32" + ], + "cpu": [ + "x64" + ] + }, + "@iconify-json/simple-icons@1.2.100": { + "name": "@iconify-json/simple-icons", + "version": "1.2.100", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@iconify-json/simple-icons/-/simple-icons-1.2.100.tgz", + "integrity": "sha512-536pN2RCEQyy5bYwzayrs4e9egr8cmtVcbdSHLaQl/ULUsihzn1eZ0+Hhn50zgz9cbEotiynKsKQSEjFJ7qKmw==" + }, + "dependencies": { + "@iconify/types": "@iconify/types@2.0.0" + } + }, + "@iconify/types@2.0.0": { + "name": "@iconify/types", + "version": "2.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==" + } + }, + "@jridgewell/sourcemap-codec@1.6.0": { + "name": "@jridgewell/sourcemap-codec", + "version": "1.6.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==" + } + }, + "@napi-rs/lzma-linux-x64-gnu@1.5.1": { + "name": "@napi-rs/lzma-linux-x64-gnu", + "version": "1.5.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", + "integrity": "sha512-oTXEIha4SsuXdTA4Iyskj0kpdx2yVXdhd75c2v3xGrHFfVMsbhTPZU/nMPL4sWKo4pBHm3aucLaqGlF696dTyQ==" + }, + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-android-arm-eabi@4.65.0": { + "name": "@rollup/rollup-android-arm-eabi", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.65.0.tgz", + "integrity": "sha512-t2AnVba25baFdq7gczzS13JyVcdubLVbFX1X04mxrggDrTQPUXNv3XM0k9H1hr5tqvg7AVvtQ720QHAj0iYqhg==" + }, + "os": [ + "android" + ], + "cpu": [ + "arm" + ] + }, + "@rollup/rollup-android-arm64@4.65.0": { + "name": "@rollup/rollup-android-arm64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.65.0.tgz", + "integrity": "sha512-dNONUaEwPGhl/nuO2KV8VABWlcjYyU6KtZGN8dQv5OS5JU7JSCxPijVNKXbRJd0iuTzTiJ4TjPt/4bbvDRNiMQ==" + }, + "os": [ + "android" + ], + "cpu": [ + "arm64" + ] + }, + "@rollup/rollup-darwin-arm64@4.65.0": { + "name": "@rollup/rollup-darwin-arm64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.65.0.tgz", + "integrity": "sha512-zWQqUH+9zavr2Bxuzfpuv2SIF3X31cr58TvSQC9o1GhpOvkqRwr60GkZdQcudyT/BEgdpdSafjgd2I13MbTL7g==" + }, + "os": [ + "darwin" + ], + "cpu": [ + "arm64" + ] + }, + "@rollup/rollup-darwin-x64@4.65.0": { + "name": "@rollup/rollup-darwin-x64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.65.0.tgz", + "integrity": "sha512-RQYreBFWtO4//hIuOaZkYUnF/lPU4lz35dveDimDshWCJvVisVtJ/shmT9bkXK8wFJY+FJF89X6F3Cq1qI3LCw==" + }, + "os": [ + "darwin" + ], + "cpu": [ + "x64" + ] + }, + "@rollup/rollup-freebsd-arm64@4.65.0": { + "name": "@rollup/rollup-freebsd-arm64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.65.0.tgz", + "integrity": "sha512-A0NfMj6Cuh/9BE5k3awJKv6HoxFVXIcLAb6SZqAMoxUHPA1ZNNK4RsGuUPD/vL7nEAm9LG+ZzXWWTrnC0XtkpA==" + }, + "os": [ + "freebsd" + ], + "cpu": [ + "arm64" + ] + }, + "@rollup/rollup-freebsd-x64@4.65.0": { + "name": "@rollup/rollup-freebsd-x64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.65.0.tgz", + "integrity": "sha512-BI6/H7q3aP0I7S7GOrjyxTjgEJlSnovXE38+bdxBpuKN6z+d//uF+T+VQ3Q7ltJL/71p17ufartARX9Ja5gOGQ==" + }, + "os": [ + "freebsd" + ], + "cpu": [ + "x64" + ] + }, + "@rollup/rollup-linux-arm-gnueabihf@4.65.0": { + "name": "@rollup/rollup-linux-arm-gnueabihf", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.65.0.tgz", + "integrity": "sha512-W1vUprf09RWaVWnsFP1vlUkEWJzTZlpObOEAYZXt9Fq0UVAOYEkeGr7wBX7McKqqIQskXdBnpiOMgwPujordgA==" + }, + "os": [ + "linux" + ], + "cpu": [ + "arm" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-arm-musleabihf@4.65.0": { + "name": "@rollup/rollup-linux-arm-musleabihf", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.65.0.tgz", + "integrity": "sha512-s8QTcZWgrl9haFzEGIqyE5BWyo89pFDGLMBFZ752WYxk8DJwNU/O1X6pZgPw829d9/sm6CCHyrMP3aurt76p1Q==" + }, + "os": [ + "linux" + ], + "cpu": [ + "arm" + ], + "libc": [ + "musl" + ] + }, + "@rollup/rollup-linux-arm64-gnu@4.65.0": { + "name": "@rollup/rollup-linux-arm64-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.65.0.tgz", + "integrity": "sha512-ke1f6dLRzkqveyjjF2fkEwQYZvxHtNNwjegY8nJrwcO0Bdqr8CzFO/pKE0Bns13cx0qz2Ba2Y0Hs3dSwMdnHxA==" + }, + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-arm64-musl@4.65.0": { + "name": "@rollup/rollup-linux-arm64-musl", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.65.0.tgz", + "integrity": "sha512-926SMeUcy4y18Rz/w2aJiUKOnyAnm6czg72bXkQEaeemsll+Wr0hnsjb2BGRpHvWgwAMYy5ACJCotbvfLCfj0A==" + }, + "os": [ + "linux" + ], + "cpu": [ + "arm64" + ], + "libc": [ + "musl" + ] + }, + "@rollup/rollup-linux-loong64-gnu@4.65.0": { + "name": "@rollup/rollup-linux-loong64-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.65.0.tgz", + "integrity": "sha512-6T7JNRP1hc4hqF2dUsEoVLOt9K8tmODoCLldtQRYnrddGGQY8Gqe2pM/qMMUo7EMowpP7oa2N95k0/8sYK/ipw==" + }, + "os": [ + "linux" + ], + "cpu": [ + "loong64" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-loong64-musl@4.65.0": { + "name": "@rollup/rollup-linux-loong64-musl", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.65.0.tgz", + "integrity": "sha512-SImGFl1Je5kpyAgOCPONVT7h6ASV8mAUwGRjY7eZvVjPg//PfHOXgI+P241RF/+HqsA4PP3qD527ysWFKNQyhQ==" + }, + "os": [ + "linux" + ], + "cpu": [ + "loong64" + ], + "libc": [ + "musl" + ] + }, + "@rollup/rollup-linux-ppc64-gnu@4.65.0": { + "name": "@rollup/rollup-linux-ppc64-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.65.0.tgz", + "integrity": "sha512-XeDTbmPF1Yu5asfXGPrMkWoxTDhgryQbmw5Q1+R582O51VNCk23J6f2pDrsAp5YkneBVBwtExx6ZGOb9D2aQ6A==" + }, + "os": [ + "linux" + ], + "cpu": [ + "ppc64" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-ppc64-musl@4.65.0": { + "name": "@rollup/rollup-linux-ppc64-musl", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.65.0.tgz", + "integrity": "sha512-VS55JUI/1nsljmV/jfqNkLZXFw8uMO8nNlfoHmSevNf6fO3neuhyDvx9dv3c/Ytt8r/431SL8Qax1dpYvOMZTg==" + }, + "os": [ + "linux" + ], + "cpu": [ + "ppc64" + ], + "libc": [ + "musl" + ] + }, + "@rollup/rollup-linux-riscv64-gnu@4.65.0": { + "name": "@rollup/rollup-linux-riscv64-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.65.0.tgz", + "integrity": "sha512-Vblw84TbX7RS4la1Y4+yQ7aore/oSyaNtFbppuBr5Vs/4LfBeXKq9dIfoExw6zOvRERqd2rRAjnZRaMhH/0x5w==" + }, + "os": [ + "linux" + ], + "cpu": [ + "riscv64" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-riscv64-musl@4.65.0": { + "name": "@rollup/rollup-linux-riscv64-musl", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.65.0.tgz", + "integrity": "sha512-7+gHjtONvKgwR9InTKFaLq53f6YzBJkgeMRBENdWTsQr+spahGqQm8HF5aXpq8i4JaRrOqYyv6Zn1WltDTxaZQ==" + }, + "os": [ + "linux" + ], + "cpu": [ + "riscv64" + ], + "libc": [ + "musl" + ] + }, + "@rollup/rollup-linux-s390x-gnu@4.65.0": { + "name": "@rollup/rollup-linux-s390x-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.65.0.tgz", + "integrity": "sha512-KvNDC0J6s4vVHhtJ6KrDXU0Er0au/hmRIBq/+1maCV8TseGupeKizq0bWcrbp2HE1T8xoknvN0Q/KZ/YF0qX3w==" + }, + "os": [ + "linux" + ], + "cpu": [ + "s390x" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-x64-gnu@4.65.0": { + "name": "@rollup/rollup-linux-x64-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.65.0.tgz", + "integrity": "sha512-GExdD15WPvu/x/drELjVam7vX8EsPgvTMOa/iJL/p/4m/oOqzbb7JXZg8fXR4hlXtg/sF2zyTZ3bR0AEtEMlhQ==" + }, + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "libc": [ + "glibc" + ] + }, + "@rollup/rollup-linux-x64-musl@4.65.0": { + "name": "@rollup/rollup-linux-x64-musl", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.65.0.tgz", + "integrity": "sha512-8sT9PemIZfIMED4Vd4KGoOXVDj5CMSWNcGdbheRUx9TYS03yOWdT2Q0lXPyEyNBB9YTilwewIQKNIBk6Nxi0Kg==" + }, + "os": [ + "linux" + ], + "cpu": [ + "x64" + ], + "libc": [ + "musl" + ] + }, + "@rollup/rollup-openbsd-x64@4.65.0": { + "name": "@rollup/rollup-openbsd-x64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.65.0.tgz", + "integrity": "sha512-pO6Ehi0jo5yE0R6PltKhJhv9mlIiyzBJk5N5NUF2OF6xtVKI+1bdXxj/rb0jGXy3hck1ELVT0QPY3tzkAm360w==" + }, + "os": [ + "openbsd" + ], + "cpu": [ + "x64" + ] + }, + "@rollup/rollup-openharmony-arm64@4.65.0": { + "name": "@rollup/rollup-openharmony-arm64", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.65.0.tgz", + "integrity": "sha512-vo7N3/+cjjPDYr8vtxC+qSNgWa9sDvJ7g8N8R5SWqFY4WiNH1ULcAU70SKVyHeiIZOYYwNP9pTipmhN5sl1NPw==" + }, + "os": [ + "openharmony" + ], + "cpu": [ + "arm64" + ] + }, + "@rollup/rollup-win32-arm64-msvc@4.65.0": { + "name": "@rollup/rollup-win32-arm64-msvc", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.65.0.tgz", + "integrity": "sha512-ArwvgFAbjKcDM7qqotZ4OVYf+UMT9xH2YzkCzK4+AuZSDihMlz1Ekoe4INwBVXzn2mnJzuIYOcSx07iTBijGRQ==" + }, + "os": [ + "win32" + ], + "cpu": [ + "arm64" + ] + }, + "@rollup/rollup-win32-ia32-msvc@4.65.0": { + "name": "@rollup/rollup-win32-ia32-msvc", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.65.0.tgz", + "integrity": "sha512-QGMmK4/cxKE/36FoLMSHQBCyymv/eFTnsCvvsBF0rgmOvVbvX78VWZRerL3dHa77f4pM6Xcc2iGDhJ10w/svKQ==" + }, + "os": [ + "win32" + ], + "cpu": [ + "ia32" + ] + }, + "@rollup/rollup-win32-x64-gnu@4.65.0": { + "name": "@rollup/rollup-win32-x64-gnu", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.65.0.tgz", + "integrity": "sha512-XfKYFWHIPs4HPODIMsGF1IKlS3H1e3WokUZIgpmn4+uNnZBlnRDDHEylNyazbQXwhMKZre68OjtRYbKqb5+j8w==" + }, + "os": [ + "win32" + ], + "cpu": [ + "x64" + ] + }, + "@rollup/rollup-win32-x64-msvc@4.65.0": { + "name": "@rollup/rollup-win32-x64-msvc", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.65.0.tgz", + "integrity": "sha512-wPWi++K4Bs1VR4XihOhfGi4IGX6Cub7FlerTf8X2v+2BtDHddgSqWCXwGD+h2yAe4/niIhNDwAltioOC+wEogQ==" + }, + "os": [ + "win32" + ], + "cpu": [ + "x64" + ] + }, + "@shikijs/core@2.5.0": { + "name": "@shikijs/core", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/core/-/core-2.5.0.tgz", + "integrity": "sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg==" + }, + "dependencies": { + "@shikijs/engine-javascript": "@shikijs/engine-javascript@2.5.0", + "@shikijs/engine-oniguruma": "@shikijs/engine-oniguruma@2.5.0", + "@shikijs/types": "@shikijs/types@2.5.0", + "@shikijs/vscode-textmate": "@shikijs/vscode-textmate@10.1.0", + "@types/hast": "@types/hast@3.0.5", + "hast-util-to-html": "hast-util-to-html@9.0.5" + } + }, + "@shikijs/engine-javascript@2.5.0": { + "name": "@shikijs/engine-javascript", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-2.5.0.tgz", + "integrity": "sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w==" + }, + "dependencies": { + "@shikijs/types": "@shikijs/types@2.5.0", + "@shikijs/vscode-textmate": "@shikijs/vscode-textmate@10.1.0", + "oniguruma-to-es": "oniguruma-to-es@3.1.1" + } + }, + "@shikijs/engine-oniguruma@2.5.0": { + "name": "@shikijs/engine-oniguruma", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-2.5.0.tgz", + "integrity": "sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw==" + }, + "dependencies": { + "@shikijs/types": "@shikijs/types@2.5.0", + "@shikijs/vscode-textmate": "@shikijs/vscode-textmate@10.1.0" + } + }, + "@shikijs/langs@2.5.0": { + "name": "@shikijs/langs", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz", + "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==" + }, + "dependencies": { + "@shikijs/types": "@shikijs/types@2.5.0" + } + }, + "@shikijs/themes@2.5.0": { + "name": "@shikijs/themes", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz", + "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==" + }, + "dependencies": { + "@shikijs/types": "@shikijs/types@2.5.0" + } + }, + "@shikijs/transformers@2.5.0": { + "name": "@shikijs/transformers", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/transformers/-/transformers-2.5.0.tgz", + "integrity": "sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg==" + }, + "dependencies": { + "@shikijs/core": "@shikijs/core@2.5.0", + "@shikijs/types": "@shikijs/types@2.5.0" + } + }, + "@shikijs/types@2.5.0": { + "name": "@shikijs/types", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/types/-/types-2.5.0.tgz", + "integrity": "sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw==" + }, + "dependencies": { + "@shikijs/vscode-textmate": "@shikijs/vscode-textmate@10.1.0", + "@types/hast": "@types/hast@3.0.5" + } + }, + "@shikijs/vscode-textmate@10.1.0": { + "name": "@shikijs/vscode-textmate", + "version": "10.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz", + "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==" + } + }, + "@types/estree@1.0.9": { + "name": "@types/estree", + "version": "1.0.9", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==" + } + }, + "@types/hast@3.0.5": { + "name": "@types/hast", + "version": "3.0.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3" + } + }, + "@types/linkify-it@5.0.0": { + "name": "@types/linkify-it", + "version": "5.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==" + } + }, + "@types/markdown-it@14.2.0": { + "name": "@types/markdown-it", + "version": "14.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", + "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==" + }, + "dependencies": { + "@types/linkify-it": "@types/linkify-it@5.0.0", + "@types/mdurl": "@types/mdurl@2.0.0" + } + }, + "@types/mdast@4.0.4": { + "name": "@types/mdast", + "version": "4.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3" + } + }, + "@types/mdurl@2.0.0": { + "name": "@types/mdurl", + "version": "2.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==" + } + }, + "@types/unist@3.0.3": { + "name": "@types/unist", + "version": "3.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==" + } + }, + "@types/web-bluetooth@0.0.21": { + "name": "@types/web-bluetooth", + "version": "0.0.21", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==" + } + }, + "@ungap/structured-clone@1.4.0": { + "name": "@ungap/structured-clone", + "version": "1.4.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==" + } + }, + "@vitejs/plugin-vue@5.2.4_vite@5.4.21_vue@3.5.44": { + "name": "@vitejs/plugin-vue", + "version": "5.2.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==" + }, + "peerDependencies": { + "vite": "vite@5.4.21", + "vue": "vue@3.5.44" + } + }, + "@vue/compiler-core@3.5.44": { + "name": "@vue/compiler-core", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.44.tgz", + "integrity": "sha512-k34nCytbK8PQ1gR2mGROYOw6Pnv/mumqIdrZ3x2tbyXZDWm7ViKGLTfdB+DRrWqEQsLgGJvn0WN9jBif5zCTLQ==" + }, + "dependencies": { + "@babel/parser": "@babel/parser@7.29.11", + "@vue/shared": "@vue/shared@3.5.44", + "entities": "entities@7.0.1", + "estree-walker": "estree-walker@2.0.2", + "source-map-js": "source-map-js@1.2.2" + } + }, + "@vue/compiler-dom@3.5.44": { + "name": "@vue/compiler-dom", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.44.tgz", + "integrity": "sha512-W5AoBFWdw1lQAKiHowkfgFKFab82oSRT6sGsPfw/q1GRjsy/ZJFLHGhJyBRIFN9APLTUduDH9U2JAiPOIyKuYg==" + }, + "dependencies": { + "@vue/compiler-core": "@vue/compiler-core@3.5.44", + "@vue/shared": "@vue/shared@3.5.44" + } + }, + "@vue/compiler-sfc@3.5.44": { + "name": "@vue/compiler-sfc", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.44.tgz", + "integrity": "sha512-dzHmQ4jXTpdr5FjIQUeykVakN/uzqFbUo9/C5ikBFg3a3PeM6uRxeczx1ZbXBML0/zJstEh3ygYipzR5Z7b2Pw==" + }, + "dependencies": { + "@babel/parser": "@babel/parser@7.29.11", + "@vue/compiler-core": "@vue/compiler-core@3.5.44", + "@vue/compiler-dom": "@vue/compiler-dom@3.5.44", + "@vue/compiler-ssr": "@vue/compiler-ssr@3.5.44", + "@vue/shared": "@vue/shared@3.5.44", + "estree-walker": "estree-walker@2.0.2", + "magic-string": "magic-string@0.30.21", + "postcss": "postcss@8.5.31", + "source-map-js": "source-map-js@1.2.2" + } + }, + "@vue/compiler-ssr@3.5.44": { + "name": "@vue/compiler-ssr", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.44.tgz", + "integrity": "sha512-xr5gb1JVHlfXJwSlRz1FeP6uxoazdzHuMTVLE7up+4Vrqxk219CvxLPxD9NXBt47yvZW7+p4DXfyp4O1fkByIA==" + }, + "dependencies": { + "@vue/compiler-dom": "@vue/compiler-dom@3.5.44", + "@vue/shared": "@vue/shared@3.5.44" + } + }, + "@vue/devtools-api@7.7.10": { + "name": "@vue/devtools-api", + "version": "7.7.10", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.10.tgz", + "integrity": "sha512-KxtEpUOOpFz/qOGRrAwA36QF7DqIA+FXgCYit9mk9wjbaZt0sXOFz81ElOZtKA4HbWHUdwNjZHBFsFFyp5BZiA==" + }, + "dependencies": { + "@vue/devtools-kit": "@vue/devtools-kit@7.7.10" + } + }, + "@vue/devtools-kit@7.7.10": { + "name": "@vue/devtools-kit", + "version": "7.7.10", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.10.tgz", + "integrity": "sha512-3WNi2Kq4tbpVbmhml7RiphmAt0279oh3fKNeWMQIrltfX8Q91b4i5PL8DtyNKdwmcsGrV4fg+erwWOmD05CLIw==" + }, + "dependencies": { + "@vue/devtools-shared": "@vue/devtools-shared@7.7.10", + "birpc": "birpc@2.9.0", + "hookable": "hookable@5.5.3", + "mitt": "mitt@3.0.1", + "perfect-debounce": "perfect-debounce@1.0.0", + "speakingurl": "speakingurl@14.0.1", + "superjson": "superjson@2.2.6" + } + }, + "@vue/devtools-shared@7.7.10": { + "name": "@vue/devtools-shared", + "version": "7.7.10", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.10.tgz", + "integrity": "sha512-wOPslzB8vTvpxwdaOcR2qAbwmuSP0L+rhpoC6Cf56V3Jip+HWb7PQQXOUPgBNQARpXsbQX/+mvi8kKucmBGRwQ==" + }, + "dependencies": { + "rfdc": "rfdc@1.4.1" + } + }, + "@vue/reactivity@3.5.44": { + "name": "@vue/reactivity", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.44.tgz", + "integrity": "sha512-u+QJdKeBBEADkPdevsL+6E12QlYVfBD8Zcw5qjDQKtamI6l14KyqazJMobhCKelhWN5zpyKUiEDoTyHE93cqWw==" + }, + "dependencies": { + "@vue/shared": "@vue/shared@3.5.44" + } + }, + "@vue/runtime-core@3.5.44": { + "name": "@vue/runtime-core", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.44.tgz", + "integrity": "sha512-uEa/ndwjhrrhnOfb2p+sZy6zeoamJOISqaLSJGk/8R6nABT1ZldpzcJoPzKj+zHVomVBPcmQYyC2r4LtvDV6CQ==" + }, + "dependencies": { + "@vue/reactivity": "@vue/reactivity@3.5.44", + "@vue/shared": "@vue/shared@3.5.44" + } + }, + "@vue/runtime-dom@3.5.44": { + "name": "@vue/runtime-dom", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.44.tgz", + "integrity": "sha512-3fc4ARcXVhVBaJ3ujWiNZJARD6pkyRcwG+ZYhMzjKtKUp7MAY0HLwr7r3Smep3Li6ZaWT6ewdmx8XqdaD5oNZg==" + }, + "dependencies": { + "@vue/reactivity": "@vue/reactivity@3.5.44", + "@vue/runtime-core": "@vue/runtime-core@3.5.44", + "@vue/shared": "@vue/shared@3.5.44", + "csstype": "csstype@3.2.3" + } + }, + "@vue/server-renderer@3.5.44": { + "name": "@vue/server-renderer", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.44.tgz", + "integrity": "sha512-R4S1UoH4h5Frrauv8Z5XE5TxV9oBiUSgWIC4TyVK1FK+RocRnOLwFA5Xcmo2011RlgJp+AbZCnw6afrhlgRuUQ==" + }, + "dependencies": { + "@vue/compiler-ssr": "@vue/compiler-ssr@3.5.44", + "@vue/runtime-dom": "@vue/runtime-dom@3.5.44", + "@vue/shared": "@vue/shared@3.5.44" + } + }, + "@vue/shared@3.5.44": { + "name": "@vue/shared", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.44.tgz", + "integrity": "sha512-H82XLH0DjmSOdbEwO15x3QTo1f5PWEtv237eLpYKc0mqLu+B8hnq16lFWmuBmNurkeiG3wr+oM1FhOll/YVFRg==" + } + }, + "@vueuse/core@12.8.2": { + "name": "@vueuse/core", + "version": "12.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vueuse/core/-/core-12.8.2.tgz", + "integrity": "sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ==" + }, + "dependencies": { + "@types/web-bluetooth": "@types/web-bluetooth@0.0.21", + "@vueuse/metadata": "@vueuse/metadata@12.8.2", + "@vueuse/shared": "@vueuse/shared@12.8.2", + "vue": "vue@3.5.44" + } + }, + "@vueuse/integrations@12.8.2_focus-trap@7.8.0": { + "name": "@vueuse/integrations", + "version": "12.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vueuse/integrations/-/integrations-12.8.2.tgz", + "integrity": "sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g==" + }, + "dependencies": { + "@vueuse/core": "@vueuse/core@12.8.2", + "@vueuse/shared": "@vueuse/shared@12.8.2", + "vue": "vue@3.5.44" + }, + "peerDependencies": { + "focus-trap": "focus-trap@7.8.0" + } + }, + "@vueuse/metadata@12.8.2": { + "name": "@vueuse/metadata", + "version": "12.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.8.2.tgz", + "integrity": "sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A==" + } + }, + "@vueuse/shared@12.8.2": { + "name": "@vueuse/shared", + "version": "12.8.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/@vueuse/shared/-/shared-12.8.2.tgz", + "integrity": "sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==" + }, + "dependencies": { + "vue": "vue@3.5.44" + } + }, + "algoliasearch@5.60.0": { + "name": "algoliasearch", + "version": "5.60.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.60.0.tgz", + "integrity": "sha512-LKEMSE7DDZ67w/2dp0wIROAMIejT6I+UESIbu+IjPVKHkgxzag08xU3zVvvJhWGWL2T3B+e3Ai8fqYG5UHKTGA==" + }, + "dependencies": { + "@algolia/abtesting": "@algolia/abtesting@1.26.0", + "@algolia/client-abtesting": "@algolia/client-abtesting@5.60.0", + "@algolia/client-analytics": "@algolia/client-analytics@5.60.0", + "@algolia/client-common": "@algolia/client-common@5.60.0", + "@algolia/client-insights": "@algolia/client-insights@5.60.0", + "@algolia/client-personalization": "@algolia/client-personalization@5.60.0", + "@algolia/client-query-suggestions": "@algolia/client-query-suggestions@5.60.0", + "@algolia/client-search": "@algolia/client-search@5.60.0", + "@algolia/ingestion": "@algolia/ingestion@1.60.0", + "@algolia/monitoring": "@algolia/monitoring@1.60.0", + "@algolia/recommend": "@algolia/recommend@5.60.0", + "@algolia/requester-browser-xhr": "@algolia/requester-browser-xhr@5.60.0", + "@algolia/requester-fetch": "@algolia/requester-fetch@5.60.0", + "@algolia/requester-node-http": "@algolia/requester-node-http@5.60.0" + } + }, + "birpc@2.9.0": { + "name": "birpc", + "version": "2.9.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==" + } + }, + "ccount@2.0.1": { + "name": "ccount", + "version": "2.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==" + } + }, + "character-entities-html4@2.1.0": { + "name": "character-entities-html4", + "version": "2.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==" + } + }, + "character-entities-legacy@3.0.0": { + "name": "character-entities-legacy", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==" + } + }, + "comma-separated-tokens@2.0.3": { + "name": "comma-separated-tokens", + "version": "2.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==" + } + }, + "copy-anything@4.1.5": { + "name": "copy-anything", + "version": "4.1.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.1.5.tgz", + "integrity": "sha512-vePst2VLTSqPglW7Q98VwFpGiGpOHTyXIo81MO5VyLecA5zMbZw/P/V1vmwD1jksa2iJpn/YkDrJ3XhTfzUyhQ==" + } + }, + "csstype@3.2.3": { + "name": "csstype", + "version": "3.2.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==" + } + }, + "dequal@2.0.3": { + "name": "dequal", + "version": "2.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==" + } + }, + "devlop@1.1.0": { + "name": "devlop", + "version": "1.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==" + }, + "dependencies": { + "dequal": "dequal@2.0.3" + } + }, + "emoji-regex-xs@1.0.0": { + "name": "emoji-regex-xs", + "version": "1.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz", + "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==" + } + }, + "entities@7.0.1": { + "name": "entities", + "version": "7.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==" + } + }, + "esbuild@0.21.5": { + "name": "esbuild", + "version": "0.21.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "@esbuild/aix-ppc64@0.21.5", + "@esbuild/android-arm": "@esbuild/android-arm@0.21.5", + "@esbuild/android-arm64": "@esbuild/android-arm64@0.21.5", + "@esbuild/android-x64": "@esbuild/android-x64@0.21.5", + "@esbuild/darwin-arm64": "@esbuild/darwin-arm64@0.21.5", + "@esbuild/darwin-x64": "@esbuild/darwin-x64@0.21.5", + "@esbuild/freebsd-arm64": "@esbuild/freebsd-arm64@0.21.5", + "@esbuild/freebsd-x64": "@esbuild/freebsd-x64@0.21.5", + "@esbuild/linux-arm": "@esbuild/linux-arm@0.21.5", + "@esbuild/linux-arm64": "@esbuild/linux-arm64@0.21.5", + "@esbuild/linux-ia32": "@esbuild/linux-ia32@0.21.5", + "@esbuild/linux-loong64": "@esbuild/linux-loong64@0.21.5", + "@esbuild/linux-mips64el": "@esbuild/linux-mips64el@0.21.5", + "@esbuild/linux-ppc64": "@esbuild/linux-ppc64@0.21.5", + "@esbuild/linux-riscv64": "@esbuild/linux-riscv64@0.21.5", + "@esbuild/linux-s390x": "@esbuild/linux-s390x@0.21.5", + "@esbuild/linux-x64": "@esbuild/linux-x64@0.21.5", + "@esbuild/netbsd-x64": "@esbuild/netbsd-x64@0.21.5", + "@esbuild/openbsd-x64": "@esbuild/openbsd-x64@0.21.5", + "@esbuild/sunos-x64": "@esbuild/sunos-x64@0.21.5", + "@esbuild/win32-arm64": "@esbuild/win32-arm64@0.21.5", + "@esbuild/win32-ia32": "@esbuild/win32-ia32@0.21.5", + "@esbuild/win32-x64": "@esbuild/win32-x64@0.21.5" + } + }, + "estree-walker@2.0.2": { + "name": "estree-walker", + "version": "2.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" + } + }, + "focus-trap@7.8.0": { + "name": "focus-trap", + "version": "7.8.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.8.0.tgz", + "integrity": "sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA==" + }, + "dependencies": { + "tabbable": "tabbable@6.5.0" + } + }, + "fsevents@2.3.3": { + "name": "fsevents", + "version": "2.3.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==" + }, + "os": [ + "darwin" + ] + }, + "hast-util-to-html@9.0.5": { + "name": "hast-util-to-html", + "version": "9.0.5", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", + "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==" + }, + "dependencies": { + "@types/hast": "@types/hast@3.0.5", + "@types/unist": "@types/unist@3.0.3", + "ccount": "ccount@2.0.1", + "comma-separated-tokens": "comma-separated-tokens@2.0.3", + "hast-util-whitespace": "hast-util-whitespace@3.0.0", + "html-void-elements": "html-void-elements@3.0.0", + "mdast-util-to-hast": "mdast-util-to-hast@13.2.1", + "property-information": "property-information@7.2.0", + "space-separated-tokens": "space-separated-tokens@2.0.2", + "stringify-entities": "stringify-entities@4.0.4", + "zwitch": "zwitch@2.0.4" + } + }, + "hast-util-whitespace@3.0.0": { + "name": "hast-util-whitespace", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==" + }, + "dependencies": { + "@types/hast": "@types/hast@3.0.5" + } + }, + "hookable@5.5.3": { + "name": "hookable", + "version": "5.5.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==" + } + }, + "html-void-elements@3.0.0": { + "name": "html-void-elements", + "version": "3.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==" + } + }, + "magic-string@0.30.21": { + "name": "magic-string", + "version": "0.30.21", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": "@jridgewell/sourcemap-codec@1.6.0" + } + }, + "mark.js@8.11.1": { + "name": "mark.js", + "version": "8.11.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", + "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==" + } + }, + "mdast-util-to-hast@13.2.1": { + "name": "mdast-util-to-hast", + "version": "13.2.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==" + }, + "dependencies": { + "@types/hast": "@types/hast@3.0.5", + "@types/mdast": "@types/mdast@4.0.4", + "@ungap/structured-clone": "@ungap/structured-clone@1.4.0", + "devlop": "devlop@1.1.0", + "micromark-util-sanitize-uri": "micromark-util-sanitize-uri@2.0.1", + "trim-lines": "trim-lines@3.0.1", + "unist-util-position": "unist-util-position@5.0.0", + "unist-util-visit": "unist-util-visit@5.2.0", + "vfile": "vfile@6.0.3" + } + }, + "micromark-util-character@2.1.1": { + "name": "micromark-util-character", + "version": "2.1.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==" + }, + "dependencies": { + "micromark-util-symbol": "micromark-util-symbol@2.0.1", + "micromark-util-types": "micromark-util-types@2.0.3" + } + }, + "micromark-util-encode@2.0.1": { + "name": "micromark-util-encode", + "version": "2.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==" + } + }, + "micromark-util-sanitize-uri@2.0.1": { + "name": "micromark-util-sanitize-uri", + "version": "2.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==" + }, + "dependencies": { + "micromark-util-character": "micromark-util-character@2.1.1", + "micromark-util-encode": "micromark-util-encode@2.0.1", + "micromark-util-symbol": "micromark-util-symbol@2.0.1" + } + }, + "micromark-util-symbol@2.0.1": { + "name": "micromark-util-symbol", + "version": "2.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==" + } + }, + "micromark-util-types@2.0.3": { + "name": "micromark-util-types", + "version": "2.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==" + } + }, + "minisearch@7.2.0": { + "name": "minisearch", + "version": "7.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/minisearch/-/minisearch-7.2.0.tgz", + "integrity": "sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg==" + } + }, + "mitt@3.0.1": { + "name": "mitt", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==" + } + }, + "nanoid@3.3.20": { + "name": "nanoid", + "version": "3.3.20", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==" + } + }, + "oniguruma-to-es@3.1.1": { + "name": "oniguruma-to-es", + "version": "3.1.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz", + "integrity": "sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==" + }, + "dependencies": { + "emoji-regex-xs": "emoji-regex-xs@1.0.0", + "regex": "regex@6.1.0", + "regex-recursion": "regex-recursion@6.0.2" + } + }, + "perfect-debounce@1.0.0": { + "name": "perfect-debounce", + "version": "1.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==" + } + }, + "picocolors@1.1.1": { + "name": "picocolors", + "version": "1.1.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" + } + }, + "postcss@8.5.31": { + "name": "postcss", + "version": "8.5.31", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/postcss/-/postcss-8.5.31.tgz", + "integrity": "sha512-YUbWYCgErwnMAVkjUnYa+KlMBzGpHwiIt/DE7f0G33AuX2LH9UcTk6KgWxd3zRU+pN3u/C+Xl3EnMLM4Hea7Sg==" + }, + "dependencies": { + "nanoid": "nanoid@3.3.20", + "picocolors": "picocolors@1.1.1", + "source-map-js": "source-map-js@1.2.2" + } + }, + "preact@10.29.8": { + "name": "preact", + "version": "10.29.8", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/preact/-/preact-10.29.8.tgz", + "integrity": "sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==" + } + }, + "property-information@7.2.0": { + "name": "property-information", + "version": "7.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==" + } + }, + "regex-recursion@6.0.2": { + "name": "regex-recursion", + "version": "6.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==" + }, + "dependencies": { + "regex-utilities": "regex-utilities@2.3.0" + } + }, + "regex-utilities@2.3.0": { + "name": "regex-utilities", + "version": "2.3.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==" + } + }, + "regex@6.1.0": { + "name": "regex", + "version": "6.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==" + }, + "dependencies": { + "regex-utilities": "regex-utilities@2.3.0" + } + }, + "rfdc@1.4.1": { + "name": "rfdc", + "version": "1.4.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==" + } + }, + "rollup@4.65.0": { + "name": "rollup", + "version": "4.65.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/rollup/-/rollup-4.65.0.tgz", + "integrity": "sha512-QVCvQUTGDN6JRwi3jVGCY3H4aTHvi9rX0LyoBMkGUvdh/Z6O51CzcLz85BWZaTCDGhl6ySGqYZs+xI1jmPqGcw==" + }, + "dependencies": { + "@types/estree": "@types/estree@1.0.9" + }, + "optionalDependencies": { + "@napi-rs/lzma-linux-x64-gnu": "@napi-rs/lzma-linux-x64-gnu@1.5.1", + "@rollup/rollup-android-arm-eabi": "@rollup/rollup-android-arm-eabi@4.65.0", + "@rollup/rollup-android-arm64": "@rollup/rollup-android-arm64@4.65.0", + "@rollup/rollup-darwin-arm64": "@rollup/rollup-darwin-arm64@4.65.0", + "@rollup/rollup-darwin-x64": "@rollup/rollup-darwin-x64@4.65.0", + "@rollup/rollup-freebsd-arm64": "@rollup/rollup-freebsd-arm64@4.65.0", + "@rollup/rollup-freebsd-x64": "@rollup/rollup-freebsd-x64@4.65.0", + "@rollup/rollup-linux-arm-gnueabihf": "@rollup/rollup-linux-arm-gnueabihf@4.65.0", + "@rollup/rollup-linux-arm-musleabihf": "@rollup/rollup-linux-arm-musleabihf@4.65.0", + "@rollup/rollup-linux-arm64-gnu": "@rollup/rollup-linux-arm64-gnu@4.65.0", + "@rollup/rollup-linux-arm64-musl": "@rollup/rollup-linux-arm64-musl@4.65.0", + "@rollup/rollup-linux-loong64-gnu": "@rollup/rollup-linux-loong64-gnu@4.65.0", + "@rollup/rollup-linux-loong64-musl": "@rollup/rollup-linux-loong64-musl@4.65.0", + "@rollup/rollup-linux-ppc64-gnu": "@rollup/rollup-linux-ppc64-gnu@4.65.0", + "@rollup/rollup-linux-ppc64-musl": "@rollup/rollup-linux-ppc64-musl@4.65.0", + "@rollup/rollup-linux-riscv64-gnu": "@rollup/rollup-linux-riscv64-gnu@4.65.0", + "@rollup/rollup-linux-riscv64-musl": "@rollup/rollup-linux-riscv64-musl@4.65.0", + "@rollup/rollup-linux-s390x-gnu": "@rollup/rollup-linux-s390x-gnu@4.65.0", + "@rollup/rollup-linux-x64-gnu": "@rollup/rollup-linux-x64-gnu@4.65.0", + "@rollup/rollup-linux-x64-musl": "@rollup/rollup-linux-x64-musl@4.65.0", + "@rollup/rollup-openbsd-x64": "@rollup/rollup-openbsd-x64@4.65.0", + "@rollup/rollup-openharmony-arm64": "@rollup/rollup-openharmony-arm64@4.65.0", + "@rollup/rollup-win32-arm64-msvc": "@rollup/rollup-win32-arm64-msvc@4.65.0", + "@rollup/rollup-win32-ia32-msvc": "@rollup/rollup-win32-ia32-msvc@4.65.0", + "@rollup/rollup-win32-x64-gnu": "@rollup/rollup-win32-x64-gnu@4.65.0", + "@rollup/rollup-win32-x64-msvc": "@rollup/rollup-win32-x64-msvc@4.65.0", + "fsevents": "fsevents@2.3.3" + } + }, + "search-insights@2.17.3": { + "name": "search-insights", + "version": "2.17.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz", + "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==" + } + }, + "shiki@2.5.0": { + "name": "shiki", + "version": "2.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz", + "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==" + }, + "dependencies": { + "@shikijs/core": "@shikijs/core@2.5.0", + "@shikijs/engine-javascript": "@shikijs/engine-javascript@2.5.0", + "@shikijs/engine-oniguruma": "@shikijs/engine-oniguruma@2.5.0", + "@shikijs/langs": "@shikijs/langs@2.5.0", + "@shikijs/themes": "@shikijs/themes@2.5.0", + "@shikijs/types": "@shikijs/types@2.5.0", + "@shikijs/vscode-textmate": "@shikijs/vscode-textmate@10.1.0", + "@types/hast": "@types/hast@3.0.5" + } + }, + "source-map-js@1.2.2": { + "name": "source-map-js", + "version": "1.2.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==" + } + }, + "space-separated-tokens@2.0.2": { + "name": "space-separated-tokens", + "version": "2.0.2", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==" + } + }, + "speakingurl@14.0.1": { + "name": "speakingurl", + "version": "14.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", + "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==" + } + }, + "stringify-entities@4.0.4": { + "name": "stringify-entities", + "version": "4.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==" + }, + "dependencies": { + "character-entities-html4": "character-entities-html4@2.1.0", + "character-entities-legacy": "character-entities-legacy@3.0.0" + } + }, + "superjson@2.2.6": { + "name": "superjson", + "version": "2.2.6", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz", + "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==" + }, + "dependencies": { + "copy-anything": "copy-anything@4.1.5" + } + }, + "tabbable@6.5.0": { + "name": "tabbable", + "version": "6.5.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/tabbable/-/tabbable-6.5.0.tgz", + "integrity": "sha512-wieBHXygIm7OyQOu5hQlkk62/WyCFYGlWg7L6/ZCUZwx0o398Zkn4pVmMyfYhfMG8kGrj/Krt8eIk6UKC6VzwA==" + } + }, + "trim-lines@3.0.1": { + "name": "trim-lines", + "version": "3.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==" + } + }, + "unist-util-is@6.0.1": { + "name": "unist-util-is", + "version": "6.0.1", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3" + } + }, + "unist-util-position@5.0.0": { + "name": "unist-util-position", + "version": "5.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3" + } + }, + "unist-util-stringify-position@4.0.0": { + "name": "unist-util-stringify-position", + "version": "4.0.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3" + } + }, + "unist-util-visit-parents@6.1.0": { + "name": "unist-util-visit-parents", + "version": "6.1.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz", + "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3", + "unist-util-is": "unist-util-is@6.0.1" + } + }, + "unist-util-visit@5.2.0": { + "name": "unist-util-visit", + "version": "5.2.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz", + "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3", + "unist-util-is": "unist-util-is@6.0.1", + "unist-util-visit-parents": "unist-util-visit-parents@6.1.0" + } + }, + "vfile-message@4.0.3": { + "name": "vfile-message", + "version": "4.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3", + "unist-util-stringify-position": "unist-util-stringify-position@4.0.0" + } + }, + "vfile@6.0.3": { + "name": "vfile", + "version": "6.0.3", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==" + }, + "dependencies": { + "@types/unist": "@types/unist@3.0.3", + "vfile-message": "vfile-message@4.0.3" + } + }, + "vite@5.4.21": { + "name": "vite", + "version": "5.4.21", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==" + }, + "dependencies": { + "esbuild": "esbuild@0.21.5", + "postcss": "postcss@8.5.31", + "rollup": "rollup@4.65.0" + }, + "optionalDependencies": { + "fsevents": "fsevents@2.3.3" + } + }, + "vitepress@1.6.4": { + "name": "vitepress", + "version": "1.6.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz", + "integrity": "sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==" + }, + "dependencies": { + "@docsearch/css": "@docsearch/css@3.8.2", + "@docsearch/js": "@docsearch/js@3.8.2", + "@iconify-json/simple-icons": "@iconify-json/simple-icons@1.2.100", + "@shikijs/core": "@shikijs/core@2.5.0", + "@shikijs/transformers": "@shikijs/transformers@2.5.0", + "@shikijs/types": "@shikijs/types@2.5.0", + "@types/markdown-it": "@types/markdown-it@14.2.0", + "@vitejs/plugin-vue": "@vitejs/plugin-vue@5.2.4_vite@5.4.21_vue@3.5.44", + "@vue/devtools-api": "@vue/devtools-api@7.7.10", + "@vue/shared": "@vue/shared@3.5.44", + "@vueuse/core": "@vueuse/core@12.8.2", + "@vueuse/integrations": "@vueuse/integrations@12.8.2_focus-trap@7.8.0", + "focus-trap": "focus-trap@7.8.0", + "mark.js": "mark.js@8.11.1", + "minisearch": "minisearch@7.2.0", + "shiki": "shiki@2.5.0", + "vite": "vite@5.4.21", + "vue": "vue@3.5.44" + } + }, + "vue@3.5.44": { + "name": "vue", + "version": "3.5.44", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/vue/-/vue-3.5.44.tgz", + "integrity": "sha512-dvvmaOCG7lAMkJTPqPwWeGMsPS6DIsFsfZDUgBp9V6mHf9b3+/wyVwYR4Es+WV6uJC0FKRxp81Obcq0ZwUcGFQ==" + }, + "dependencies": { + "@vue/compiler-dom": "@vue/compiler-dom@3.5.44", + "@vue/compiler-sfc": "@vue/compiler-sfc@3.5.44", + "@vue/runtime-dom": "@vue/runtime-dom@3.5.44", + "@vue/server-renderer": "@vue/server-renderer@3.5.44", + "@vue/shared": "@vue/shared@3.5.44" + } + }, + "zwitch@2.0.4": { + "name": "zwitch", + "version": "2.0.4", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==" + } + } + } +} From 37f916eedeae94995360fe9b47e1d3d8cb3e951c Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 05/43] docs: Ignore VitePress output The build cache and output aren't sources. --- docs/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 docs/.gitignore diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..b733034 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,2 @@ +.vitepress/cache +.vitepress/dist From 3d8584e3a6266053b53843479d4f069bba7faf64 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 06/43] docs: Configure the docs site Navigation, sidebars, local search and edit links, served under /craft/ on GitHub Pages. --- docs/.vitepress/config.ts | 102 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 docs/.vitepress/config.ts diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts new file mode 100644 index 0000000..55303ae --- /dev/null +++ b/docs/.vitepress/config.ts @@ -0,0 +1,102 @@ +import { defineConfig } from 'vitepress' + +const commands = [ + 'install', + 'add', + 'remove', + 'update', + 'outdated', + 'list', + 'why', + 'run', + 'exec', + 'dlx', + 'trust', + 'init', + 'ci', + 'cache', +] + +export default defineConfig({ + title: 'craft', + description: 'A fast, strict package manager for Node.js, written in Rust.', + base: '/craft/', + cleanUrls: true, + head: [['link', { rel: 'icon', type: 'image/png', href: '/craft/logo.png' }]], + + themeConfig: { + logo: '/logo.png', + + nav: [ + { text: 'Guide', link: '/guide/introduction', activeMatch: '/guide/' }, + { text: 'CLI', link: '/reference/cli', activeMatch: '/reference/' }, + { text: 'Contributing', link: '/contributing/', activeMatch: '/contributing/' }, + ], + + sidebar: { + '/guide/': [ + { + text: 'Getting started', + items: [ + { text: 'Introduction', link: '/guide/introduction' }, + { text: 'Installation', link: '/guide/installation' }, + { text: 'Quick start', link: '/guide/getting-started' }, + ], + }, + { + text: 'Concepts', + items: [ + { text: 'How it works', link: '/guide/how-it-works' }, + { text: 'Lockfile', link: '/guide/lockfile' }, + { text: 'Dependency sources', link: '/guide/dependency-sources' }, + { text: 'Install scripts', link: '/guide/install-scripts' }, + { text: 'Platform packages', link: '/guide/platforms' }, + ], + }, + { + text: 'Using craft', + items: [ + { text: 'Configuration', link: '/guide/configuration' }, + { text: 'Continuous integration', link: '/guide/ci' }, + { text: 'Windows', link: '/guide/windows' }, + { text: 'Migrating from npm or pnpm', link: '/guide/migrating' }, + { text: 'Troubleshooting', link: '/guide/troubleshooting' }, + ], + }, + ], + '/reference/': [ + { + text: 'CLI', + items: [ + { text: 'Overview and global flags', link: '/reference/cli' }, + ...commands.map((command) => ({ + text: `craft ${command}`, + link: `/reference/${command}`, + })), + ], + }, + ], + '/contributing/': [ + { + text: 'Contributing', + items: [ + { text: 'Overview', link: '/contributing/' }, + { text: 'Architecture', link: '/contributing/architecture' }, + { text: 'Testing', link: '/contributing/testing' }, + ], + }, + ], + }, + + socialLinks: [{ icon: 'github', link: 'https://github.com/craftpkg/craft' }], + search: { provider: 'local' }, + editLink: { + pattern: 'https://github.com/craftpkg/craft/edit/main/docs/:path', + text: 'Edit this page on GitHub', + }, + outline: [2, 3], + footer: { + message: 'Released under the MIT License.', + }, + }, +}) From bba5ca927c7a654e293a9bcacad27f764699ed54 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 07/43] docs: Add the home page What craft is, its features and the install one-liner. --- docs/index.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docs/index.md diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..5abfaa5 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,57 @@ +--- +layout: home + +hero: + name: craft + text: A fast, strict package manager for Node.js + tagline: Written in Rust. Installs from npm into an isolated node_modules, keeps a deterministic lockfile, and runs install scripts only for packages you trust. + image: + src: /logo.png + alt: craft + actions: + - theme: brand + text: Get started + link: /guide/getting-started + - theme: alt + text: Why craft? + link: /guide/introduction + - theme: alt + text: CLI reference + link: /reference/cli + +features: + - icon: ⚡ + title: Fast + details: Parallel resolution and downloads, registry metadata cached on disk and revalidated with ETags, and packages cloned from a global store. An unchanged project installs in milliseconds. + - icon: 🔒 + title: Deterministic + details: craft.lock records every resolved version, tarball and integrity hash. Frozen installs, the default in CI, install exactly that. + - icon: 📦 + title: Strict and isolated + details: Every package sees only the dependencies it declares, each project gets its own node_modules/.craft, and the global store is never modified after extraction. + - icon: 🛡️ + title: Safe by default + details: Tarballs are checked against their integrity hash, and dependencies' install scripts run only for packages listed in trustedDependencies. + - icon: 🧩 + title: npm-compatible + details: Semver ranges, dist-tags, npm aliases, git and tarball URLs, file and link dependencies, peer and optional dependencies, platform packages, and .npmrc registries and auth. + - icon: 🖥️ + title: Everywhere + details: Native binaries for Linux (glibc and musl, x64 and arm64), macOS and Windows, with no runtime dependencies. +--- + +## Install + +```sh +curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | bash +``` + +Then, in a project: + +```sh +craft install # install everything in package.json +craft add react # add a dependency +craft run build # run a script +``` + +See [Installation](/guide/installation) for release binaries, Windows and building from source. From 5a2c5f2d8e083f496af5cc72eb371e03573b0de4 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 08/43] docs: Add the Introduction guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/introduction.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/guide/introduction.md diff --git a/docs/guide/introduction.md b/docs/guide/introduction.md new file mode 100644 index 0000000..d450ba4 --- /dev/null +++ b/docs/guide/introduction.md @@ -0,0 +1,33 @@ +# Introduction + +craft is a package manager for Node.js projects, written in Rust. It reads the `package.json` you already have, installs from the npm registry (or any npm-compatible registry), and runs your scripts. You can use it in place of `npm`, `pnpm` or `yarn` for most day-to-day work. + +## What craft does differently + +**A strict `node_modules`.** Like pnpm, craft keeps every package in a virtual store, `node_modules/.craft`, and links each package to exactly the dependencies it declares. Your code can only `require` what your `package.json` lists, so a missing dependency fails on your machine instead of in production. See [How it works](./how-it-works). + +**One copy of each package on disk.** Packages are extracted once into a global store under `~/.craft` and cloned (copy-on-write) or hard-linked into projects, so a second project with the same dependencies costs almost no disk space. + +**Install scripts are opt-in.** A dependency's `preinstall`, `install` and `postinstall` scripts run only if you list the package in `trustedDependencies`. Everything else is reported, never run. See [Install scripts](./install-scripts). + +**A deterministic lockfile.** `craft.lock` is sorted JSON that records every resolved version, source and integrity hash, so the same lockfile produces the same `node_modules` on every machine and platform. See [Lockfile](./lockfile). + +**Clear errors.** Every error prints what failed, why, and when the fix is common, what to do about it. See [Troubleshooting](./troubleshooting). + +## Compared with npm and pnpm + +| | npm | pnpm | craft | +| --- | --- | --- | --- | +| Layout | flat, hoisted | isolated, symlinked | isolated, symlinked | +| Global content store | cache only | yes | yes | +| Dependencies' install scripts | run by default | opt-in since v10 | opt-in via `trustedDependencies` | +| Lockfile | `package-lock.json` | `pnpm-lock.yaml` | `craft.lock` | +| Workspaces | yes | yes | not yet | +| `overrides` / `resolutions` | yes | yes | not yet | +| Written in | JavaScript | JavaScript | Rust | + +## Status + +craft handles real projects today: Express servers, React with Redux and React Query, Vite and TypeScript builds, native packages such as esbuild, SWC, Lightning CSS and bcrypt, and git, tarball, JSR and local dependencies. These scenarios run against the real npm registry in craft's test suite. + +Not supported yet: workspaces and the `workspace:` protocol, `overrides` / `resolutions`, importing `package-lock.json` / `yarn.lock` / `pnpm-lock.yaml`, global installs, `craft publish` and `craft audit`. See [Migrating](./migrating) for what that means for an existing project. From 92489b445991d1703b841adfba8e4ef398acb9b1 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 09/43] docs: Add the Installation guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/installation.md | 71 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 docs/guide/installation.md diff --git a/docs/guide/installation.md b/docs/guide/installation.md new file mode 100644 index 0000000..f382018 --- /dev/null +++ b/docs/guide/installation.md @@ -0,0 +1,71 @@ +# Installation + +craft is a single binary with no runtime dependencies. It needs [Node.js](https://nodejs.org) only to run your scripts and packages. + +## Install script (macOS and Linux) + +```sh +curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | bash +``` + +The script: + +- picks the binary for your system, including a statically linked build on musl systems such as Alpine; +- downloads it with its published SHA-256 checksum and refuses to install a binary that doesn't match; +- installs it to `/usr/local/bin` when that is writable, and to `~/.local/bin` otherwise, without `sudo`; +- prints a reminder if the directory isn't on your `PATH`, then runs `craft --version`. + +It reads three environment variables: + +| Variable | Effect | +| --- | --- | +| `CRAFT_VERSION` | Install that release instead of the latest, e.g. `CRAFT_VERSION=0.1.0` | +| `CRAFT_INSTALL_DIR` | Install into this directory | +| `CRAFT_DOWNLOAD_URL` | Download release assets from this base URL, such as an internal mirror | + +```sh +curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | CRAFT_INSTALL_DIR="$HOME/bin" bash +``` + +## Release binaries + +Every [release](https://github.com/craftpkg/craft/releases) publishes these binaries, each with a `.sha256` file beside it: + +| Platform | Asset | +| --- | --- | +| Linux x64 (glibc) | `craft-linux-amd64` | +| Linux arm64 (glibc) | `craft-linux-arm64` | +| Linux x64 (musl, static) | `craft-linux-amd64-musl` | +| Linux arm64 (musl, static) | `craft-linux-arm64-musl` | +| macOS Intel | `craft-darwin-amd64` | +| macOS Apple Silicon | `craft-darwin-arm64` | +| Windows x64 | `craft-windows-amd64.exe` | + +To verify a download by hand: + +```sh +sha256sum -c craft-linux-amd64.sha256 # or: shasum -a 256 -c … +``` + +## Windows + +Download `craft-windows-amd64.exe` from the releases page, rename it to `craft.exe`, and put it in a directory on your `PATH`. craft needs neither administrator rights nor Developer Mode. See [Windows](./windows) for how it lays out `node_modules` there. + +## From source + +You need [Rust](https://www.rust-lang.org/tools/install): + +```sh +git clone https://github.com/craftpkg/craft.git +cd craft +cargo install --path apps/craft +``` + +## Check the installation + +```sh +craft --version # or -v +craft --help +``` + +craft keeps its store and caches in `~/.craft`. Set `CRAFT_HOME` to put them elsewhere; see [Configuration](./configuration#environment-variables). From 4ea937edb2f81c36bd9766602d175474b278a63c Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 10/43] docs: Add the Quick start guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/getting-started.md | 109 ++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 docs/guide/getting-started.md diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md new file mode 100644 index 0000000..bd349de --- /dev/null +++ b/docs/guide/getting-started.md @@ -0,0 +1,109 @@ +# Quick start + +This walks through a new project from `package.json` to running code. If you already have a project, `cd` into it and start at [Install dependencies](#install-dependencies). + +## Create a project + +```sh +mkdir my-app && cd my-app +craft init +``` + +```text +Created package.json +``` + +`craft init` writes a minimal `package.json` named after the directory. It never overwrites an existing one. + +```json +{ + "name": "my-app", + "version": "1.0.0" +} +``` + +## Add dependencies + +```sh +craft add express +craft add -D typescript +``` + +```text ++ express 5.3.0 +65 packages installed in 1.8s ++ typescript 7.0.2 (dev) +67 packages installed in 2.8s +``` + +`craft add` saves a caret range of the version it installed (`"express": "^5.3.0"`), writes `craft.lock`, and installs. Use `-D` for `devDependencies`, `-E` to save the exact version, `-O` for `optionalDependencies` and `-P` for `peerDependencies`. See [`craft add`](/reference/add). + +## Install dependencies + +```sh +craft install +``` + +On a fresh checkout this installs everything in `package.json`, following `craft.lock` when there is one. When nothing changed, craft notices without touching the network: + +```text +Already up to date +``` + +`craft i` is the same command. + +## Run scripts and bins + +```json +{ + "scripts": { + "build": "tsc", + "start": "node dist/server.js" + } +} +``` + +```sh +craft run build # runs "tsc", with prebuild and postbuild around it +craft start # shortcut for craft run start; craft test for "test" +craft tsc --version # a dependency's bin, when no script has that name +craft run # lists the scripts +``` + +Arguments after the script name are passed to it, quoted so they arrive unchanged: `craft run build --watch`. See [`craft run`](/reference/run). + +To run a tool without adding it to the project, use [`craft dlx`](/reference/dlx): + +```sh +craft dlx create-vite my-site --template react-ts +``` + +## Look around + +```sh +craft list # direct dependencies +craft list --depth 1 # and theirs +craft why debug # every chain that installs debug +craft outdated # what has newer versions +``` + +```text +$ craft why debug +debug 4.4.3 + dependencies: express 5.3.0 → body-parser 2.4.0 → debug 4.4.3 + dependencies: express 5.3.0 → debug 4.4.3 + dependencies: express 5.3.0 → finalhandler 2.1.1 → debug 4.4.3 + … +``` + +## Keep up to date + +```sh +craft update # newest versions your ranges allow +craft update --latest # move to the latest versions, rewriting the ranges +craft remove express # remove a dependency and what only it needed +``` + +## Commit the lockfile + +Commit `package.json` and `craft.lock`, and add `node_modules` to `.gitignore`. In CI, run `craft ci` or `craft install --frozen-lockfile` (the default when `CI` is set) so the build installs exactly what the lockfile says. See [Continuous integration](./ci). From e761b116b5fc9ac0faebd65db01ae751b6087c60 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:43 +0400 Subject: [PATCH 11/43] docs: Add the How it works guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/how-it-works.md | 92 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 docs/guide/how-it-works.md diff --git a/docs/guide/how-it-works.md b/docs/guide/how-it-works.md new file mode 100644 index 0000000..7cc1432 --- /dev/null +++ b/docs/guide/how-it-works.md @@ -0,0 +1,92 @@ +# How it works + +An install has three stages: **resolve** the dependency graph, **fetch** each package into the global store, and **link** the project's `node_modules` from the store. + +## The global store + +Every package is downloaded once, checked against its integrity hash while it streams to disk, and extracted into the store: + +```text +~/.craft/ +├── store/v1/ +│ ├── express@5.3.0-78ac17c20dd7/ @- +│ ├── @types+node@22.10.0-c806…/ scopes use + for / +│ ├── git-1a2b3c4d5e6f/ git: repository + commit +│ └── tarball-6f5e4d3c2b1a/ tarballs, by content +├── cache/metadata/ registry responses +└── dlx/ craft dlx installs +``` + +A store entry is complete before it appears (it is extracted beside its final name and renamed into place) and is never written to afterwards, so any number of projects, and any number of concurrent installs, can share it. Set `CRAFT_HOME` to move it; `craft cache clean --force` deletes it. + +## The virtual store + +Each project gets its own `node_modules/.craft`, with one directory per package instance: + +```text +node_modules/ +├── express -> .craft/express@5.3.0/node_modules/express +├── .bin/ bins of direct dependencies +└── .craft/ + ├── express@5.3.0/node_modules/ + │ ├── express/ files imported from the store + │ ├── body-parser -> ../../body-parser@2.4.0/node_modules/… + │ └── debug -> ../../debug@4.4.3/node_modules/debug + ├── debug@4.4.3/node_modules/ + │ ├── debug/ + │ └── ms -> ../../ms@2.1.3/node_modules/ms + ├── ms@2.1.3/node_modules/ms/ + └── node_modules/ hidden hoisting, see below +``` + +A package's files sit in `node_modules/` inside its own entry, with its dependencies linked **beside** it. Node's module resolution walks up from the package and finds exactly those dependencies, and nothing else. + +Your project's `node_modules` holds only links to its direct dependencies. If your code `require`s something `package.json` doesn't list, it fails, on your machine and in production alike. + +Files are imported from the store by the fastest method the filesystem supports: a copy-on-write clone (APFS, Btrfs, XFS, ReFS), then a hard link, then a plain copy. A package's files are copied rather than linked before its install scripts run, so a build can never modify the store. + +### Hidden hoisting + +Some packages `require` modules they never declared. To keep them working, every package name is also linked once into `node_modules/.craft/node_modules`: the project's own dependency when it has one, otherwise the highest version. Node looks there after a package's own dependencies, while your project's root stays strict. + +### Bins + +`node_modules/.bin` holds the bins of your direct dependencies, which is what `craft run` and `craft ` find. Each virtual store entry has its own `.bin` with the bins of that package's dependencies, so a package's scripts can call its own tools. When two direct dependencies declare the same bin, the one first in alphabetical order keeps it, and craft warns: + +```text +warning: bin shared of b-tool conflicts with a-tool; keeping a-tool's +``` + +## Peer dependencies + +A package's `peerDependencies` resolve to what its parent provides, then to the project's own dependencies, and otherwise to a version craft installs for them, as npm 7 and later do. An optional peer (`peerDependenciesMeta`) is linked only when provided. + +A package used with different peers gets one instance per distinct peer set, named after them: + +```text +node_modules/.craft/ +├── react-redux@9.2.0_react@18.3.1/ +└── react-redux@9.2.0_react@19.1.0/ +``` + +When a peer's version is outside the declared range, craft installs anyway and warns: + +```text +warning: react-redux@9.2.0 wants peer react@^18.0 || ^19 but gets 17.0.2 +``` + +## Pruning + +After every install, `add`, `update` and `remove`, craft removes what the project no longer uses: links to dependencies that left `package.json`, virtual store entries nothing reaches, and dangling bins. Directories craft didn't create, such as `node_modules/.cache`, are left alone. + +## Skipping work + +craft records what it installed in `node_modules/.craft/state`. When `package.json`, `craft.lock` and that record agree, `craft install` prints `Already up to date` without reading the registry, typically in a few milliseconds. `file:` directories are the exception: they are copied again on every install, since their source may have changed. + +## The network + +- Registry metadata (packuments) is fetched once per package name per install, cached on disk, and revalidated with `If-None-Match` / `If-Modified-Since`, honouring the registry's `max-age`. +- Requests are limited to `network-concurrency` at a time (16 by default) and retried `fetch-retries` times (2 by default) on connection errors, timeouts and HTTP 408, 429 and 5xx, with exponential backoff or the server's `Retry-After`. +- Tarballs are hashed as they stream to disk, so even a large install needs little memory. + +See [Configuration](./configuration) for the settings. From c289eb7fcf8c518a708927af8d21374bf5a36417 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 12/43] docs: Add the Lockfile guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/lockfile.md | 98 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 docs/guide/lockfile.md diff --git a/docs/guide/lockfile.md b/docs/guide/lockfile.md new file mode 100644 index 0000000..66022f1 --- /dev/null +++ b/docs/guide/lockfile.md @@ -0,0 +1,98 @@ +# Lockfile + +craft writes `craft.lock` next to `package.json` after every install, `add`, `update` and `remove`. Commit it: with a lockfile, every machine installs the same versions from the same sources, without asking the registry which versions exist. + +## Format + +`craft.lock` is JSON with sorted keys and a trailing newline, so diffs are small and the file is identical on every platform. + +```json +{ + "lockfileVersion": 1, + "importers": { + ".": { + "dependencies": { + "express": { "specifier": "^5.3.0", "version": "express@5.3.0" } + }, + "devDependencies": { + "typescript": { "specifier": "^7.0.2", "version": "typescript@7.0.2" } + } + } + }, + "packages": { + "express@5.3.0": { + "name": "express", + "version": "5.3.0", + "resolution": { + "type": "registry", + "tarball": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", + "integrity": "sha512-…" + }, + "dependencies": { + "body-parser": "body-parser@2.4.0", + "debug": "debug@4.4.3" + } + } + } +} +``` + +- **`importers["."]`** lists the project's own `dependencies`, `devDependencies` and `optionalDependencies`, each with the specifier from `package.json` and the package it resolved to. +- **`packages`** has one entry per package instance, keyed like the virtual store: `name@version`, with the resolved peers appended for packages that have them (`react-redux@9.2.0_react@19.1.0`). +- Each package lists its `dependencies`, `peerDependencies` and `optionalDependencies` as package keys, and its `os`, `cpu` and `libc` constraints when it has any. + +### Resolutions + +| `type` | Fields | Used for | +| --- | --- | --- | +| `registry` | `tarball`, `integrity` | packages from a registry | +| `tarball` | `url`, `integrity` | `https://…/pkg.tgz` dependencies | +| `localTarball` | `path`, `integrity` | `file:` paths to `.tgz` files | +| `directory` | `path` | `file:` paths to directories | +| `link` | `path` | `link:` dependencies | +| `git` | `url`, `commit` | git dependencies, pinned to the commit | + +Local paths are relative to the project and always use `/`. + +Packages for other platforms, such as the Linux build of a native module when you're on a Mac, are locked too, so one lockfile installs everywhere. See [Platform packages](./platforms). + +## How installs use it + +- **Locked versions win.** A dependency whose specifier hasn't changed keeps its locked version, even when newer matching versions exist. Git dependencies stay on their locked commit. +- **Changed specifiers re-resolve.** Edit a range in `package.json` and only that dependency resolves afresh; its own dependencies still prefer what's locked. +- **`craft add` resolves the packages you name afresh**, so `craft add react` gets the latest even if an older `react` is locked. +- **`craft update`** re-resolves within the specifiers, ignoring the locked versions of what it updates. See [`craft update`](/reference/update). +- **`craft remove`** edits the lockfile directly, dropping the dependency and every package only it needed, without contacting the registry. + +## Frozen installs + +```sh +craft install --frozen-lockfile +``` + +A frozen install uses only the lockfile. It fails before any download when: + +- `craft.lock` is missing: + ```text + error: craft.lock is missing; run `craft install` to create it + ``` +- it disagrees with `package.json`, listing every difference: + ```text + error: craft.lock is out of date with package.json: debug (^4.4.0 in package.json, ^4.0.0 in craft.lock), ms (not in craft.lock); run `craft install` to update it + ``` +- something it needs isn't locked: + ```text + error: ms@^2.1.3 is not in craft.lock; run `craft install` to update it + ``` + +and it never rewrites the lockfile. Installs are frozen by default when the `CI` environment variable is set (to anything but `0` or `false`). [`craft ci`](/reference/ci) removes `node_modules` first, then runs a frozen install. + +## Versions + +`lockfileVersion` is `1`. A lockfile written by a newer craft is rejected instead of misread: + +```text +error: craft.lock has lockfileVersion 2, but this craft reads up to 1; upgrade craft +``` + +craft can't import `package-lock.json`, `yarn.lock` or `pnpm-lock.yaml` yet. The first `craft install` in a project resolves from `package.json` and writes `craft.lock`. From c0b1e7b075687b76813f3b067da62fe8451e388e Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 13/43] docs: Add the Dependency sources guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/dependency-sources.md | 110 +++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 docs/guide/dependency-sources.md diff --git a/docs/guide/dependency-sources.md b/docs/guide/dependency-sources.md new file mode 100644 index 0000000..b522852 --- /dev/null +++ b/docs/guide/dependency-sources.md @@ -0,0 +1,110 @@ +# Dependency sources + +craft accepts the specifiers npm does, in `package.json` and on the `craft add` command line. + +## Registry packages + +```json +{ + "dependencies": { + "react": "^19.0.0", + "lodash": "4.17.21", + "typescript": "next", + "debug": "*" + } +} +``` + +- **Ranges** follow npm's semver rules. craft picks the version the `latest` dist-tag points to when it satisfies the range, and otherwise the highest satisfying stable version. +- **Exact versions** install that version. +- **Dist-tags** such as `latest` or `next` install the tagged version. +- **`*` and `""`** mean any version. + +`craft add react` saves a caret range of the version it installs (`^19.2.0`); `craft add -E react` saves the exact version. + +Packages under a scope can come from their own registry. See [Configuration](./configuration#scoped-registries). + +## Aliases + +Install a package under another name with `npm:`: + +```json +{ + "dependencies": { + "react-18": "npm:react@^18.3.0" + } +} +``` + +```sh +craft add sw@npm:string-width@^4 +``` + +The package is linked at `node_modules/react-18`, and `require('react-18')` loads it. Aliases inside dependencies work the same way. + +## Git repositories + +```json +{ + "dependencies": { + "ms": "github:vercel/ms#2.1.3", + "dequal": "git+https://github.com/lukeed/dequal.git#semver:^2.0.0", + "my-lib": "git+ssh://git@github.com:me/my-lib.git#main" + } +} +``` + +Accepted forms: + +| Form | Example | +| --- | --- | +| Hosted shorthand | `github:owner/repo`, `gitlab:owner/repo`, `bitbucket:owner/repo`, `gist:id` | +| GitHub shorthand | `owner/repo` | +| Git URLs | `git+https://…`, `git+ssh://…`, `git+file://…`, `git://…` | +| scp-style | `git@github.com:owner/repo.git` | + +After `#`, give a branch, tag or commit, or `semver:` to pick the highest tag that satisfies the range. Without a ref, craft uses the default branch. + +craft pins the ref to a commit with `git ls-remote` (so `git` must be installed) and records the commit in `craft.lock`; later installs stay on it. Public repositories on GitHub, GitLab and Bitbucket are downloaded as the host's tarball of that commit, with no clone. Other repositories, and hosted ones whose tarball isn't reachable (private repositories), are fetched with `git`, using your usual git credentials. + +::: warning Repositories that need a build +craft doesn't run a git dependency's `prepare` script yet. A repository that only contains its built files after `prepare` (many TypeScript libraries) installs without them. Depend on the published package, or on its release tarball, instead. +::: + +## Tarball URLs + +```json +{ + "dependencies": { + "ms": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz" + } +} +``` + +Each URL is downloaded once, extracted into the store by content, and locked with its `sha512` integrity. + +## Local packages + +```json +{ + "dependencies": { + "ui": "file:./packages/ui", + "fixtures": "file:./vendor/fixtures-1.0.0.tgz", + "sdk": "link:../sdk" + } +} +``` + +| Specifier | What craft does | +| --- | --- | +| `file:` | Copies the directory into the project (without its `node_modules` and `.git`) on **every** install, and installs its registry dependencies. Edits show up on the next install. | +| `file:` | Extracts the tarball into the store by its content hash. | +| `link:` | Links the directory in place. Its dependencies are **not** installed; it uses its own `node_modules`. Edits show up immediately. | + +Relative paths resolve against the directory of the `package.json` that declares them, and `~/` against your home directory. + +`craft add ./packages/ui` names the dependency after the package it finds there and saves `"ui": "file:packages/ui"`. URLs and `file:` / `link:` specifiers are saved as given. + +## Not supported yet + +`workspace:` specifiers fail with `workspace dependencies are not supported yet`, since craft doesn't support workspaces yet. From f70a92b6c2875076367d02cdb2ad2aec6034d757 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 14/43] docs: Add the Install scripts guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/install-scripts.md | 63 +++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 docs/guide/install-scripts.md diff --git a/docs/guide/install-scripts.md b/docs/guide/install-scripts.md new file mode 100644 index 0000000..98d2a84 --- /dev/null +++ b/docs/guide/install-scripts.md @@ -0,0 +1,63 @@ +# Install scripts + +Packages can declare `preinstall`, `install` and `postinstall` scripts, which npm runs on every install. They are how native modules compile, and how malicious packages get onto developer machines. craft runs them only for packages you trust. + +## Trusting a package + +When an install skips scripts, craft says so: + +```text +warning: skipped install scripts of 1 package not in trustedDependencies: bcrypt@6.0.0 + to allow them, add their names to "trustedDependencies" in package.json and run `craft install` +``` + +Trust it with [`craft trust`](/reference/trust), which adds the name to `package.json` and installs, running the scripts: + +```sh +craft trust bcrypt +``` + +```text +Trusted bcrypt +Ran install scripts of bcrypt@6.0.0 +72 packages installed in 0.6s +``` + +or edit `package.json` yourself and run `craft install`: + +```json +{ + "trustedDependencies": ["bcrypt", "esbuild"] +} +``` + +Trust is by package name and applies wherever the package appears in your tree. Changing the list counts as a change, so the next `craft install` builds newly trusted packages even when nothing else changed. + +## How builds run + +- A trusted package's `preinstall`, `install` and `postinstall` run in that order, in the package's directory. A package with a `binding.gyp` and no `install` script gets an implicit `node-gyp rebuild`, as with npm. +- Packages are built after everything is linked, dependencies before dependents, up to eight at a time. +- Before its first build, a package's files are copied rather than linked from the store, so a build can never change the store. +- Each package builds once per project. A failed build is removed, so the next install tries again. +- Output is captured and shown when a build fails, or with `--debug`. +- If the build of a package that's only reachable through `optionalDependencies` fails, craft warns and carries on. Any other failed build fails the install with the script's output. + +Scripts get the same environment as [`craft run`](/reference/run#environment): every `node_modules/.bin` from the package upwards on `PATH`, `npm_package_*` variables and `npm_config_user_agent`. + +## Packages that work untrusted + +Many packages with install scripts don't need them. esbuild, SWC and Lightning CSS, for example, ship their native binary as a [platform package](./platforms) and use their `postinstall` only as a fallback; they work without being trusted. + +## Your project's own scripts + +The scripts in your own `package.json` are always trusted. `craft install` and `craft ci` run the project's `preinstall`, `install`, `postinstall` and `prepare`, in that order, after its dependencies are installed. + +## Turning scripts off + +`--ignore-scripts` runs no lifecycle scripts at all, neither the project's nor its dependencies': + +```sh +craft install --ignore-scripts +craft add sharp --ignore-scripts +craft ci --ignore-scripts +``` From 9e7dadc6214e3c114f61e29b8b1a7de2556af28e Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 15/43] docs: Add the Platform packages guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/platforms.md | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docs/guide/platforms.md diff --git a/docs/guide/platforms.md b/docs/guide/platforms.md new file mode 100644 index 0000000..67896dc --- /dev/null +++ b/docs/guide/platforms.md @@ -0,0 +1,45 @@ +# Platform packages + +Native tools often publish one package per platform and list them all as `optionalDependencies`, each restricted with `os`, `cpu` and sometimes `libc`: + +```json +{ + "name": "@esbuild/darwin-arm64", + "os": ["darwin"], + "cpu": ["arm64"] +} +``` + +craft installs only the packages that match the machine it runs on, the same way npm does. + +## Matching rules + +- `os` and `cpu` use Node's names: `darwin`, `linux`, `win32`, …; `x64`, `arm64`, …. +- A list allows those values; entries starting with `!` exclude them (`"os": ["!win32"]`). +- `libc` (`glibc` or `musl`) applies only on Linux. craft detects musl, as on Alpine, from `/lib/ld-musl-*`. + +Packages for other platforms are resolved and recorded in `craft.lock`, but never downloaded, linked or given bins, so a lockfile written on a Mac installs the right binaries on Linux and Windows too. + +If a dependency that isn't optional doesn't support the platform, the install fails and says what required it: + +```text +error: mac-only@1.0.0 does not support linux-x64-glibc, but the project requires it +``` + +## Installing for another platform + +`CRAFT_OS`, `CRAFT_CPU` and `CRAFT_LIBC` override what craft detects. That's useful when you build a Linux container image from a `node_modules` prepared on a Mac: + +```sh +CRAFT_OS=linux CRAFT_CPU=x64 CRAFT_LIBC=glibc craft install +``` + +## Optional dependencies + +A failure to install an optional dependency (missing from the registry, failed download, failed build) is a warning, not an error: + +```text +warning: skipping optional dependency fsevents of chokidar: … +``` + +Your own `optionalDependencies` behave the same way. Add one with `craft add -O `. From d4bd058a873db1eb1fbfe21e7651fc7f55437a0a Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 16/43] docs: Add the Configuration guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/configuration.md | 122 ++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 docs/guide/configuration.md diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md new file mode 100644 index 0000000..4323c1a --- /dev/null +++ b/docs/guide/configuration.md @@ -0,0 +1,122 @@ +# Configuration + +craft reads npm's configuration, so an existing `.npmrc` keeps working. + +## Where settings come from + +Later sources override earlier ones: + +1. `~/.npmrc`, or the file `NPM_CONFIG_USERCONFIG` names; +2. the project's `.npmrc`, next to `package.json`; +3. `npm_config_*` environment variables, with `_` standing for `-` (`npm_config_fetch_retries=5`); +4. command-line flags such as `--offline`. + +Values can use `${VAR}` to read an environment variable, and may be quoted. + +```ini +registry=https://registry.npmjs.org/ +@acme:registry=https://npm.pkg.github.com +//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} +fetch-retries=3 +``` + +## Registries + +| Key | Meaning | +| --- | --- | +| `registry` | The default registry. `CRAFT_REGISTRY` overrides it. | +| `@scope:registry` | The registry for packages in `@scope`. | + +### Scoped registries + +```ini +@acme:registry=https://npm.pkg.github.com +@jsr:registry=https://npm.jsr.io +``` + +With the second line, `craft add @jsr/std__path` installs [JSR](https://jsr.io) packages through JSR's npm-compatible registry. + +## Authentication + +Credentials are configured per registry URL prefix (npm's "nerf dart" form) and are sent only to URLs under that prefix, choosing the longest match. A token for your private registry never reaches the public one, and credentials print as `` in `--debug` output. + +| Key | Meaning | +| --- | --- | +| `//host/path/:_authToken` | A bearer token | +| `//host/path/:_auth` | Base64 of `username:password`, sent as basic auth | +| `//host/path/:username` and `//host/path/:_password` | Basic auth; `_password` is base64-encoded, as with npm | +| `_authToken` | Legacy: a token for the default registry | + +```ini +//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} +//registry.internal.example/:username=ci +//registry.internal.example/:_password=${REGISTRY_PASSWORD_BASE64} +``` + +A registry that refuses craft's credentials gives: + +```text +error: failed to install @acme/ui@^2.0.0 + caused by: https://npm.pkg.github.com denied access to @acme/ui (HTTP 401); check your registry credentials +``` + +## Network + +| Key | Default | Meaning | +| --- | --- | --- | +| `fetch-retries` | `2` | How many times to retry a request after a connection error, timeout or HTTP 408, 429 or 5xx | +| `network-concurrency` | `16` | Requests in flight at once | +| `https-proxy` | | Proxy for `https://` URLs | +| `proxy` | | Proxy for `http://` URLs | +| `noproxy` (or `no-proxy`) | | Comma-separated hosts to reach directly | +| `strict-ssl` | `true` | `false` skips certificate verification | +| `cafile` | | A PEM file of extra CA certificates to trust | +| `offline` | `false` | Same as `--offline` | +| `prefer-offline` | `false` | Same as `--prefer-offline` | + +Without `proxy` / `https-proxy`, craft uses the `HTTPS_PROXY`, `HTTP_PROXY` and `NO_PROXY` environment variables. Connections time out after 10 seconds, and a response that stalls for 60 seconds is retried. + +### Certificates + +craft trusts a bundled set of public root certificates (Mozilla's), like Node.js does, rather than the operating system's certificate store. A private registry or a TLS-inspecting corporate proxy with its own CA needs `cafile`: + +```ini +cafile=/etc/ssl/certs/corp-root-ca.pem +``` + +Otherwise the install stops with: + +```text +caused by: could not verify the certificate of registry.internal.example (invalid peer certificate: UnknownIssuer); point cafile in .npmrc at your registry's CA certificate, or set strict-ssl=false +``` + +### Offline modes + +| Flag | Behaviour | +| --- | --- | +| `--prefer-offline` | Use cached registry metadata without revalidating it; fetch only what is missing. | +| `--offline` | Never touch the network: use only cached metadata and packages already in the store. | + +```text +$ craft --offline add left-pad +error: failed to install left-pad + caused by: failed to fetch left-pad from https://registry.npmjs.org + caused by: https://registry.npmjs.org/left-pad is not cached and craft is offline +``` + +A project with a lockfile whose packages are all in the store installs offline, which is handy on a plane or in a sandboxed build. + +## Environment variables + +| Variable | Meaning | +| --- | --- | +| `CRAFT_HOME` | Where the store and caches live. Default: `~/.craft` | +| `CRAFT_REGISTRY` | Overrides the default registry | +| `CRAFT_OS`, `CRAFT_CPU`, `CRAFT_LIBC` | Install platform packages for another platform. See [Platform packages](./platforms#installing-for-another-platform) | +| `CI` | When set (to anything but `0` or `false`), installs are [frozen](./lockfile#frozen-installs) and progress is printed as plain lines | +| `NPM_CONFIG_USERCONFIG` | Use this file instead of `~/.npmrc` | +| `npm_config_*` | Any `.npmrc` key | + +## Not supported yet + +`always-auth`, client certificates (`certfile` / `keyfile`), and `.npmrc` sections are ignored. From 0a4c4d8b1f6a18460ee9994dbf62a2b2dbf2bd43 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 17/43] docs: Add the Continuous integration guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/ci.md | 90 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 docs/guide/ci.md diff --git a/docs/guide/ci.md b/docs/guide/ci.md new file mode 100644 index 0000000..8c6b25f --- /dev/null +++ b/docs/guide/ci.md @@ -0,0 +1,90 @@ +# Continuous integration + +In CI you want an install that's reproducible and fails loudly when the lockfile is stale. craft does that by default when the `CI` environment variable is set, which every major CI provider does. + +## Install + +```sh +craft ci +``` + +[`craft ci`](/reference/ci) removes `node_modules` and installs exactly what `craft.lock` records. It fails, before downloading anything, when `craft.lock` is missing or doesn't match `package.json`, listing every difference. `craft install` behaves the same way under `CI`, without removing `node_modules` first. + +Production images can leave out `devDependencies`: + +```sh +craft install --frozen-lockfile --production +``` + +## Cache the store + +`craft ci` needs no registry metadata, only tarballs, and finds those in the store when it's warm. Cache `~/.craft/store` (or `$CRAFT_HOME/store`) keyed on the lockfile. + +## GitHub Actions + +```yaml +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install craft + run: | + curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | bash + echo "$HOME/.local/bin" >> "$GITHUB_PATH" + + - uses: actions/cache@v4 + with: + path: ~/.craft/store + key: craft-${{ runner.os }}-${{ hashFiles('craft.lock') }} + restore-keys: craft-${{ runner.os }}- + + - run: craft ci + - run: craft test +``` + +## GitLab CI + +```yaml +test: + image: node:22 + variables: + CRAFT_HOME: "$CI_PROJECT_DIR/.craft" + cache: + key: + files: [craft.lock] + paths: [.craft/store] + before_script: + - curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | bash + - export PATH="$HOME/.local/bin:$PATH" + script: + - craft ci + - craft test +``` + +## Docker + +```dockerfile +FROM node:22-slim AS deps +RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates \ + && curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | bash +WORKDIR /app +COPY package.json craft.lock ./ +RUN craft install --frozen-lockfile --production + +FROM node:22-slim +WORKDIR /app +COPY --from=deps /app/node_modules ./node_modules +COPY . . +CMD ["node", "server.js"] +``` + +On Alpine images, the install script picks craft's static musl build. + +## Output + +On a terminal craft shows a single live status line. In CI, when output isn't a terminal, or with `--debug`, it prints plain lines instead, and `--silent` prints only warnings and errors. Exit codes are non-zero on any failure; a failing script's own exit code passes through. From 1316d0a6ff36d3e25f8f8f8b6d4bd29a00c521a9 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:44 +0400 Subject: [PATCH 18/43] docs: Add the Windows guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/windows.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/guide/windows.md diff --git a/docs/guide/windows.md b/docs/guide/windows.md new file mode 100644 index 0000000..cba2490 --- /dev/null +++ b/docs/guide/windows.md @@ -0,0 +1,37 @@ +# Windows + +craft runs natively on Windows (x64) and needs neither administrator rights nor Developer Mode. Projects keep the same `node_modules` layout and the same `craft.lock` as on macOS and Linux; a few things are done differently underneath. + +## Directory links are junctions + +Windows only lets administrators, or users with Developer Mode on, create symbolic links. craft links directories with **junctions** instead, which any user can create and which Node.js follows like symlinks. + +Junctions must point to absolute paths, so unlike on macOS and Linux, a project's `node_modules` stops working if you move the project directory. Run `craft install` again after moving it. + +## Bins are shims + +Each bin in `node_modules/.bin` is three small files, the same ones npm writes: + +| File | Used by | +| --- | --- | +| `tsc.cmd` | cmd.exe, and tools that look commands up through `PATHEXT` | +| `tsc.ps1` | PowerShell | +| `tsc` | Git Bash and other sh shells | + +A shim runs the program named in the bin's shebang line (`#!/usr/bin/env node` runs `node`), preferring a `node.exe` next to it, and passes the exit code through. A bin without a shebang, such as an `.exe`, runs directly. + +A bin whose shebang names a shell, `#!/bin/sh`, needs `sh` on `PATH`, as with npm: run it from Git Bash, or install Git for Windows with its tools on `PATH`. + +## Scripts run in cmd + +`craft run` and lifecycle scripts run through `cmd.exe /d /s /c`, exactly as written in `package.json`. Write scripts that work in cmd: use `node -e` or a cross-platform tool instead of `rm -rf`, `cp` or `$VAR`. + +Arguments you pass, as in `craft run test --grep "a & b"`, are escaped the way npm escapes them, so characters that are special to cmd (`& | < > ^ % ! ( )` and quotes) reach the script unchanged, including through a bin's `.cmd` shim. + +## Long paths + +craft uses Windows' long-path APIs, so deep `node_modules` trees don't hit the 260-character `MAX_PATH` limit. Some other tools still do; if one fails on a long path, enable long paths in Windows (`LongPathsEnabled`). + +## Git dependencies + +Git dependencies need `git` on `PATH`; [Git for Windows](https://gitforwindows.org) provides it. From 2a0b5c4010684395c8b9c3f7e307055c719cf9d7 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 19/43] docs: Add the Migrating from npm or pnpm guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/migrating.md | 46 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 docs/guide/migrating.md diff --git a/docs/guide/migrating.md b/docs/guide/migrating.md new file mode 100644 index 0000000..66dacac --- /dev/null +++ b/docs/guide/migrating.md @@ -0,0 +1,46 @@ +# Migrating from npm or pnpm + +craft works with the `package.json` you have. To try it on a project: + +```sh +rm -rf node_modules +craft install +craft test +``` + +The first install resolves from `package.json` and writes `craft.lock`. craft doesn't read `package-lock.json`, `yarn.lock` or `pnpm-lock.yaml`, so versions within your ranges may differ from what those lockfiles pinned. Once it works, commit `craft.lock` and delete the old lockfile. + +## Command equivalents + +| npm | pnpm | craft | +| --- | --- | --- | +| `npm install` | `pnpm install` | `craft install` | +| `npm ci` | `pnpm install --frozen-lockfile` | `craft ci` | +| `npm install react` | `pnpm add react` | `craft add react` | +| `npm install -D vitest` | `pnpm add -D vitest` | `craft add -D vitest` | +| `npm uninstall react` | `pnpm remove react` | `craft remove react` | +| `npm update` | `pnpm update` | `craft update` | +| `npm outdated` | `pnpm outdated` | `craft outdated` | +| `npm ls` | `pnpm list` | `craft list` | +| `npm explain ms` | `pnpm why ms` | `craft why ms` | +| `npm run build` | `pnpm build` | `craft run build`, or `craft build` | +| `npx tsc` | `pnpm exec tsc` | `craft exec tsc`, or `craft tsc` | +| `npx create-vite` | `pnpm dlx create-vite` | `craft dlx create-vite` | +| `npm init -y` | `pnpm init` | `craft init` | +| `npm cache clean --force` | `pnpm store prune` | `craft cache clean --force` | + +## What changes + +**Undeclared dependencies stop resolving.** npm hoists every package to the top of `node_modules`, so code can accidentally `require` a dependency of a dependency. craft's root `node_modules` holds only what `package.json` lists, as with pnpm. If something breaks with `Cannot find module`, add the missing package to `package.json`. Dependencies that do this themselves keep working through [hidden hoisting](./how-it-works#hidden-hoisting). + +**Dependencies' install scripts don't run until you trust them.** craft lists the packages it skipped; most work anyway, and the ones that need to compile, such as `bcrypt` or `sqlite3`, need `craft trust `. See [Install scripts](./install-scripts). pnpm users can move the names from `onlyBuiltDependencies` to `trustedDependencies`. + +**`.npmrc` keeps working** for registries, auth, proxies and certificates. See [Configuration](./configuration). + +## Not supported yet + +- **Workspaces** (`workspaces` in `package.json`, `pnpm-workspace.yaml`, `workspace:` specifiers). A monorepo can't use craft yet. +- **`overrides` / `resolutions` / `pnpm.overrides`** are ignored. +- **Importing an existing lockfile.** +- **Global installs** (`npm install -g`). Use [`craft dlx`](/reference/dlx) to run tools. +- **`publish`, `pack`, `audit`, `link`.** Keep npm around for publishing. From 093cbc308c9c0f203ecf57fb004e5aa4b6ba3367 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 20/43] docs: Add the Troubleshooting guide Part of the guide; behaviour and messages checked against the craft binary. --- docs/guide/troubleshooting.md | 81 +++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 docs/guide/troubleshooting.md diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md new file mode 100644 index 0000000..7988ce2 --- /dev/null +++ b/docs/guide/troubleshooting.md @@ -0,0 +1,81 @@ +# Troubleshooting + +## Reading errors + +Every error is one `error:` line, a `caused by:` line for each underlying cause, and, when the fix is a common one, a `hint:`: + +```text +error: could not create directory /srv/app/node_modules: Permission denied (os error 13) + hint: check that you may write to the path above, or run craft as its owner +``` + +The exit code is non-zero. When a script fails, craft exits with the script's own exit code and adds one line: + +```text +error: test exited with code 2 +``` + +Run any command with `--debug` to see what craft is doing: each request, link and script. Credentials are redacted. + +## Common problems + +### `package … not found in https://registry.npmjs.org` + +```text +error: failed to install left-pda + caused by: package left-pda not found in https://registry.npmjs.org +``` + +The name is misspelled, or the package lives in another registry. For a scoped package from a private registry, configure `@scope:registry`; see [Configuration](./configuration#scoped-registries). When the missing package is a dependency of a dependency, the error names the chain that requires it: + +```text +error: failed to install ghost@^1.0.0 (required by express@4.21.2 > body-parser@1.20.3) +``` + +### `… denied access to … (HTTP 401)` + +The registry needs credentials craft doesn't have, or has the wrong ones. Check the `_authToken` (or `_auth`) line for that registry's URL prefix in `.npmrc`, and that any `${VAR}` it uses is set. + +### `could not reach registry.npmjs.org` + +```text +caused by: could not reach registry.npmjs.org (Connection refused (os error 61)); check your network connection and proxy settings, or use --offline +``` + +The network or a proxy is in the way. Behind a corporate proxy, set `https-proxy` in `.npmrc` or `HTTPS_PROXY`. With a warm store, `--offline` installs without the network. + +### `could not verify the certificate of …` + +A private registry, or a proxy that inspects TLS, presents a certificate signed by a CA craft doesn't trust. Point `cafile` at that CA's certificate. See [Certificates](./configuration#certificates). + +### `craft.lock is out of date with package.json` + +A frozen install (`craft ci`, `--frozen-lockfile`, or any install with `CI` set) found `package.json` changed without `craft.lock`. Run `craft install` locally and commit the updated lockfile. + +### `Cannot find module 'x'` after switching to craft + +Your code uses a package it doesn't declare, and npm's flat `node_modules` was hiding that. Add it: `craft add x`. See [Migrating](./migrating#what-changes). + +### A native module doesn't load + +Its install script didn't run. craft printed `skipped install scripts of … not in trustedDependencies` during the install; trust the package with `craft trust `. See [Install scripts](./install-scripts). + +### `script "x" not found` + +```text +error: script "deploy" not found; available scripts: build, test +``` + +There's no such script in `package.json`, and no bin of that name in `node_modules/.bin`. + +### Disk space + +The store keeps every version any project ever installed. `craft cache clean --force` removes it, along with the metadata cache; projects keep working, and the next install downloads what it needs. A full disk produces: + +```text +hint: the disk is full; `craft cache clean --force` frees the global store +``` + +## Reporting a bug + +Run the failing command again with `--debug`, and open an issue at [github.com/craftpkg/craft](https://github.com/craftpkg/craft/issues) with the output, `craft --version`, and your operating system. From 7929e0be4fd33cd55ba66cf9847098a084dfa73d Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 21/43] docs: Add the CLI overview Options taken from craft cli --help; examples are real output. --- docs/reference/cli.md | 67 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 docs/reference/cli.md diff --git a/docs/reference/cli.md b/docs/reference/cli.md new file mode 100644 index 0000000..383bd28 --- /dev/null +++ b/docs/reference/cli.md @@ -0,0 +1,67 @@ +# CLI overview + +```text +craft [OPTIONS] [COMMAND] +``` + +## Commands + +| Command | Aliases | Does | +| --- | --- | --- | +| [`install`](./install) | `i` | Install the project's dependencies; with package names, add them like `craft add` | +| [`add`](./add) | | Add packages to `package.json` and install them | +| [`remove`](./remove) | `rm`, `uninstall`, `un` | Remove packages from `package.json` and `node_modules` | +| [`update`](./update) | `up`, `upgrade` | Update dependencies within their specifiers, or to their latest versions with `--latest` | +| [`outdated`](./outdated) | | Show direct dependencies with newer versions available | +| [`list`](./list) | `ls` | List the project's dependencies, and theirs with `--depth` | +| [`why`](./why) | | Show every chain of dependencies that installs a package | +| [`run`](./run) | | Run a `package.json` script, or list them when no name is given | +| [`start`](./run#shortcuts) | | Run the `start` script | +| [`test`](./run#shortcuts) | `t` | Run the `test` script | +| [`exec`](./exec) | | Run a bin from the project's dependencies | +| [`dlx`](./dlx) | `x` | Run a package's bin without adding it to the project | +| [`trust`](./trust) | | Allow packages to run install scripts, then install | +| [`init`](./init) | | Create a `package.json` in the current directory | +| [`ci`](./ci) | | Remove `node_modules` and install exactly what `craft.lock` records | +| [`cache clean`](./cache) | | Remove every stored package and cached registry response | + +Any other word runs the script of that name, or else the dependency bin of that name: `craft build`, `craft vitest --run`. See [`craft run`](./run#scripts-and-bins). + +With no command, craft runs `craft install`. + +## Global options + +These work with every command, before or after it. + +| Option | Does | +| --- | --- | +| `-v`, `--version` | Print the version | +| `-h`, `--help` | Print help; `craft --help` for a command | +| `--debug` | Print debug logs of what craft is doing. Credentials are redacted. | +| `-s`, `--silent` | Print nothing but warnings and errors | +| `--offline` | Use only cached registry metadata and stored packages; never touch the network | +| `--prefer-offline` | Use cached registry metadata without revalidating it; fetch only what is missing | + +`--debug` and `--silent` can't be combined, and neither can `--offline` and `--prefer-offline`. + +## Output + +On a terminal, craft shows one live status line while it works (`Resolving dependencies… 143 packages`, `Linking 218 packages`), then a summary of what changed in your direct dependencies: + +```text ++ react 19.2.0 ++ vitest 3.2.4 (dev) +- lodash 4.17.21 +~ typescript 5.6.3 → 5.9.3 +218 packages installed in 1.9s +``` + +When stderr isn't a terminal, in CI, or with `--debug`, the status line is replaced by plain output. Warnings and errors always go to stderr. + +## Exit codes + +| Code | Meaning | +| --- | --- | +| `0` | Success | +| `1` | craft failed; the message says why | +| other | A script or bin failed with this code, which craft passes through. A script killed by a signal reports 128 + the signal number. | From ffabb9a12a0e1571c5ddbad03cc6e3078e24a9fa Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 22/43] docs: Add the craft install reference Options taken from craft install --help; examples are real output. --- docs/reference/install.md | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docs/reference/install.md diff --git a/docs/reference/install.md b/docs/reference/install.md new file mode 100644 index 0000000..7ae76f1 --- /dev/null +++ b/docs/reference/install.md @@ -0,0 +1,44 @@ +# craft install + +Install the project's dependencies; with package names, add them like [`craft add`](./add). + +```text +craft install [OPTIONS] [PACKAGES]... +``` + +Alias: `craft i`. `craft` with no command does the same. + +## Options + +| Option | Does | +| --- | --- | +| `--frozen-lockfile` | Install exactly what `craft.lock` records; fail if it is missing or out of date. On by default when the `CI` environment variable is set. | +| `--production`, `--prod` | Leave `devDependencies` out | +| `--ignore-scripts` | Run no lifecycle scripts | +| `-D`, `--dev` | With package names: save to `devDependencies` | +| `-E`, `--exact` | With package names: save the exact resolved version instead of a caret range | +| `-O`, `--save-optional` | With package names: save to `optionalDependencies` | +| `-P`, `--save-peer` | With package names: save to `peerDependencies`, and to `devDependencies` so it is installed for development | + +Plus the [global options](./cli#global-options). + +## What it does + +1. Reads `package.json` and `craft.lock`. If they match what's already installed, prints `Already up to date` and stops. +2. Resolves the dependency graph, preferring the versions in `craft.lock`. Dependencies whose specifier changed in `package.json` resolve afresh. See [Lockfile](/guide/lockfile#how-installs-use-it). +3. Downloads what the global store doesn't have yet, checking each tarball's integrity. +4. Lays out `node_modules` from the store and removes what's no longer used. See [How it works](/guide/how-it-works). +5. Runs install scripts of [trusted dependencies](/guide/install-scripts), then the project's own `preinstall`, `install`, `postinstall` and `prepare`. +6. Writes `craft.lock` if it changed, and prints what changed. + +## Examples + +```sh +craft install # everything in package.json +craft install --frozen-lockfile # exactly what craft.lock says +craft install --production # without devDependencies +craft i react react-dom # same as craft add react react-dom +craft i -D vitest # same as craft add -D vitest +``` + +A production install leaves `craft.lock` unchanged, and a later `craft install` adds the development dependencies back. From 1ffd980c97153a4722bf1e39879c656c00ffa52e Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 23/43] docs: Add the craft add reference Options taken from craft add --help; examples are real output. --- docs/reference/add.md | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 docs/reference/add.md diff --git a/docs/reference/add.md b/docs/reference/add.md new file mode 100644 index 0000000..af4a9f4 --- /dev/null +++ b/docs/reference/add.md @@ -0,0 +1,63 @@ +# craft add + +Add packages to `package.json` and install them. + +```text +craft add [OPTIONS] ... +``` + +## Options + +| Option | Does | +| --- | --- | +| `-D`, `--dev` | Save to `devDependencies` | +| `-E`, `--exact` | Save the exact resolved version instead of a caret range | +| `-O`, `--save-optional` | Save to `optionalDependencies` | +| `-P`, `--save-peer` | Save to `peerDependencies`, and to `devDependencies` so it is installed for development | +| `--ignore-scripts` | Run no lifecycle scripts | + +Plus the [global options](./cli#global-options). + +## Package specifiers + +| You type | Saved as | +| --- | --- | +| `react` | `"react": "^19.2.0"`, a caret range of the version installed | +| `react@18` | `"react": "^18.3.1"` | +| `react@18.3.1` | `"react": "^18.3.1"` (with `-E`: `"18.3.1"`) | +| `typescript@next` | a caret range of what `next` points to | +| `react-18@npm:react@^18` | `"react-18": "npm:react@^18.3.1"` | +| `@acme/ui` | `"@acme/ui": "^2.0.0"` | +| `./packages/ui` | `"ui": "file:packages/ui"`, named after the package found there | +| `github:vercel/ms#2.1.3` | as given | +| `https://example.com/pkg.tgz` | as given | + +See [Dependency sources](/guide/dependency-sources) for every form. + +## Behaviour + +- `craft add` reads `package.json` before contacting the registry, so a missing file fails at once: + ```text + error: no package.json found; run `craft init` to create one + ``` +- The packages you name resolve afresh, ignoring versions locked in `craft.lock`; the rest of the project keeps its locked versions. +- A package already in another section moves: `craft add -D react` takes `react` out of `dependencies`. +- Entries are inserted in alphabetical order, and `package.json` keeps its indentation, key order and line endings. +- The whole project is installed, so `node_modules` and `craft.lock` stay consistent. + +## Examples + +```sh +craft add express +craft add -D typescript vitest @types/node +craft add -E lodash@4.17.21 +craft add -O fsevents +craft add -P react@^19 +craft add sw@npm:string-width@^4 +``` + +```text +$ craft add express ++ express 5.3.0 +65 packages installed in 1.8s +``` From 0f261b54b5e6c7467509caabd2778c0b31f125f7 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 24/43] docs: Add the craft remove reference Options taken from craft remove --help; examples are real output. --- docs/reference/remove.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/reference/remove.md diff --git a/docs/reference/remove.md b/docs/reference/remove.md new file mode 100644 index 0000000..084dcf6 --- /dev/null +++ b/docs/reference/remove.md @@ -0,0 +1,28 @@ +# craft remove + +Remove packages from `package.json` and `node_modules`. + +```text +craft remove [OPTIONS] ... +``` + +Aliases: `craft rm`, `craft uninstall`, `craft un`. + +Takes the [global options](./cli#global-options). + +## Behaviour + +- Removes each package from `dependencies`, `devDependencies`, `optionalDependencies` and `peerDependencies`, and drops a section left empty. +- Removes the package's link and its bins from `node_modules`, then every package nothing else needs any more. Shared dependencies stay. +- Edits `craft.lock` directly, without contacting the registry. +- A package that isn't a dependency produces a warning, and nothing changes: + ```text + warning: lodash is not a dependency of this project + ``` + +## Example + +```text +$ craft remove express +- express 5.3.0 +``` From 2e3568be4beebddf4e71bb95769b704893c1eb56 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:45 +0400 Subject: [PATCH 25/43] docs: Add the craft update reference Options taken from craft update --help; examples are real output. --- docs/reference/update.md | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docs/reference/update.md diff --git a/docs/reference/update.md b/docs/reference/update.md new file mode 100644 index 0000000..a74f456 --- /dev/null +++ b/docs/reference/update.md @@ -0,0 +1,56 @@ +# craft update + +Update dependencies within their specifiers, or to their latest versions with `--latest`. + +```text +craft update [OPTIONS] [PACKAGES]... +``` + +Aliases: `craft up`, `craft upgrade`. + +## Arguments and options + +| | Does | +| --- | --- | +| `[PACKAGES]...` | The dependencies to update; all of them when none are given | +| `-L`, `--latest` | Move to the latest versions and rewrite the specifiers in `package.json` | + +Plus the [global options](./cli#global-options). + +## Within the specifiers + +Without `--latest`, `package.json` doesn't change. craft re-resolves the named dependencies (or all of them), ignoring their locked versions, to the newest versions their ranges allow, along with their own dependencies. Other dependencies keep what's locked. + +```text +$ craft update +~ express 4.21.2 → 4.22.3 +~ typescript 5.6.3 → 5.9.3 +69 packages installed in 0.9s +``` + +## To the latest versions + +With `--latest`, each dependency moves to the version its `latest` dist-tag points to, and its specifier is rewritten in the same style: + +| Before | After | +| --- | --- | +| `"ms": "2.0.0"` | `"ms": "2.1.3"` | +| `"react": "~18.3.0"` | `"react": "~19.2.0"` | +| `"express": "^4.21.2"` | `"express": "^5.3.0"` | +| `"react-18": "npm:react@^18.0.0"` | `"react-18": "npm:react@^19.2.0"` | + +```text +$ craft update --latest ms +~ ms 2.0.0 → 2.1.3 +69 packages installed in 0.0s +``` + +Exact versions stay exact and `~` ranges stay `~`; any other range becomes a caret range. `--latest` only rewrites registry dependencies. Git dependencies are re-resolved by any update, so one on a branch or a `semver:` range moves to its newest commit or tag, while one pinned to a tag or commit stays put. + +Naming a package that isn't a dependency is an error: + +```text +error: lodash is not a dependency of this project +``` + +See [`craft outdated`](./outdated) to see what an update would change first. From 8e9408283aab643bf746b0ae71c92fc99f7b9307 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 26/43] docs: Add the craft outdated reference Options taken from craft outdated --help; examples are real output. --- docs/reference/outdated.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/reference/outdated.md diff --git a/docs/reference/outdated.md b/docs/reference/outdated.md new file mode 100644 index 0000000..3d9ead8 --- /dev/null +++ b/docs/reference/outdated.md @@ -0,0 +1,34 @@ +# craft outdated + +Show direct dependencies with newer versions available. + +```text +craft outdated [OPTIONS] +``` + +Takes the [global options](./cli#global-options). + +## Output + +```text +$ craft outdated +Package Current Wanted Latest Type +express 4.21.2 4.22.3 5.3.0 dependencies +ms 2.0.0 2.0.0 2.1.3 dependencies +typescript 5.6.3 5.9.3 7.0.2 devDependencies +``` + +| Column | Meaning | +| --- | --- | +| Current | The version installed, from `craft.lock` | +| Wanted | The newest version the specifier in `package.json` allows: what [`craft update`](./update) installs | +| Latest | The version the `latest` dist-tag points to: what `craft update --latest` installs | +| Type | The `package.json` section | + +Only dependencies that are behind are listed, and only registry dependencies are checked. When nothing is behind: + +```text +All dependencies are up to date +``` + +`craft outdated` exits with `0` either way. From 9436b609a4a78c027e12766d8d991e6a897336a7 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 27/43] docs: Add the craft list reference Options taken from craft list --help; examples are real output. --- docs/reference/list.md | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/reference/list.md diff --git a/docs/reference/list.md b/docs/reference/list.md new file mode 100644 index 0000000..237ae3b --- /dev/null +++ b/docs/reference/list.md @@ -0,0 +1,50 @@ +# craft list + +List the project's dependencies, and theirs with `--depth`. + +```text +craft list [OPTIONS] +``` + +Alias: `craft ls`. + +## Options + +| Option | Does | +| --- | --- | +| `--depth ` | How many levels of dependencies to show below the project's own. Default: `0` | + +Plus the [global options](./cli#global-options). + +## Output + +```text +$ craft list +dependencies: +express 5.3.0 + +devDependencies: +typescript 7.0.2 +``` + +```text +$ craft list --depth 1 +dependencies: +express 5.3.0 +├── accepts 2.0.0 +├── body-parser 2.4.0 +├── content-disposition 1.0.0 +… +``` + +Dependencies are grouped by `package.json` section and sorted by name. In the tree: + +- peers and optional dependencies are marked `(peer)` and `(optional)`; +- a package that depends back on one of its ancestors is marked `(cycle)` and not expanded again; +- an alias shows the package it stands for: `react-18 (npm:react@18.3.1)`. + +`craft list` reads only `craft.lock`; it doesn't contact the registry or look at `node_modules`. Without a lockfile: + +```text +error: craft.lock is missing; run `craft install` to create it +``` From 49687a09101192886fd8eb8ad33f3680d27834a5 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 28/43] docs: Add the craft why reference Options taken from craft why --help; examples are real output. --- docs/reference/why.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/reference/why.md diff --git a/docs/reference/why.md b/docs/reference/why.md new file mode 100644 index 0000000..1511cdc --- /dev/null +++ b/docs/reference/why.md @@ -0,0 +1,34 @@ +# craft why + +Show every chain of dependencies that installs a package. + +```text +craft why [OPTIONS] +``` + +Takes the [global options](./cli#global-options). + +## Output + +Chains are grouped by the version they reach, each starting from the `package.json` section that pulls it in: + +```text +$ craft why ms +ms 2.0.0 + dependencies: express 4.21.2 → body-parser 1.20.3 → debug 2.6.9 → ms 2.0.0 + dependencies: express 4.21.2 → debug 2.6.9 → ms 2.0.0 + … + dependencies: ms 2.0.0 +ms 2.1.3 + dependencies: express 4.21.2 → send 0.19.0 → ms 2.1.3 + … +``` + +Up to ten chains are shown per version, followed by `… and N more`. A package matches by its name or by the alias it's installed under. + +```text +$ craft why left-pad +left-pad is not installed +``` + +Like [`craft list`](./list), `craft why` reads only `craft.lock`. From 6ce97b1b5cbadf8f2cf5e71c0a0efbc7f0891323 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 29/43] docs: Add the craft run reference Options taken from craft run --help; examples are real output. --- docs/reference/run.md | 80 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 docs/reference/run.md diff --git a/docs/reference/run.md b/docs/reference/run.md new file mode 100644 index 0000000..61e1438 --- /dev/null +++ b/docs/reference/run.md @@ -0,0 +1,80 @@ +# craft run + +Run a `package.json` script, or list them when no name is given. + +```text +craft run [OPTIONS] [SCRIPT] [ARGS]... +``` + +Takes the [global options](./cli#global-options). + +## Scripts and bins + +`craft run ` runs, in order of preference: + +1. the script `` in `package.json`; +2. otherwise, the bin `` from the nearest `node_modules/.bin`, searching the current directory and its parents. + +Otherwise it fails, listing the scripts there are: + +```text +error: script "deploy" not found; available scripts: build, test +``` + +`craft `, with any name that isn't a craft command, does the same: `craft build`, `craft tsc --noEmit`. To run only a bin, never a script, use [`craft exec`](./exec). + +## Pre and post scripts + +`craft run build` runs `prebuild`, `build` and `postbuild`, the ones that exist, stopping at the first that fails. Only `build` receives the arguments. + +## Arguments + +Everything after the script name goes to the script, quoted so it reaches it as written, with no shell expansion: + +```sh +craft run test --watch +craft run greet "Ada Lovelace" # the script gets one argument: Ada Lovelace +craft run show 'a; echo hacked' # one argument; the echo never runs +``` + +## Environment + +Scripts run in a shell (`sh -c` on macOS and Linux, `cmd /d /s /c` on [Windows](/guide/windows#scripts-run-in-cmd)) in the project directory, with: + +| Variable | Value | +| --- | --- | +| `PATH` | `node_modules/.bin` of the project and every parent directory, then your `PATH` | +| `npm_lifecycle_event` | The script's name, e.g. `prebuild` | +| `npm_lifecycle_script` | The script's command | +| `npm_package_name`, `npm_package_version` | From `package.json` | +| `npm_package_json` | The path of `package.json` | +| `npm_config_user_agent` | `craft/ `, so tools such as create-vite know craft ran them | +| `INIT_CWD` | The directory craft was run from | + +## Exit codes and signals + +When a script fails, craft stops and exits with the script's exit code (128 + the signal number if it was killed), after one line: + +```text +error: build exited with code 2 +``` + +Ctrl-C reaches the script, and craft waits for it to exit. + +## Listing scripts + +```text +$ craft run +Scripts in my-app: + build + tsc + start + node dist/server.js +``` + +## Shortcuts + +| Command | Same as | +| --- | --- | +| `craft start` | `craft run start` | +| `craft test`, `craft t` | `craft run test` | From 2492e06cf7bb1caa2cbfb483c459f22b1b491288 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 30/43] docs: Add the craft exec reference Options taken from craft exec --help; examples are real output. --- docs/reference/exec.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/reference/exec.md diff --git a/docs/reference/exec.md b/docs/reference/exec.md new file mode 100644 index 0000000..76832f4 --- /dev/null +++ b/docs/reference/exec.md @@ -0,0 +1,27 @@ +# craft exec + +Run a bin from the project's dependencies. + +```text +craft exec [OPTIONS] [ARGS]... +``` + +Takes the [global options](./cli#global-options). + +## Behaviour + +`craft exec ` runs the bin from the nearest `node_modules/.bin`, searching the current directory and its parents, with the [same environment as scripts](./run#environment). Unlike [`craft run`](./run) and `craft `, it never runs a `package.json` script, even one with the same name. + +Arguments after the bin's name are passed to it unchanged, and its exit code becomes craft's. + +```sh +craft exec tsc --noEmit +craft exec eslint . --fix +craft exec vitest run --reporter=dot +``` + +A bin that isn't installed fails, suggesting [`craft dlx`](./dlx): + +```text +error: no prettier in node_modules/.bin; add the package that provides it, or try `craft dlx prettier` +``` From cfde69d92130c52697bbd3d73d025e8e54355f7f Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 31/43] docs: Add the craft dlx reference Options taken from craft dlx --help; examples are real output. --- docs/reference/dlx.md | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docs/reference/dlx.md diff --git a/docs/reference/dlx.md b/docs/reference/dlx.md new file mode 100644 index 0000000..d40354f --- /dev/null +++ b/docs/reference/dlx.md @@ -0,0 +1,56 @@ +# craft dlx + +Run a package's bin without adding it to the project. + +```text +craft dlx [OPTIONS] [ARGS]... +``` + +Alias: `craft x`. + +## Options + +| Option | Does | +| --- | --- | +| `-p`, `--package ` | The package to install, when its bin is named differently | + +Plus the [global options](./cli#global-options). + +## Behaviour + +craft installs the package into its own directory under `~/.craft/dlx`, then runs its bin from your current directory, passing the arguments along and exiting with the bin's exit code. Your project's `package.json`, `craft.lock` and `node_modules` aren't touched, and `dlx` works outside any project. + +- **Which version:** `craft dlx cowsay` runs the version `latest` points to, checking for a newer one each time. A version or range (`cowsay@1.6.0`, `create-vite@6`) reuses the earlier install, so it also works `--offline`. +- **Which bin:** the package's only bin, or else the one named after the package (without its scope). Name another with `-p`: + ```sh + craft dlx -p typescript tsc --version + ``` +- **`PATH`:** the package's own bins come first, then your project's `node_modules/.bin`. +- The install is quiet; warnings and errors still show. + +## Examples + +```sh +craft dlx create-vite my-app --template react-ts +craft x cowsay hello +craft dlx -p @angular/cli ng new my-app +craft dlx -p typescript@5.6 tsc --init +``` + +```text +$ craft dlx cowsay@1.6.0 hello + _______ +< hello > + ------- + \ ^__^ + \ (oo)\_______ + (__)\ )\/\ + ||----w | + || || +``` + +A package with several bins and none named after it needs `-p`: + +```text +error: toolbox has no bin named toolbox; it provides: tool-a, tool-b +``` From a05d8d27344c0ae2bb57c14858f5fa9dd9cb0612 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:46 +0400 Subject: [PATCH 32/43] docs: Add the craft trust reference Options taken from craft trust --help; examples are real output. --- docs/reference/trust.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/reference/trust.md diff --git a/docs/reference/trust.md b/docs/reference/trust.md new file mode 100644 index 0000000..eb8760b --- /dev/null +++ b/docs/reference/trust.md @@ -0,0 +1,24 @@ +# craft trust + +Allow packages to run install scripts, then install. + +```text +craft trust [OPTIONS] ... +``` + +Takes the [global options](./cli#global-options). + +## Behaviour + +Adds the packages to `trustedDependencies` in `package.json` (kept sorted, without duplicates), then runs [`craft install`](./install), which builds them. + +```text +$ craft trust bcrypt +Trusted bcrypt +Ran install scripts of bcrypt@6.0.0 +72 packages installed in 0.6s +``` + +A package is trusted wherever it appears in the dependency tree. To stop trusting one, remove it from `trustedDependencies`. + +See [Install scripts](/guide/install-scripts) for how builds run. From 2ac480be844ff8c22cac17063c595b110d77e482 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 33/43] docs: Add the craft init reference Options taken from craft init --help; examples are real output. --- docs/reference/init.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/reference/init.md diff --git a/docs/reference/init.md b/docs/reference/init.md new file mode 100644 index 0000000..604ba7d --- /dev/null +++ b/docs/reference/init.md @@ -0,0 +1,33 @@ +# craft init + +Create a `package.json` in the current directory. + +```text +craft init [OPTIONS] +``` + +Takes the [global options](./cli#global-options). + +## Behaviour + +Writes a minimal `package.json`, named after the directory: + +```text +$ mkdir my-app && cd my-app && craft init +Created package.json +``` + +```json +{ + "name": "my-app", + "version": "1.0.0" +} +``` + +The directory name is turned into a valid package name: `My App` becomes `my-app`. + +`craft init` never overwrites an existing file: + +```text +error: package.json already exists +``` From 0e11519c19ee95356d293567a35d2f85a45c82a0 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 34/43] docs: Add the craft ci reference Options taken from craft ci --help; examples are real output. --- docs/reference/ci.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/reference/ci.md diff --git a/docs/reference/ci.md b/docs/reference/ci.md new file mode 100644 index 0000000..070a3f0 --- /dev/null +++ b/docs/reference/ci.md @@ -0,0 +1,29 @@ +# craft ci + +Remove `node_modules` and install exactly what `craft.lock` records. + +```text +craft ci [OPTIONS] +``` + +## Options + +| Option | Does | +| --- | --- | +| `--ignore-scripts` | Run no lifecycle scripts | + +Plus the [global options](./cli#global-options). + +## Behaviour + +1. Checks that `craft.lock` exists and matches `package.json`, failing before any download otherwise: + ```text + error: craft.lock is out of date with package.json: ms (not in craft.lock); run `craft install` to update it + ``` +2. Removes `node_modules`. +3. Installs from the lockfile alone, with no registry metadata requests, taking tarballs from the global store when it has them. +4. Runs the install scripts of [trusted dependencies](/guide/install-scripts) and the project's own `preinstall`, `install`, `postinstall` and `prepare`. + +`craft.lock` is never rewritten. To install from the lockfile without removing `node_modules` first, use `craft install --frozen-lockfile`. + +See [Continuous integration](/guide/ci) for complete CI setups. From 022aa458f39e582d53d602acab18fd333353f2d6 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 35/43] docs: Add the craft cache reference Options taken from craft cache --help; examples are real output. --- docs/reference/cache.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/reference/cache.md diff --git a/docs/reference/cache.md b/docs/reference/cache.md new file mode 100644 index 0000000..e98b975 --- /dev/null +++ b/docs/reference/cache.md @@ -0,0 +1,25 @@ +# craft cache + +Manage the global package store and metadata cache. + +```text +craft cache clean [OPTIONS] +``` + +## craft cache clean + +Remove every stored package and cached registry response. + +| Option | Does | +| --- | --- | +| `-f`, `--force` | Confirm the removal | + +Plus the [global options](./cli#global-options). + +Without `--force`, nothing is removed and craft explains how to confirm. With it, craft deletes the store (`~/.craft/store`) and the metadata cache (`~/.craft/cache/metadata`), or the same directories under `CRAFT_HOME`. Installs made by [`craft dlx`](./dlx) in `~/.craft/dlx` are kept. + +Projects keep working afterwards: their `node_modules` hold their own copies of the files. The next install anywhere downloads again what it needs. + +```sh +craft cache clean --force +``` From c441ac1b5acf255283607ee2dc6eacbbfcbf2a7a Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 36/43] docs: Add the contributing overview Setup, the change workflow and working on the docs. --- docs/contributing/index.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docs/contributing/index.md diff --git a/docs/contributing/index.md b/docs/contributing/index.md new file mode 100644 index 0000000..ef4d6d3 --- /dev/null +++ b/docs/contributing/index.md @@ -0,0 +1,37 @@ +# Contributing + +craft is open source under the MIT License, and contributions are welcome: bug reports, documentation fixes and code. + +## Getting set up + +You need [Rust](https://www.rust-lang.org/tools/install) (stable) and [Node.js](https://nodejs.org) 22 or later, which the end-to-end tests use to load installed packages. + +```sh +git clone https://github.com/craftpkg/craft.git +cd craft +make # format check, clippy, build and every test +cargo run -p craft -- install # run your build of craft +``` + +`make` must pass before a change is merged; CI runs it on Linux, macOS and Windows. + +## Making a change + +1. Open an issue first for anything bigger than a fix, so the approach can be agreed on. +2. Write a test that fails without your change: an end-to-end test against the mock registry for anything a user can observe, a unit test for internal logic. See [Testing](./testing). +3. Keep `make` green. Clippy runs with `-D warnings`, and `unwrap` / `expect` are denied outside tests. +4. Open a pull request against `main`. + +`REMAINING.md` at the repository root tracks what's planned, with the reasoning behind each task. + +## Documentation + +This site lives in `docs/` and is built with [VitePress](https://vitepress.dev), whose dependencies craft itself installs: + +```sh +cd docs +craft install +craft run docs:dev # http://localhost:5173/craft/ +``` + +Every page has an "Edit this page on GitHub" link at the bottom. From c4c13c0a7450acd4fcf43a595a4ab4aab6c7711a Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 37/43] docs: Add the architecture page The workspace crates and the install pipeline. --- docs/contributing/architecture.md | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docs/contributing/architecture.md diff --git a/docs/contributing/architecture.md b/docs/contributing/architecture.md new file mode 100644 index 0000000..de0a42f --- /dev/null +++ b/docs/contributing/architecture.md @@ -0,0 +1,40 @@ +# Architecture + +craft is a Cargo workspace. The binary in `apps/craft` is thin: it parses the command line, builds a `Context`, and hands an action to the manager. + +```text +apps/craft main: CLI → Context → CraftManager, error printing +crates/ +├── cli clap definitions; turns arguments into an Action +├── manager dispatches each Action to its actor +├── actor one actor per command: install, add, remove, update, outdated, +│ list/why, run/exec, dlx, trust, init, ci, cache +├── pipeline the install pipeline: resolve → peers → link → prune → scripts → lockfile +├── resolver registry and git resolution, the dependency graph, lockfile preferences +├── network HTTP client: retries, concurrency limits, metadata cache, integrity +├── tarball safe, atomic tarball extraction +├── package package.json types, dependency specifiers, platform constraints +├── lockfile craft.lock types +├── process spawning scripts and bins, their environment and argument quoting +├── fsutil links, junctions, bin shims, store imports, atomic writes +├── progress the status line and summaries +├── contract shared types: Context, errors, .npmrc configuration +├── debug --debug logging +└── testkit the mock registry and package fixtures used by the tests +``` + +## An install, step by step + +1. **`InstallActor`** reads `package.json` and `craft.lock`, and stops early with `Already up to date` when the installed state matches. +2. **`InstallPipe`** resolves every dependency into a `ResolutionGraph` of nodes (`name@version`) and edges. Registry requests share one packument fetch per name; locked versions are preferred; local and git sources are materialized while resolving, since their metadata comes from their own `package.json`. +3. **The peer pass** rewrites the graph so each package instance knows its resolved peers (`ui@1.0.0_react@19.2.0`). +4. **`fetch`** downloads and extracts missing registry packages into the global store. +5. **`LinkerPipe`** imports store entries into `node_modules/.craft`, links dependencies, hoists, links bins, and prunes. +6. **`LifecyclePipe`** runs install scripts of trusted packages. +7. **The lockfile** is serialized from the graph and written if it changed. + +## Conventions + +- Errors are `thiserror` types in `contract::errors`, with context added at IO boundaries (`fsutil` names the path for every failure), and printed by `main` as `error:`, `caused by:` and `hint:` lines. +- Filesystem changes go through `fsutil`, which handles dangling links, concurrent writers and the differences between Unix and Windows. +- Platform-specific code lives behind `cfg(unix)` / `cfg(windows)` in small functions, with the shared logic compiled and tested everywhere. From 9b5f9e119907b442658f4ff5a7eb5efb8ee5f60d Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 38/43] docs: Add the testing page Unit, end-to-end, real-world and Windows tests. --- docs/contributing/testing.md | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/contributing/testing.md diff --git a/docs/contributing/testing.md b/docs/contributing/testing.md new file mode 100644 index 0000000..8996ee7 --- /dev/null +++ b/docs/contributing/testing.md @@ -0,0 +1,50 @@ +# Testing + +```sh +make # fmt check, clippy, unit and end-to-end tests +make real-world # scenarios against registry.npmjs.org and GitHub +docker/windows/test.sh # the whole suite built for Windows, run under Wine +``` + +## Unit tests + +Each crate has unit tests next to its code. They never touch the network or the real home directory: everything runs in temporary directories with an explicit `Context`. + +## End-to-end tests + +`apps/craft/tests/e2e/` runs the real `craft` binary against **`MockRegistry`** (`crates/testkit`), an npm-compatible registry on `127.0.0.1` that serves packuments and tarballs built in memory from `PackageFixture`s: + +```rust +#[test] +fn installs_dependencies_and_their_subtree() { + let registry = MockRegistry::start(); + registry + .publish(PackageFixture::new("ms", "2.1.3")) + .publish(PackageFixture::new("debug", "4.4.0").dependency("ms", "^2.1.3")); + let project = Project::new(®istry, json!({ "dependencies": { "debug": "^4.0.0" } })); + + project.craft().arg("install").assert().success(); + + assert_eq!(project.required_version("debug"), Ok("4.4.0".to_string())); +} +``` + +- Each test gets its own project directory and craft home, so tests run in parallel and leave nothing behind. +- Fixtures have real integrity hashes, and their default `index.js` requires their dependencies, so `project.require(…)` under Node proves the tree resolves. +- The mock registry can require tokens, fail requests with chosen statuses and `Retry-After`, send `max-age`, serve over TLS with a self-signed certificate, act as an HTTP proxy, and record request paths, headers and concurrency. +- Scripts in fixtures use `node -e` rather than shell commands, so the same tests run on Windows. + +## Real-world tests + +`apps/craft/tests/real_world/` installs pinned real packages from the npm registry, JSR and GitHub: an Express server, React server rendering with Redux and React Query, a `craft dlx create-vite` project that builds, TypeScript, native packages, git and tarball dependencies, and more. They are ignored by default; `make real-world` runs them, and CI runs them in the `registry-tests` job. + +## Windows + +CI runs the full suite on `windows-latest`. Locally, `docker/windows/test.sh` cross-compiles every test executable for `x86_64-pc-windows-gnu` and runs them under Wine with the Windows builds of Node.js and Git: + +```sh +docker/windows/test.sh # everything +docker/windows/test.sh run:: # arguments go to each test executable +``` + +Wine is not Windows: CI's `windows-latest` job has the final word. On Apple Silicon, Docker's Rosetta emulation can crash Wine processes; switching Docker Desktop to QEMU emulation avoids that. From 0c5738a765c9d5f352d0d2106f681cba1ff41ca8 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:47 +0400 Subject: [PATCH 39/43] ci: Build and deploy the docs site Builds craft from the same commit, installs and builds the site with it, and deploys to GitHub Pages from main; pull requests only build. --- .github/workflows/docs.yml | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..e0680ef --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,63 @@ +name: Docs + +on: + push: + branches: [ "main" ] + paths: [ "docs/**", ".github/workflows/docs.yml" ] + pull_request: + paths: [ "docs/**", ".github/workflows/docs.yml" ] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: docs-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Build craft + run: cargo build --release -p craft + + - name: Install the site's dependencies with craft + working-directory: docs + run: ../target/release/craft ci + + - name: Build the site + working-directory: docs + run: ../target/release/craft run docs:build + + - name: Upload the site + if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v3 + with: + path: docs/.vitepress/dist + + deploy: + if: github.event_name != 'pull_request' + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From 22352d1354a7621bad837eaad394a39e88975313 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:48 +0400 Subject: [PATCH 40/43] build: Add make docs Previews the docs site with the local craft. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fe6a811..0c18957 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build test lint fmt craft real-world +.PHONY: build test lint fmt craft real-world docs all: build test lint @@ -18,6 +18,10 @@ fmt: real-world: cargo test -p craft --test real_world -- --ignored +docs: + cargo build -q --release -p craft + cd docs && ../target/release/craft install && ../target/release/craft run docs:dev + craft: cargo run -p craft -- $(filter-out $@,$(MAKECMDGOALS)) From e6773f0e91bd572151deab399cdbde91f5d03b22 Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:48 +0400 Subject: [PATCH 41/43] docs: Point the README at the docs site The details now live on the site; the README keeps a summary. --- README.md | 105 ++++++++++-------------------------------------------- 1 file changed, 18 insertions(+), 87 deletions(-) diff --git a/README.md b/README.md index f847d3e..32b1988 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- Craft Logo + Craft Logo

# 📦 Craft Package Manager @@ -10,112 +10,43 @@ **Craft** is a fast, strict package manager for Node.js, written in Rust. It installs from the npm registry (or any npm-compatible one) into a pnpm-style `node_modules`, keeps a deterministic `craft.lock`, and runs dependency install scripts only for packages you trust. +**📖 Documentation: [craftpkg.github.io/craft](https://craftpkg.github.io/craft/)** + ## ✨ Features -- 🚀 **Fast**: parallel resolution and downloads, packuments cached on disk and revalidated with ETags, files cloned (copy-on-write) from a global store. An unchanged project installs in milliseconds. -- 🔒 **Deterministic**: `craft.lock` records every resolved version, tarball and integrity; `craft install --frozen-lockfile` (the default in CI) installs exactly that. -- 📦 **Strict, isolated layout**: every package sees only the dependencies it declares, each project has its own `node_modules/.craft`, and the global store is never modified after extraction. -- 🧩 **npm-compatible**: semver ranges, dist-tags, `npm:` aliases, git and tarball URLs, `file:` and `link:` dependencies, peer and optional dependencies, `os`/`cpu`/`libc` platform packages, `.npmrc` registries and auth. -- 🛡️ **Safe by default**: tarballs are verified against their integrity hash, and dependencies' install scripts run only when listed in `trustedDependencies`. +- 🚀 **Fast**: parallel downloads, a revalidated metadata cache, and files cloned from a global store. An unchanged project installs in milliseconds. +- 🔒 **Deterministic**: `craft.lock` pins every version, source and integrity hash; installs in CI are frozen by default. +- 📦 **Strict**: every package sees only the dependencies it declares, so undeclared imports fail on your machine, not in production. +- 🛡️ **Safe by default**: tarballs are integrity-checked, and dependencies' install scripts run only when listed in `trustedDependencies`. +- 🧩 **npm-compatible**: ranges, dist-tags, aliases, git, tarball, `file:` and `link:` dependencies, peers, platform packages, and `.npmrc` registries and auth. +- 🖥️ **Everywhere**: native binaries for Linux (glibc and musl), macOS and Windows. ## 🚀 Installation -### One-line install - ```bash curl -fsSL https://raw.githubusercontent.com/craftpkg/craft/main/install.sh | bash ``` -The script downloads the binary for your platform (a static build on musl/Alpine), verifies its SHA-256 checksum, and installs it to `/usr/local/bin` when writable or `~/.local/bin` otherwise — no `sudo`. Set `CRAFT_INSTALL_DIR` to choose the directory and `CRAFT_VERSION` to pin a release. - -### From a release - -Download a binary and its `.sha256` from the [Releases](https://github.com/craftpkg/craft/releases) page: Linux (x64 and arm64, glibc and musl), macOS (Intel and Apple Silicon) and Windows (x64). - -On Windows, directory links are junctions and bins get `.cmd`, `.ps1` and sh shims like npm's, so neither administrator rights nor Developer Mode are needed; scripts run through `cmd`. - -### From source - -```bash -git clone https://github.com/craftpkg/craft.git -cd craft -cargo install --path apps/craft -``` +Or download a binary from the [Releases](https://github.com/craftpkg/craft/releases) page. See [Installation](https://craftpkg.github.io/craft/guide/installation) for Windows, checksums and building from source. ## 📖 Usage ```bash craft init # create a package.json -craft install # install everything in package.json (alias: craft i) -craft add react react-dom # add dependencies -craft add -D typescript # …to devDependencies (-E exact, -O optional, -P peer) -craft remove react # remove dependencies (aliases: rm, uninstall, un) -craft update [pkg…] # update within the ranges in package.json; --latest to move ranges -craft outdated # show what has newer versions -craft list --depth 1 # show the dependency tree (alias: ls) -craft why ms # show why a package is installed -craft run build # run a script, with its pre/post scripts (craft run lists them) -craft start / craft test # shortcuts for craft run start / test -craft tsc --noEmit # run a dependency's bin directly -craft exec eslint . # run a dependency's bin, never a script -craft dlx create-vite my-app # run a package without adding it (alias: craft x) -craft trust esbuild # allow a dependency's install scripts, then install +craft install # install everything in package.json +craft add react # add a dependency (-D dev, -E exact, -O optional, -P peer) +craft remove react # remove one +craft update # update within your ranges; --latest to move them +craft run build # run a script; craft tsc runs a dependency's bin +craft dlx create-vite my-app # run a package without adding it craft ci # clean, frozen install for CI -craft cache clean --force # remove the global store and metadata cache ``` -Global flags: `--offline` (never touch the network), `--prefer-offline` (use cached metadata without revalidating), `--silent`, `--debug`. `craft -v` prints the version. Every command has `--help`. - -## 🧠 How it works - -- **Global store** — each package is extracted once into `~/.craft/store/v1/@-/` after its integrity is verified, and never written to afterwards. -- **Per-project virtual store** — every package lives in `node_modules/.craft/@/node_modules/`, imported from the store by clone, hardlink or copy (whichever the filesystem supports), with its dependencies linked beside it. Your `node_modules/` entries are links into `.craft`. Packages that `require` something they never declared still find it through `node_modules/.craft/node_modules`, while your own code only sees what `package.json` lists. -- **Peer dependencies** resolve to what the parent provides; a package used with different peers gets one copy per peer set (`ui@1.0.0_react@18.3.1`). -- **`craft.lock`** is sorted JSON meant to be committed. With it, installs make no registry metadata requests at all; `craft add`, `craft remove` and `craft update` keep it up to date. Anything removed from `package.json` is pruned from `node_modules` on the next install. - -## 🛡️ Install scripts - -Dependencies' `preinstall` / `install` / `postinstall` scripts (and implicit `node-gyp` builds) run only for packages listed in `package.json`: - -```json -{ - "trustedDependencies": ["bcrypt", "esbuild"] -} -``` - -Craft lists every package whose scripts it skipped; `craft trust ` adds it and builds it. Your project's own lifecycle scripts always run, and `--ignore-scripts` turns all of them off. - -## ⚙️ Configuration - -Craft reads `.npmrc` from your home directory and the project, plus `npm_config_*` variables: - -```ini -registry=https://registry.npmjs.org/ -@acme:registry=https://npm.pkg.github.com -//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} -https-proxy=http://proxy.internal:8080 -fetch-retries=3 -network-concurrency=16 -``` - -Supported keys: `registry`, `@scope:registry`, `//host/:_authToken`, `_auth`, `username` + `_password`, `https-proxy`, `proxy`, `noproxy`, `strict-ssl`, `cafile`, `fetch-retries`, `network-concurrency`, `offline`, `prefer-offline`. Credentials are only ever sent to the host they're configured for. HTTPS uses craft's bundled root certificates; point `cafile` at your CA's certificate to use a private registry or a TLS-inspecting proxy. - -| Environment variable | Purpose | -| --- | --- | -| `CRAFT_HOME` | Where the store and caches live (default `~/.craft`) | -| `CRAFT_REGISTRY` | Override the default registry | -| `CRAFT_OS` / `CRAFT_CPU` / `CRAFT_LIBC` | Install platform packages for another platform (e.g. building a Linux image on a Mac) | -| `CI` | When set, installs require an up-to-date `craft.lock` | +Every command is documented in the [CLI reference](https://craftpkg.github.io/craft/reference/cli). ## 🤝 Contributing -Contributions are welcome! `make` runs formatting, lints and the full test suite against a local mock registry (the end-to-end tests need Node.js on `PATH`). `make real-world` runs scenarios with real packages against registry.npmjs.org and GitHub, and `docker/windows/test.sh` cross-compiles the tests for Windows and runs them under Wine. - -1. Fork the repository -2. Create your feature branch (`git checkout -b feature/amazing-feature`) -3. Commit your changes (`git commit -m 'Add some amazing feature'`) -4. Push to the branch (`git push origin feature/amazing-feature`) -5. Open a Pull Request +Contributions are welcome! `make` runs formatting, lints and the full test suite. See [Contributing](https://craftpkg.github.io/craft/contributing/) for the architecture, the test suites and how to work on the docs. ## 📄 License From d5ac3fc7c1d15cc5a94cea28222d2fdc325a4a9a Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:48 +0400 Subject: [PATCH 42/43] docs: Record the docs site Notes the site and the manifest fix dogfooding found. --- REMAINING.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/REMAINING.md b/REMAINING.md index 284c403..f2a5244 100644 --- a/REMAINING.md +++ b/REMAINING.md @@ -735,6 +735,8 @@ Measured: cold install of this repo's `package.json` ≈ 4.8 s, 149 MB RSS; warm > Done: the release workflow builds `aarch64-unknown-linux-gnu` (native arm64 runner) and static `x86_64`/`aarch64-unknown-linux-musl`, and publishes a `.sha256` beside every binary. reqwest now uses rustls with bundled Mozilla root certificates instead of OpenSSL, so musl builds need no system libraries or CA bundle (npm and JSR installs re-verified over HTTPS); like npm, private CAs are trusted through `cafile`. OS roots were tried first and dropped: loading the macOS keychain made parallel runs 6× slower and would fail in containers without `ca-certificates`. `install.sh` picks the musl build on musl systems, verifies the checksum (refuses a mismatch, warns when a release has none), installs to `/usr/local/bin` when writable or `~/.local/bin` without sudo, and takes `CRAFT_INSTALL_DIR`, `CRAFT_VERSION` and `CRAFT_DOWNLOAD_URL`; tested against a local release server with a valid, a tampered and a missing checksum. The README drops the `package-lock.json` and "`craft init` coming soon" claims and documents every command, the store and virtual-store layout, `craft.lock`, `trustedDependencies`, `.npmrc` keys and the `CRAFT_*` variables. > > Not verified locally: the new CI matrix entries themselves; they run on the next tag. +> +> Docs site: `docs/` is a VitePress site (guide, CLI reference, contributing) whose dependencies craft installs itself; `make docs` previews it and `.github/workflows/docs.yml` builds it with the craft of the same commit and deploys to GitHub Pages from `main`. Dogfooding it found that a published manifest with a non-string script (`speakingurl`'s `"blanket": { … }`) failed to parse; like npm, non-string `scripts` / `dependencies` / `devDependencies` entries are now ignored. - Release workflow: publish `sha256` checksums; `install.sh` verifies them; support `CRAFT_INSTALL_DIR` / `~/.local/bin` without sudo. - Linux: add `aarch64-unknown-linux-gnu` and a `musl` static build. From 4e04249e84c701f4b4ee556137a95fe4f9d280be Mon Sep 17 00:00:00 2001 From: Shahen Hovhannisyan Date: Sun, 25 Oct 2026 03:17:56 +0400 Subject: [PATCH 43/43] docs: Move the logo into the site's public folder VitePress serves public/ as is; the README points there too. --- docs/{assets => public}/logo.png | Bin 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/{assets => public}/logo.png (100%) diff --git a/docs/assets/logo.png b/docs/public/logo.png similarity index 100% rename from docs/assets/logo.png rename to docs/public/logo.png