{"_id":"@agent-ix/quire-wasm","_rev":"4-1968ec452f439ebc45fb781e81074f33","name":"@agent-ix/quire-wasm","dist-tags":{"latest":"0.6.0"},"versions":{"0.3.0":{"name":"@agent-ix/quire-wasm","version":"0.3.0","license":"MIT","_id":"@agent-ix/quire-wasm@0.3.0","maintainers":[{"name":"agent-ix","email":"peter@agent-ix.ai"}],"homepage":"https://github.com/agent-ix/quire-wasm#readme","bugs":{"url":"https://github.com/agent-ix/quire-wasm/issues"},"dist":{"shasum":"be001f19057576396337aed3d0b59fc1d568989d","tarball":"https://registry.npmjs.org/@agent-ix/quire-wasm/-/quire-wasm-0.3.0.tgz","fileCount":10,"integrity":"sha512-UgyZSln1vu1yrqNB712c9jn6eiU4f7Pd7AlX3gw/txP4+2hTlSeiWWuFTtxgtcc89HP9oGFhWAsa95K0QazFpg==","signatures":[{"sig":"MEYCIQD8fLTSdQdTRezYlx9J4+0abP6bDK+cBPjUrByfChTTBwIhAO0Y4oFLQvjl0eTaReRCRbw/5avLYaRbc/Tt1H5kgWEr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2166537},"main":"pkg/quire_wasm.js","type":"module","types":"pkg/quire_wasm.d.ts","module":"pkg/quire_wasm.js","exports":{".":{"types":"./pkg/quire_wasm.d.ts","import":"./pkg/quire_wasm.js"}},"gitHead":"4f7dd60bc0dc989378c1a15c3e91635583f174b0","scripts":{"test":"wasm-pack test --node","build":"wasm-pack build --target web --release"},"_npmUser":{"name":"agent-ix","email":"peter@agent-ix.ai"},"repository":{"url":"git+https://github.com/agent-ix/quire-wasm.git","type":"git"},"_npmVersion":"10.9.2","description":"WebAssembly bindings for quire-rs (parse, extract, validate) — powers spec-editor live preview.","directories":{},"_nodeVersion":"22.15.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/quire-wasm_0.3.0_1781880914419_0.7525586795379646","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@agent-ix/quire-wasm","version":"0.4.0","license":"MIT","_id":"@agent-ix/quire-wasm@0.4.0","maintainers":[{"name":"agent-ix","email":"peter@agent-ix.ai"}],"homepage":"https://github.com/agent-ix/quire-wasm#readme","bugs":{"url":"https://github.com/agent-ix/quire-wasm/issues"},"dist":{"shasum":"f0d9b67815adb8008bda8eeeeaa7bb6ed48f3e4c","tarball":"https://registry.npmjs.org/@agent-ix/quire-wasm/-/quire-wasm-0.4.0.tgz","fileCount":10,"integrity":"sha512-xP1fZScxFBCbf+iyFvjE9wDJcZknGwy8ClTFL9BbtaHtIm9CSP71VwI15TM7It0U9KgSUc3r+BiSmlH6beXZ0A==","signatures":[{"sig":"MEYCIQDqcDK1pZmDnJe0per0dv53jpxu1Eekk0b7LTzLzVpoLAIhAPyp8LlXH2cNAwkow9ehgBbFVm0ERAa3TN2X7T1kazEA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2178865},"main":"pkg/quire_wasm.js","type":"module","types":"pkg/quire_wasm.d.ts","module":"pkg/quire_wasm.js","exports":{".":{"types":"./pkg/quire_wasm.d.ts","import":"./pkg/quire_wasm.js"}},"gitHead":"00ed377ac3a3e738725be3063eff8dd6e35becd3","scripts":{"test":"wasm-pack test --node","build":"wasm-pack build --target web --release"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:604c556b-92f1-4552-9ce5-54cb76942705"}},"repository":{"url":"git+https://github.com/agent-ix/quire-wasm.git","type":"git"},"_npmVersion":"11.17.0","description":"WebAssembly bindings for quire-rs (parse, extract, validate) — powers spec-editor live preview.","directories":{},"_nodeVersion":"22.22.3","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/quire-wasm_0.4.0_1782106908951_0.23524358676060686","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@agent-ix/quire-wasm","version":"0.5.0","license":"AGPL-3.0-only","_id":"@agent-ix/quire-wasm@0.5.0","maintainers":[{"name":"agent-ix","email":"peter@agent-ix.ai"}],"homepage":"https://github.com/agent-ix/quire-wasm#readme","bugs":{"url":"https://github.com/agent-ix/quire-wasm/issues"},"dist":{"shasum":"6d233fd20df4eac25243ce1303ed44fd2d98ad9f","tarball":"https://registry.npmjs.org/@agent-ix/quire-wasm/-/quire-wasm-0.5.0.tgz","fileCount":10,"integrity":"sha512-YveqKGhFY7bXU6XcgF8iKPStPQ6ca3O822wVmzfPQQJFi5ihVIu/zkjRggQe9/JGqslPBNv9VgvpBkjkdfnIRQ==","signatures":[{"sig":"MEYCIQDEScLmWxyqO6YaFBOY/DYLLjspobJVWIohp8WLOhHotwIhAJ5KJ4ucB1GlEeR/IWIoXifdLTmeiqjqpjy6aIRdDXM6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2245049},"main":"pkg/quire_wasm.js","type":"module","types":"pkg/quire_wasm.d.ts","module":"pkg/quire_wasm.js","exports":{".":{"types":"./pkg/quire_wasm.d.ts","import":"./pkg/quire_wasm.js"}},"gitHead":"563cc3115912e8ac5400ac388c870f639a47c305","scripts":{"test":"wasm-pack test --node","build":"wasm-pack build --target web --release"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:604c556b-92f1-4552-9ce5-54cb76942705"}},"repository":{"url":"git+https://github.com/agent-ix/quire-wasm.git","type":"git"},"_npmVersion":"11.17.0","description":"WebAssembly bindings for quire-rs (parse, extract, validate) — powers spec-editor live preview.","directories":{},"_nodeVersion":"22.23.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/quire-wasm_0.5.0_1782597320501_0.13154309702775135","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@agent-ix/quire-wasm","version":"0.6.0","description":"WebAssembly bindings for quire-rs (parse, extract, validate) — powers spec-editor live preview.","type":"module","main":"pkg/quire_wasm.js","module":"pkg/quire_wasm.js","types":"pkg/quire_wasm.d.ts","exports":{".":{"types":"./pkg/quire_wasm.d.ts","import":"./pkg/quire_wasm.js"}},"scripts":{"build":"wasm-pack build --target web --release","test":"wasm-pack test --node","test:filament-parity":"node tests/filament_core_parity.mjs"},"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"repository":{"type":"git","url":"git+https://github.com/agent-ix/quire-wasm.git"},"license":"AGPL-3.0-only","gitHead":"d6cb062047256c37bb16a9a9b7471cc3cd007b37","_id":"@agent-ix/quire-wasm@0.6.0","bugs":{"url":"https://github.com/agent-ix/quire-wasm/issues"},"homepage":"https://github.com/agent-ix/quire-wasm#readme","_nodeVersion":"22.23.0","_npmVersion":"11.18.0","dist":{"integrity":"sha512-b15pFZR46uwr1gpO57VLv6pbhPhUpwxa3Yt/WSh4D2ooA84MW1t49jO4Z4Egs9loOnrgS32ZPR51oxCluHfUBw==","shasum":"1627e886225aae1ebae6ad5658ddc58250afe0fe","tarball":"https://registry.npmjs.org/@agent-ix/quire-wasm/-/quire-wasm-0.6.0.tgz","fileCount":10,"unpackedSize":3072736,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBBBm/FEI4kUdbDqCUEbtgx8CG8pwuBG3D2sbfDWmxYZAiBXQ4+A+H21fBf20plOwIczi53EhZtcQLL97NuRsNjscw=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:604c556b-92f1-4552-9ce5-54cb76942705"}},"directories":{},"maintainers":[{"name":"agent-ix","email":"peter@agent-ix.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/quire-wasm_0.6.0_1782793527390_0.8423277410887435"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-19T14:55:14.284Z","modified":"2026-06-30T04:25:27.741Z","0.3.0":"2026-06-19T14:55:14.621Z","0.4.0":"2026-06-22T05:41:49.144Z","0.5.0":"2026-06-27T21:55:20.780Z","0.6.0":"2026-06-30T04:25:27.617Z"},"bugs":{"url":"https://github.com/agent-ix/quire-wasm/issues"},"license":"AGPL-3.0-only","homepage":"https://github.com/agent-ix/quire-wasm#readme","repository":{"type":"git","url":"git+https://github.com/agent-ix/quire-wasm.git"},"description":"WebAssembly bindings for quire-rs (parse, extract, validate) — powers spec-editor live preview.","maintainers":[{"name":"agent-ix","email":"peter@agent-ix.ai"}],"readme":"<p align=\"center\">\n  <img src=\"logo.png\" alt=\"Quire\" width=\"100%\" />\n</p>\n\n# quire-wasm\n\n[![Discord](https://img.shields.io/badge/Discord-Join%20us-5865F2?logo=discord&logoColor=white)](https://discord.gg/6qsdhSPE)\n\nWebAssembly bindings for [quire-rs](https://github.com/agent-ix/quire-rs) —\nthe parsing, extraction, and validation engine that powers the\nFilament/Quire spec-artifact ecosystem.\n\n**Purpose:** give `spec-editor` and other browser/Node consumers the\ncanonical parse/extract/validate pipeline so the editor agrees\nbyte-for-byte with the `quire` CLI and the Python reference parser.\n\n> **No render surface.** The render/templating feature was removed from\n> `quire-rs` (commit `e0811a8`). There is no `render` or `renderFromBlob`\n> export; the module blob is `{ manifest, schemas }` (no `templates`).\n\n## Public surface\n\n```ts\nimport init, {\n  parseDocument,\n  extract,\n  validate_archetype as validate,\n  extractFromBlob,\n  validateFromBlob,\n} from \"@agent-ix/quire-wasm\";\n\nawait init(); // load the .wasm\n\nconst doc = parseDocument(md);\n\n// Filesystem-rooted (Node target):\nconst records = extract(\"FR\", \"/path/to/module\", md);\nvalidate(\"FR\", \"/path/to/module\", { id: \"FR-001\", /* ... */ }); // throws on violation\n\n// In-memory module blob (browser / --target web):\nconst moduleBlob = {\n  manifest: \"<raw manifest.yaml text>\",\n  schemas: { \"schemas/fr-frontmatter.schema.json\": \"<schema json>\" },\n};\nconst recs = extractFromBlob(\"FR\", moduleBlob, md);\nvalidateFromBlob(\"FR\", moduleBlob, { id: \"FR-001\", /* ... */ });\n```\n\n### Two shapes\n\n- **Module-blob** (`extractFromBlob`, `validateFromBlob`): pass an\n  in-memory `{ manifest, schemas }` object — the filesystem-free path\n  used by `--target web`. Builds an inline `Registry` via\n  `quire_rs::Registry::from_inline_parts(manifest, schemas)`.\n- **Filesystem-rooted** (`extract`, `validate_archetype`): pass a\n  `moduleRoot` path string. Works under `wasm-pack --target nodejs`\n  (real fs) and any embedding that polyfills `fs` via WASI.\n\n`parseDocument` is filesystem-free and works everywhere.\n\n## Install\n\n```bash\nnpm install @agent-ix/quire-wasm\n```\n\n## Build\n\n```bash\nmake build       # wasm-pack build --target web --release  (browser)\nmake build-node  # wasm-pack build --target nodejs --release (Node)\nmake test        # wasm-pack test --node (extract/validate parity vs quire-rs)\nmake ci          # full local CI gate (fmt + lint + test + deny + audit)\n```\n\n`wasm-pack` is required: `cargo install wasm-pack`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}