{"_id":"@alt-javascript/camel-lite-component-nosql","_rev":"3-f1a5f7f078775c5964cc0cf11ce5e814","name":"@alt-javascript/camel-lite-component-nosql","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.2":{"name":"@alt-javascript/camel-lite-component-nosql","version":"1.0.2","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","nosql","mongodb","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-nosql@1.0.2","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"},{"name":"Apache Camel — design inspiration and pattern source"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"802ee66c0981c9678c006560dc492c8f0314561d","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-nosql/-/camel-lite-component-nosql-1.0.2.tgz","fileCount":8,"integrity":"sha512-/ETgxb+qXHmC/IzOLDlQX1ew+tpaLg5gXdGQY8+rD2WQsf2PNNZgblQJCMNADB7WHDhTVjsTKGnBMbISFDDkgQ==","signatures":[{"sig":"MEUCIQDoAqMCeJ8xBfFit7SQi1MePocIrZoAcBQ74hjrg+Vv6gIgJzaaq+vkK/bdAWaVENfBTM50pYCq9HL89eSrd5gO+IM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-nosql@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31415},"type":"module","exports":{".":"./src/index.js"},"gitHead":"9f948b9f02d85c9f593229684c475cd209369f2c","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/jsnosqlc-core":"^1.1.1","@alt-javascript/camel-lite-core":"1.0.2","@alt-javascript/jsnosqlc-memory":"^1.1.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-nosql_1.0.2_1774595618876_0.9182861096135415","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@alt-javascript/camel-lite-component-nosql","version":"1.1.0","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","nosql","mongodb","component"],"author":{"name":"Craig Parravicini"},"_id":"@alt-javascript/camel-lite-component-nosql@1.1.0","maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"contributors":[{"url":"Anthropic","name":"Claude"}],"homepage":"https://github.com/alt-javascript/camel-lite#readme","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"dist":{"shasum":"922f9f1a2f43300b72f5b5f51fa3e10b62246205","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-nosql/-/camel-lite-component-nosql-1.1.0.tgz","fileCount":8,"integrity":"sha512-yligiUxw/9MWvsTi6oNhfEiW2e+Lzx4DWNNOamBcO9pM/Jj82g1p8fgf7LqJYufxA1rznqHTrePymrCWL21cDg==","signatures":[{"sig":"MEUCIAzMmEsGQWzj7RsYSHTxpf5Cla/o65k9xSQt3AnbgotwAiEAwsvzJPw+/7OiwxHdt2cWctdDWF605yIyj8kyJnFPNIY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-nosql@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31353},"type":"module","exports":{".":"./src/index.js"},"gitHead":"c227a03632d4b1e2f93b4562c7e74f52ba87d340","scripts":{"test":"node --test"},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"repository":{"url":"git+https://github.com/alt-javascript/camel-lite.git","type":"git"},"_npmVersion":"11.9.0","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@alt-javascript/common":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/logger":"^3.0.7","@alt-javascript/jsnosqlc-core":"^1.1.1","@alt-javascript/camel-lite-core":"1.1.0","@alt-javascript/jsnosqlc-memory":"^1.1.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/camel-lite-component-nosql_1.1.0_1774763520189_0.20873380549818843","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@alt-javascript/camel-lite-component-nosql","version":"1.1.1","type":"module","exports":{".":"./src/index.js"},"dependencies":{"@alt-javascript/jsnosqlc-core":"^1.1.1","@alt-javascript/jsnosqlc-memory":"^1.1.1","@alt-javascript/logger":"^3.0.7","@alt-javascript/config":"^3.0.7","@alt-javascript/common":"^3.0.7","@alt-javascript/camel-lite-core":"1.1.1"},"scripts":{"test":"node --test"},"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"author":{"name":"Craig Parravicini"},"contributors":[{"name":"Claude","url":"Anthropic"}],"keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","nosql","mongodb","component"],"publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"},"gitHead":"ff8501eed381d38ac20f56aea721274466d64212","_id":"@alt-javascript/camel-lite-component-nosql@1.1.1","description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-NOriFVaddj8KIwJSnEFqWQShX/65y5C4Dgx9EcVK/7R6zO1hgEPnUtF87bVMsDC768MUYFsy2sVj7xYlndLIhw==","shasum":"0c0c32bdb1d5d2da072c30e4529793b896dadd04","tarball":"https://registry.npmjs.org/@alt-javascript/camel-lite-component-nosql/-/camel-lite-component-nosql-1.1.1.tgz","fileCount":8,"unpackedSize":31353,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alt-javascript%2fcamel-lite-component-nosql@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF+sYlHiWsH3ZGMOnJMDChd7iF7tp5/J/M7BHgiTPGrwAiB2XPLJI3iGihNl5F7vQlqet3bvya8f7llRm9VTpRkTqQ=="}]},"_npmUser":{"name":"craigparra","email":"craigparra@gmail.com"},"directories":{},"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/camel-lite-component-nosql_1.1.1_1774764473225_0.01623204108350107"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-27T07:13:38.809Z","modified":"2026-03-29T06:07:53.695Z","1.0.2":"2026-03-27T07:13:39.047Z","1.1.0":"2026-03-29T05:52:00.340Z","1.1.1":"2026-03-29T06:07:53.380Z"},"bugs":{"url":"https://github.com/alt-javascript/camel-lite/issues"},"author":{"name":"Craig Parravicini"},"homepage":"https://github.com/alt-javascript/camel-lite#readme","keywords":["alt-javascript","camel","camel-lite","eai","eip","integration","nosql","mongodb","component"],"repository":{"type":"git","url":"git+https://github.com/alt-javascript/camel-lite.git"},"description":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)","contributors":[{"name":"Claude","url":"Anthropic"}],"maintainers":[{"name":"craigparra","email":"craigparra@gmail.com"}],"readme":"[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## What\n\nNoSQL collection operations via [`@alt-javascript/jsnosqlc`](https://www.npmjs.com/package/@alt-javascript/jsnosqlc). Supports insert, find, update, delete, and count against named collections.\n\n## Install\n\n```sh\nnpm install camel-lite-component-nosql @alt-javascript/jsnosqlc\n```\n\n## URI Syntax\n\n```\nnosql:collectionName[?url=jsnosqlc:memory:&operation=insert]\n```\n\n| Parameter    | Default          | Description |\n|--------------|------------------|-------------|\n| `url`        | *(required)*     | jsnosqlc connection URL (e.g. `jsnosqlc:memory:` or a file path). |\n| `operation`  | `insert`         | Collection operation: `insert`, `find`, `update`, `delete`, or `count`. |\n\n## Usage\n\n```js\nimport { CamelContext } from 'camel-lite-core';\nimport { NosqlComponent } from 'camel-lite-component-nosql';\n\nconst context = new CamelContext();\ncontext.addComponent('nosql', new NosqlComponent());\n\ncontext.addRoutes({\n  configure(ctx) {\n    // Insert exchange body as a document\n    ctx.from('direct:storeEvent')\n      .to('nosql:events?url=jsnosqlc:memory:&operation=insert');\n\n    // Find documents — exchange body used as the query filter\n    ctx.from('direct:queryEvents')\n      .to('nosql:events?url=jsnosqlc:memory:&operation=find');\n  }\n});\n\nawait context.start();\n\nconst template = context.createProducerTemplate();\n\n// Insert\nawait template.sendBody('direct:storeEvent', { type: 'login', userId: 7 });\n\n// Find — pass a filter object as body\nconst exchange = await template.send('direct:queryEvents', ex => {\n  ex.in.body = { type: 'login' };\n});\nconsole.log('Found:', exchange.in.body);\n\nawait context.stop();\n```\n\n## See Also\n\n[camel-lite — root README](../../README.md)\n","readmeFilename":"README.md"}