{"_id":"@bedrockfrontiers/wix-cms-sdk","_rev":"9-488c77cd50e5a8ae0461e75e8b308ff0","name":"@bedrockfrontiers/wix-cms-sdk","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.0","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"e58648a7927504938edc6485abddeb2e5689f5da","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.0.tgz","fileCount":11,"integrity":"sha512-ODF1vteDNulfWA5+VdC1t6gnhvyJ5LEBXgNWe5Y6qy6wQXjiXyOHD+O+X6cNkMhpeFUmhicZOWWfzJSQfuNHIA==","signatures":[{"sig":"MEQCIDQArCMstAxNR36LyefeCoJBtYStKC0/NxZJeeA+S6NuAiAxdJb08WsRFIKMBwteeNQyYsMjn9vs4z5kvj3MWJ3Ykw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27621},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"1c9a416848d9ad9b322788359b67d9da77d43720","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.18.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.0_1740703209295_0.3543130228710709","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.1","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.1","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"f521487674582d757db1f06c273c0da445f9d170","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.1.tgz","fileCount":11,"integrity":"sha512-lLtuxyPLekrxifYtvhJfR92HOHUmpOf2ttgqYiDuRxbzyjCx+Cc1yQ4N0Mv+lTZP5HX59jBiVunoijK3DcxRvg==","signatures":[{"sig":"MEQCIFYGBrQ9PWt+h4Kp1OftdGLAWA0iiN0XCWnl6fhluGlXAiAYaBCVhsaytA9ZxVefMMoqgzbgrCRmVOJakFEKSzkSCg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41746},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"fe11c787693f66d3216283784c1329b0e2073606","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.18.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.1_1740704207552_0.006758734976579195","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.2","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.2","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"d1fd6a278329664815b499050418233f7a0e3db6","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.2.tgz","fileCount":11,"integrity":"sha512-KUrNl+dZNoR9xYsGHrAJEh1Xm8Q5qDEPdvoao3jvullLCrZHkKWt8d1wbLKQuBk+mNCf6eJRf49y6WuDEdIWYg==","signatures":[{"sig":"MEQCIGxG3Y8YjpGOKZ+pZCYN6dRUKG/YcYxHCM4fRrsreCM7AiAUoAbNsRo5suQobaaBTRKUnPMdjIXKmpMX+d/PttGrGQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41799},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"36c401dea2ffd46ed1e81b569e9503f199edb94a","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.18.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.2_1740704431152_0.0792619776706256","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.3","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.3","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"9f3de01f31c466865090612d20ff0af265bca75a","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.3.tgz","fileCount":11,"integrity":"sha512-GjMG8b8JI55qh8U5UIkMhrFyLDad0cut4SoFDEIeC28wHNUd8p1COmFDClSirsO0Fc5Zm6sxcssx/mIQ7UBDJw==","signatures":[{"sig":"MEUCIQC4MfTSSoKUCqz0ErpSoKGC78Z+P0E+DUSW5Ft7K3PR4wIgS6+zu52FYF+RjZAkfaNe1glHPNVJty8TBXM6hkxhZoI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42628},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"85e98fdddb0e814102cc7ecd408e18b643f809c9","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.18.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.3_1740704983084_0.19253637126638035","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.4","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.4","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"efcce2c5374b5a4feda58722f530a8dd8bcd2d4e","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.4.tgz","fileCount":11,"integrity":"sha512-J/O/jqzf4GiYZmF7qdwoTPRbxXGNBT9T+nTLyUJDeO+NdzN0/aT+dWNBOhr84sFHwTaYjfj0qD5ku7iffv0Y4A==","signatures":[{"sig":"MEQCIDrWwZsIaBpuCcJyI58agjh+JiokSRekXKDdOKobaMFDAiBKD6FfgTbUwuyq50uUuCnTZQ3g/k0wKJ5I6GBqp0zoAg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42712},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"5f8f0af32a0b78ef37e6945e506cfb87b447a8f9","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.18.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.4_1740705716329_0.9100780806994189","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.5","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.5","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"801897c208633792260bc52e58391cebfd477f22","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.5.tgz","fileCount":11,"integrity":"sha512-zDx9FeQzEdmeYWeL4nx3kRkPO4a0seGkALvZpL68x4NVXTEVVpO/WscPqS3uOvnFsITEHNRvbEe0k10qI4bS3w==","signatures":[{"sig":"MEYCIQCEWJCCK0DlSRwdy/U3z3T4STiwQh0tidUJ3bPvbL50ZgIhAI8UBW4fiMGhj37Z4rf4VEI+7IxokdiN7ssl+6vnQr1m","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":42730},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"3e74655e744e342c8e565ab658d0b014628787ea","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.18.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.5_1740705862656_0.2455326591436695","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.6","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.6","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"46bfb4f391b06ced738f54c3d5fe6b163bd47ac6","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.6.tgz","fileCount":14,"integrity":"sha512-hnbKPKygDdOPNJCk98w5J7Dnd7DoagA/mZsO4Ky9HEp8jzKFQuo5vbKtkLSD57gcBF07Ig7KFEL+D28oeNh7BQ==","signatures":[{"sig":"MEUCIQCJjq655CCX9AnADDpxAX6baMZuGsYgeQEg6z6fSN4O6gIgc9ghxyBPyKknos2IpB/txd4waPJrobPAjK4kVCbjfqg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56768},"main":"src/index.js","type":"module","engines":{"node":">= 20.11.0"},"gitHead":"4549e4091f7fc014cb2efe3aed951be583cf11c5","scripts":{"lint":"eslint src","build":"rollup -c","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.6_1762479930674_0.9685939371297403","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.7","keywords":[],"author":"","license":"ISC","_id":"@bedrockfrontiers/wix-cms-sdk@1.0.7","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"dist":{"shasum":"aefca27eac37a61abc1ce5261f240fa5ce386b37","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.7.tgz","fileCount":18,"integrity":"sha512-jWP56lzH8nUFRMCfK5f4yDwTTlxTBDNI1o/tqhFz3EO9H7XPw0Ow3HnZhkFLk2cbqIpK0/fTKUqWXrcAyIem+A==","signatures":[{"sig":"MEUCICeK4tmmlDPlzHqh/5ozO6ujfPWbSbjW+ZAvVQ2ZNis0AiEAhxZANTnZdMU27PB8xZb7ThEuV6nsuPnTdVsr9ZcT17c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":165995},"main":"src/index.js","type":"module","types":"types/index.d.ts","engines":{"node":">= 20.11.0"},"gitHead":"b90854ba245a3fb52e5c04cc3b6471c1ff540199","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"repository":{"url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","directories":{},"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.21.0","globals":"^16.0.0","@eslint/js":"^9.21.0"},"_npmOperationalInternal":{"tmp":"tmp/wix-cms-sdk_1.0.7_1762494222704_0.8084827067351072","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@bedrockfrontiers/wix-cms-sdk","version":"1.0.8","description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","main":"src/index.js","types":"types/index.d.ts","engines":{"node":">= 18.0"},"type":"module","scripts":{"lint":"eslint src","lint:fix":"eslint src --fix"},"repository":{"type":"git","url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","devDependencies":{"@eslint/js":"^9.21.0","eslint":"^9.21.0","globals":"^16.0.0"},"publishConfig":{"access":"public"},"_id":"@bedrockfrontiers/wix-cms-sdk@1.0.8","gitHead":"0522fa65590f4c1044090206ef4ab6fa9ec8462b","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-RklIasOUg6B6ABV88vhHz4g/OF6X+nJZ2ck5n6TVml52khcieIbCkQbGBxFQiJxUSAXqZm/bazmB7QggzHzefQ==","shasum":"82e6106319b64469a4d7c54f881bc64f18d655b4","tarball":"https://registry.npmjs.org/@bedrockfrontiers/wix-cms-sdk/-/wix-cms-sdk-1.0.8.tgz","fileCount":24,"unpackedSize":176336,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG5pYH2dJP6eoL5BbruIULyZjUdGxnHUUHwvqbdM7ZpHAiEAoWLKUja8xOX9vTkFSJUImwl8q0cBJct/2ewkKg0inDo="}]},"_npmUser":{"name":"uesleipaim","email":"uesleibros@gmail.com"},"directories":{},"maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wix-cms-sdk_1.0.8_1762559141417_0.33119192755550464"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-28T00:40:09.221Z","modified":"2025-11-07T23:45:41.876Z","1.0.0":"2025-02-28T00:40:09.481Z","1.0.1":"2025-02-28T00:56:47.767Z","1.0.2":"2025-02-28T01:00:31.373Z","1.0.3":"2025-02-28T01:09:43.342Z","1.0.4":"2025-02-28T01:21:56.510Z","1.0.5":"2025-02-28T01:24:22.916Z","1.0.6":"2025-11-07T01:45:30.863Z","1.0.7":"2025-11-07T05:43:42.915Z","1.0.8":"2025-11-07T23:45:41.642Z"},"bugs":{"url":"https://github.com/bedrockfrontiers/wix-cms-sdk/issues"},"license":"ISC","homepage":"https://github.com/bedrockfrontiers/wix-cms-sdk#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bedrockfrontiers/wix-cms-sdk.git"},"description":"A lightweight and modular SDK for interacting with the Wix Headless CMS API. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.","maintainers":[{"name":"uesleipaim","email":"uesleibros@gmail.com"}],"readme":"<div align=\"center\">\n\n![Wix CMS SDK Logo](/wix-cms-sdk.png)\n\n[![npm](https://img.shields.io/npm/v/@bedrockfrontiers/wix-cms-sdk)](https://www.npmjs.com/package/@bedrockfrontiers/wix-cms-sdk)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/license/apache-2-0)\n[![Node.js](https://img.shields.io/badge/Node-%3E%3D%2018.0-brightgreen.svg)](https://nodejs.org/)\n[![Downloads (monthly)](https://img.shields.io/npm/dm/@bedrockfrontiers/wix-cms-sdk)](https://www.npmjs.com/package/@bedrockfrontiers/wix-cms-sdk)\n[![Bundle Size (min+gz)](https://img.shields.io/bundlephobia/minzip/@bedrockfrontiers/wix-cms-sdk)](https://bundlephobia.com/package/@bedrockfrontiers/wix-cms-sdk)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/bedrockfrontiers/wix-cms-sdk/pulls)\n[![GitHub stars](https://img.shields.io/github/stars/bedrockfrontiers/wix-cms-sdk?style=social)](https://github.com/bedrockfrontiers/wix-cms-sdk/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/bedrockfrontiers/wix-cms-sdk?style=social)](https://github.com/bedrockfrontiers/wix-cms-sdk/network/members)\n\n</div>\n\n## About\n\nA **lightweight** and modular SDK for interacting with the **Wix Headless CMS API**. This library simplifies content management operations such as retrieving, creating, updating, and deleting CMS items, making it easier to integrate Wix CMS into your projects.\n\n## Features\n\n- **Fluent Query Builder**: Easily construct complex queries with a chainable API.\n- **CRUD Operations**: Perform create, read, update, and delete operations on CMS collections.\n- **Error Handling**: Built-in error handling and logging for robust integration.\n- **Modular Design**: Lightweight and easy to integrate into any project.\n- **Comprehensive Documentation**: Detailed docstrings and examples for all methods.\n\n## Installation\n\nInstall the SDK using npm:\n\n```bash\nnpm install @bedrockfrontiers/wix-cms-sdk\n```\n\n## Creating the HTTP Functions on Your Wix Site\n\nBefore using the SDK, you need to set up an HTTP endpoint inside your Wix site that bridges requests between your external application and the Wix backend.\n\nTo allow your external app (Node.js, backend, or site) to communicate securely with the **Wix Headless CMS**, you need to create a backend file on your Wix site.  \nThis file acts as a **bridge (proxy)** between the SDK and your Wix CMS collections through the `wix-data` API.\n\n### 1. Enable Developer Mode\n\nIn your Wix Editor:\n\n1. Go to the **Dev Mode** tab.\n2. Click **Turn on Dev Mode** — this will enable the backend file system.\n3. After enabling, you will see a new folder called `backend/` in your site files panel.\n\n### 2. Create a backend file\n\nCreate a new backend file in your Wix project at:\n\n```bash\nbackend/http-functions.js\n```\n\n> This file will handle HTTP requests from your external application (the one using `wix-cms-sdk`).\n\n### 3. Copy the server-side code\n\nCopy the HTTP handler code provided in this repository (see [`http-functions.js`](/http-functions.js)) into the file you just created on Wix.\nThis code defines HTTP endpoints that the SDK will call when performing CMS operations.\n\n### 4. Configure your secret token\n\nFind the following line in the code:\n```js\nconst SECRET_TOKEN = \"YOUR_SECRET_TOKEN_HERE\";\n```\n\nReplace \"YOUR_SECRET_TOKEN_HERE\" with a strong, unique secret token of your choice.\n\n> This ensures only authorized requests from your application can access your Wix CMS.\n\n> [!WARNING]\n> **Security Notice:**\n> - Never commit this token to version control (e.g., GitHub).\n> - Do not include it in client-side JavaScript or anywhere it could be exposed publicly.\n> - Store it securely (e.g., in environment variables or a server-side configuration file).\n> - Treat it with the same level of security as an API key or database password.\n> - Unauthorized access to this token could allow third parties to read, modify, or delete your CMS data.\n\n### 5. Publish your site\n\nAfter saving the http-functions.js file:\n\n- Click **Publish Site** in Wix.\n- Your new HTTP endpoints will automatically become available under your site’s public URL (e.g., `https://yourusername.wixsite.com/yoursite/_functions/`).\n\n### 6. How the connection works\n\nThe SDK (`wix-cms-sdk`) sends JSON requests to these endpoints.\n\nExample payload for querying items:\n\n```json\n{\n  \"token\": \"YOUR_SECRET_TOKEN_HERE\",\n  \"collection\": \"Posts\",\n  \"conditions\": [\n    { \"operator\": \"eq\", \"field\": \"status\", \"value\": \"published\" },\n    { \"operator\": \"limit\", \"value\": 10 }\n  ]\n}\n```\n\nEach exported function (e.g. `post_query`, `post_insertQuery`, etc.) handles a different CMS operation through the Wix `wix-data` API:\n\n- `post_query` → Performs queries using conditions and filters.\n- `post_insertQuery` → Inserts one or multiple items.\n- `post_saveQuery` → Saves (inserts or updates) one or more items.\n- `post_updateQuery` → Updates existing items.\n- `post_removeQuery` → Removes one or more items.\n- `post_truncateQuery` → Clears all items in a collection.\n\nAll responses are returned as JSON objects with the structure:\n\n```jsonc\n{\n  \"status\": \"success\",\n  \"result\": { /* ... */ }\n}\n```\n\nor, in case of error:\n\n```json\n{\n  \"status\": \"failed\",\n  \"error\": \"unauthorized\"\n}\n```\n\n## Using the SDK\n\nAfter setting up your Wix site backend, you can connect and interact with your CMS directly from Node.js or any JavaScript environment.\n\n### 1. Initialize\n\n```js\nimport { WixCMS } from \"@bedrockfrontiers/wix-cms-sdk\";\n\nconst cms = new WixCMS(\n  \"username\",      // Wix Username\n  \"my-site-name\",  // Site ID or name\n  \"my-secret-token\" // The same token configured in your http-functions.js\n); // Reference URL → https://username.wixsite.com/my-site-name\n```\n\n### 2. Querying Data\n\nThe SDK provides a **fluent query builder** for constructing complex queries.\n\n```js\nconst result = await cms\n  .query(\"Posts\")\n  .eq(\"status\", \"published\")\n  .gt(\"views\", 100)\n  .ascending(\"title\")\n  .limit(10)\n  .find();\n\nconsole.log(result);\n```\n\n### 3. Inserting a New Item\n\n```js\nawait cms\n  .query(\"Posts\")\n  .insert({\n    title: \"New Article\",\n    author: \"Jane Doe\",\n    status: \"published\",\n  });\n```\n\n### 4. Updating an Existing Item\n\n```js\nawait cms\n  .query(\"Posts\")\n  .update({\n    _id: \"123abc\",\n    title: \"Updated Title\",\n  });\n```\n\n### 5. Removing an Item\n\n```js\nawait cms\n  .query(\"Posts\")\n  .remove(\"123abc\");\n```\n\n### 6. Truncating a Collection\n\n```js\nawait cms\n  .query(\"Logs\")\n  .truncate();\n```\n\n## Example in One Go\n\n```js\nimport { WixCMS } from \"@bedrockfrontiers/wix-cms-sdk\";\n\nconst cms = new WixCMS(\"user123\", \"my-site\", \"super-secure-token\");\n\n// Querying data\nconst posts = await cms.query(\"Posts\")\n  .eq(\"status\", \"published\")\n  .limit(5)\n  .find();\n\nconsole.log(posts);\n\n// Inserting a new record\nawait cms.query(\"Posts\").insert({\n  title: \"New Post\",\n  author: \"John Doe\",\n});\n```\n\n## Security Recommendations\n\n- Always use **HTTPS** when sending requests.\n- Keep your secret token private — never expose it in client-side code.\n- Regenerate tokens periodically.\n- Optionally, restrict requests to known IPs or origins in your `http-functions.js`.\n\n## Contributing\n\nContributions are welcome and greatly appreciated.  \nIf you’d like to report a bug, suggest an enhancement, or submit a pull request, please first review our [Contribution Guidelines](/CONTRIBUTING.md) and [Code of Conduct](/CODE_OF_CONDUCT.md).\n\nWhen submitting a pull request:\n- Make sure your code follows the established project style and linting rules.\n- Include clear commit messages and concise descriptions of your changes.\n- Update documentation or examples when relevant.\n\nBy contributing to this repository, you agree to comply with the [Code of Conduct](/CODE_OF_CONDUCT.md).\n","readmeFilename":"README.md"}