{"_id":"@cadit-app/qr-code","_rev":"2-1cc8090ce6a4451de975791f0fa83f21","name":"@cadit-app/qr-code","dist-tags":{"latest":"0.5.1"},"versions":{"0.5.0":{"name":"@cadit-app/qr-code","version":"0.5.0","keywords":["cadit","qr-code","3d-printing","parametric"],"author":{"name":"CADit"},"license":"MIT","_id":"@cadit-app/qr-code@0.5.0","maintainers":[{"name":"cadit-publish-bot","email":"bart.moyaers@cookiecad.com"},{"name":"loosetooth","email":"loosetooth@protonmail.com"}],"dist":{"shasum":"47c728df416b733533d7bb641205716e51110dd9","tarball":"https://registry.npmjs.org/@cadit-app/qr-code/-/qr-code-0.5.0.tgz","fileCount":96,"integrity":"sha512-C/lc+UmDO+l8BI/IEJxZ3kWiQk0Jzmctj6cw5I51LKgflLGe7lSOIxBE0XH3X6MWI1XnaDO3NGAbEmK92fSjUg==","signatures":[{"sig":"MEUCICD878bYTNI3xDcfezdB66V0DBMoo1q8Qb1tzHN/Czq/AiEA8+fZTXBe5I4gFxZ1LRx7JkTZttoRVf8gpZP6ASZ8Jnk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":452661},"main":"dist/main.js","type":"module","types":"dist/main.d.ts","gitHead":"2ac2ea6d958fa5bc5b95d0a14179baa177de0762","scripts":{"build":"tsc","generate":"npx tsx cli.ts","build:3mf":"npx tsx cli.ts output.3mf","build:glb":"npx tsx cli.ts output.glb","build:png":"npx tsx cli.ts output.png","build:svg":"npx tsx cli.ts output.svg","typecheck":"tsc --noEmit","generate:svgs":"node scripts/generate-embedded-svgs.cjs","prepublishOnly":"npm run build"},"_npmUser":{"name":"loosetooth","email":"loosetooth@protonmail.com"},"_npmVersion":"11.6.2","description":"QR Code Generator for CADit - Generate customizable 3D QR codes","directories":{},"_nodeVersion":"24.11.1","dependencies":{"qrcode":"^1.5.4","@types/qrcode":"^1.5.5","@resvg/resvg-wasm":"^2.6.2","@cadit-app/svg-sampler":"^0.1.0","@cadit-app/script-params":"0.4.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.0.0","typescript":"^5.0.0","@types/node":"^25.0.3","@types/qrcode":"^1.5.5","@cadit-app/manifold-3d":"^3.3.2"},"peerDependencies":{"@cadit-app/manifold-3d":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/qr-code_0.5.0_1767797417169_0.6912804882105716","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@cadit-app/qr-code","version":"0.5.1","description":"QR Code Generator for CADit - Generate customizable 3D QR codes","type":"module","main":"dist/main.js","types":"dist/main.d.ts","dependencies":{"@cadit-app/script-params":"0.4.1","@cadit-app/svg-sampler":"^0.1.0","@resvg/resvg-wasm":"^2.6.2","@types/qrcode":"^1.5.5","qrcode":"^1.5.4"},"peerDependencies":{"@cadit-app/manifold-3d":"^3.0.0"},"devDependencies":{"@cadit-app/manifold-3d":"^3.3.2","@types/node":"^25.0.3","@types/qrcode":"^1.5.5","tsx":"^4.0.0","typescript":"^5.0.0"},"keywords":["cadit","qr-code","3d-printing","parametric"],"author":{"name":"CADit"},"license":"MIT","publishConfig":{"access":"public"},"scripts":{"typecheck":"tsc --noEmit","build":"tsc","generate":"npx tsx cli.ts","build:glb":"npx tsx cli.ts output.glb","build:3mf":"npx tsx cli.ts output.3mf","build:svg":"npx tsx cli.ts output.svg","build:png":"npx tsx cli.ts output.png","generate:svgs":"node scripts/generate-embedded-svgs.cjs"},"_id":"@cadit-app/qr-code@0.5.1","_integrity":"sha512-ePgq++MzcshtGBwNeGXYqNzqvhshQgtmA4ZcyZUM0r+2EuGcq4msMYttt/slzOpMyDqgAMurf7P+sgYdJpbQSw==","_resolved":"/tmp/74ffe5a5693740b38afac5a4a21e4634/cadit-app-qr-code-0.5.1.tgz","_from":"file:cadit-app-qr-code-0.5.1.tgz","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-ePgq++MzcshtGBwNeGXYqNzqvhshQgtmA4ZcyZUM0r+2EuGcq4msMYttt/slzOpMyDqgAMurf7P+sgYdJpbQSw==","shasum":"96d56edd380e497c8674b5d6e8a7313f4542ddb0","tarball":"https://registry.npmjs.org/@cadit-app/qr-code/-/qr-code-0.5.1.tgz","fileCount":95,"unpackedSize":451522,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQWISSKVPpZf100VYjQW5dUeoWEhSgSH0cTG1WtmOJWgIgJ4A17Q/zoFH4X9keELV5sJDB+81+fPzWWNFoNFvw/oE="}]},"_npmUser":{"name":"loosetooth","email":"loosetooth@protonmail.com"},"directories":{},"maintainers":[{"name":"cadit-publish-bot","email":"bart.moyaers@cookiecad.com"},{"name":"loosetooth","email":"loosetooth@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/qr-code_0.5.1_1767875244948_0.27031995713863366"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-07T14:50:17.046Z","modified":"2026-01-08T12:27:25.365Z","0.5.0":"2026-01-07T14:50:17.407Z","0.5.1":"2026-01-08T12:27:25.142Z"},"author":{"name":"CADit"},"license":"MIT","keywords":["cadit","qr-code","3d-printing","parametric"],"description":"QR Code Generator for CADit - Generate customizable 3D QR codes","maintainers":[{"name":"cadit-publish-bot","email":"bart.moyaers@cookiecad.com"},{"name":"loosetooth","email":"loosetooth@protonmail.com"}],"readme":"# @cadit-app/qr-code\n\nGenerate customizable 3D QR codes with various dot shapes, eye styles, and error correction levels.\n\n![QR Code Generator Preview](images/preview.png)\n\n## Features\n\n- **Multiple Dot Shapes**: Square, circle, star, heart, diamond, and many more\n- **Custom Eye Styles**: Choose from various inner and outer eye shapes\n- **Error Correction Levels**: L (7%), M (15%), Q (25%), H (30%)\n- **Adjustable Size**: Set the output size in millimeters\n- **Variable Extrusion Depth**: Control how thick the QR code is\n- **Multiple Output Formats**: GLB, 3MF (3D models), SVG, PNG (2D graphics)\n- **CLI Support**: Generate outputs directly from the command line\n\n## Usage\n\n### Open in CADit\n\nOpen this design in [CADit](https://app.cadit.app) to customize and generate your 3D QR code with a visual interface. You can also download SVG and PNG exports directly from the parameter menu.\n\n### Command Line\n\nYou can generate QR codes directly from the command line:\n\n```bash\n# Install dependencies\npnpm install\n\n# Generate a .glb file (3D model)\npnpm build:glb\n\n# Generate a .3mf file (for 3D printing)\npnpm build:3mf\n\n# Generate a .svg file (vector graphic)\npnpm build:svg\n\n# Generate a .png file (raster image)\npnpm build:png\n\n# Generate with custom parameters\nnpx tsx cli.ts my-qr.glb --text \"https://example.com\" --size 40 --depth 1\nnpx tsx cli.ts my-qr.svg --text \"https://example.com\" --dot-shape circle\nnpx tsx cli.ts my-qr.png --text \"Hello World\" --inner-eye circle\n```\n\n### CLI Options\n\n```\nUsage:\n  npx tsx cli.ts <output.[glb|3mf|svg|png]> [options]\n\nOutput Formats:\n  .glb   3D model (GLTF binary)\n  .3mf   3D model for printing\n  .svg   2D vector graphic\n  .png   2D raster image\n\nOptions:\n  -t, --text <string>          Text to encode (default: \"cookiecad.com\")\n  -s, --size <number>          Size in mm (default: 25)\n  -d, --depth <number>         Extrusion depth in mm (default: 0.5, 3D only)\n  --dot-shape <string>         Dot shape (default: \"square\")\n  --inner-eye <string>         Inner eye shape (default: \"square\")\n  --outer-eye <string>         Outer eye shape (default: \"outerEyeSquare\")\n  -e, --error-level <L|M|Q|H>  Error correction level (default: \"M\")\n  -h, --help                   Show help\n\nExamples:\n  npx tsx cli.ts qr-code.glb\n  npx tsx cli.ts qr-code.svg --text \"https://example.com\"\n  npx tsx cli.ts qr-code.png --dot-shape circle\n  npx tsx cli.ts qr-code.3mf --text \"Hello World\" --size 50 --depth 1\n```\n\n### Available Shapes\n\n**Dot Shapes**: `square`, `squarePadding`, `squareRounded`, `squareRoundedPadding`, `circle`, `circlePadding`, `star`, `octagon`, `plus`, `lines`, `linesFilled`, `xShape`, `xShapeInter`, `dotsInterVert`, `dotsInterHor`, and more.\n\n**Inner Eye Shapes**: `square`, `squareRounded`, `circle`, `star`, `octagon`, `plus`, `diamond`\n\n**Outer Eye Shapes**: `outerEyeSquare`, `outerEyeSquareRounded`, `outerEyeCircle`, `outerEyeOctagon`, `outerEyeSquareGrid`, `outerEyeCircleGrid`\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| text | text | \"cookiecad.com\" | Text to encode in the QR code |\n| size | number | 25 | Size in millimeters |\n| extrudeDepth | number | 0.5 | Extrusion depth in millimeters |\n| dotShape | buttonGrid | square | Shape of the QR code dots |\n| innerEyeShape | buttonGrid | square | Shape of the inner eye elements |\n| outerEyeShape | buttonGrid | outerEyeSquare | Shape of the outer eye frames |\n| errorCorrectionLevel | choice | M | Error correction level |\n\n## License\n\nMIT\n\n---\n\n<p align=\"center\">\n  <sub>Created with <a href=\"https://cadit.app\">CADit</a> - The open platform for code-based 3D models.</sub>\n</p>\n","readmeFilename":"README.md"}