{"_id":"@openai/guardrails","_rev":"22-9a91f3a7ff831db25411a00c8330a4b9","name":"@openai/guardrails","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@openai/guardrails","version":"0.1.0","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.0","maintainers":[{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"f6755b74b205f62ef542489d14909731e438cf35","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.0.tgz","fileCount":231,"integrity":"sha512-HRZpKluzXUJNrmuvCJLIJDZgOdyh7ne1TEkb02ZAnV87h/N7UsiwjcmeyBposj/kMyT7oBnVRXUfxA4PLxrJVQ==","signatures":[{"sig":"MEUCIQCN4Cm/yvOJoVIYDhCvrcRPhVeAGDKIXeVBL5KQWMwhqgIgAkM6I3HlA3atWKIVfbPiCbhipgoTnGATpyy/Bk9pHcI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":636393},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"a20705c1a4d76ad74b91e33d57a0f15d40e05cb6","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"seratch-openai","email":"seratch@openai.com"},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"10.9.3","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.18.0","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.0_1759765929940_0.45910205468491316","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@openai/guardrails","version":"0.1.1","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.1","maintainers":[{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"83e673b4466311b6ad4a8bc8f3ddd7666c4a5633","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.1.tgz","fileCount":235,"integrity":"sha512-mwzbgEH1GPGC24LKJpD0DZb8WcBQ9Y8hE2mAsJn1s4ihk52lIN6hZ5njnnkNnpiApON/nwJfHIRluphyjSA1NQ==","signatures":[{"sig":"MEUCIQCxNnV/sg/iN14zvb1OnhufG4JILLhjfEUF6vVCAD6cNwIgKMmJTUatIdJVD9aZr+V/Sllue/RGRGwry6Mi+I/HhUM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":665195},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"dfc9ee05a668f04e7cb894ffab791571df7e84fa","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"seratch-openai","email":"seratch@openai.com"},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.18.0","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^6.0.0","@typescript-eslint/eslint-plugin":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.1_1760663422553_0.5290601374413901","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@openai/guardrails","version":"0.1.2","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.2","maintainers":[{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"cf65979b4dc575d3813cec47504af46b23438710","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.2.tgz","fileCount":239,"integrity":"sha512-iBEYm2xE9hkXPTWHaYms3WNjTrNa7SITF/LAEGRs2OXMZ6Fje8y+r3JYv5hSQs1ySkQu2Boxdy9lw7Rpczr5hQ==","signatures":[{"sig":"MEUCIQDzErN5uptasqPOI0zprXDk1GqmGLv8nBKKFRBVNm+MQAIgPaNt2RYOyffwmBhRqZImXVXNMeruz0abLEfhXs9nXZQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":694190},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"6d493077f5db7cf2662391d4833d99a13692afdb","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.2_1761167817808_0.8849311197545529","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@openai/guardrails","version":"0.1.3","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.3","maintainers":[{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"6668de574b10d0fa3d1d2459d4297dfa3997c215","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.3.tgz","fileCount":243,"integrity":"sha512-BWQVP4cgKzgkycXF2FEddqSdv6YNmlGlbCMnPln4puH+mZvxQq1Muh0z/x8fYxintv0M1KqjBIkko6GnIcMuyQ==","signatures":[{"sig":"MEQCIE6BDeOCV94FVY0bYkAMYtWUGLeGFn6tTTXLjHUijPe4AiAk7BPI2RvkwAxCKKXz26hu3zfATWn19dwTcdzdtuYSqQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":723634},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"0f91e41fd0b147cde04585970d6468b10275c309","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.3_1761944399987_0.15704831134778496","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@openai/guardrails","version":"0.1.4","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.4","maintainers":[{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"662437c885a71e205067b3dc43e500538f70ab54","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.4.tgz","fileCount":243,"integrity":"sha512-rXhCsEUwjtwnT1Ixi+iJkEcfiatUP5piAonE1AsKONNGbVw3dwNUMEm62/QGuTFcJlKX0e5t6QzldZ+dvqNZ+A==","signatures":[{"sig":"MEUCIQCsPxgP6hN7sSSK31F4nzDtjUlWdtFBAR3qj/WXDt/BPAIgbM/1dqDFO4Elx7BW9ZHb7iFYijgcFkG1vGrM8yOaRrY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":707007},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"f5d877e54dc8742602526a5eb8d6860e6724d5b1","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.4_1762282334184_0.3692799288818809","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@openai/guardrails","version":"0.1.6","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.6","maintainers":[{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"37a6ac657755eade5ed8c3a5e537fe8e9fb32f4a","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.6.tgz","fileCount":243,"integrity":"sha512-1k5JF8YPcvejtgsOQbRqIqWIWbTZuK4DXqz/IDscpo4q81VqVxHkoBOMa5dNCkhATphOvHTUADy4P1Wkjsz+WQ==","signatures":[{"sig":"MEQCIA78mL2Ctq2NH2ORUq4bptB0qEBzzkZBBL1opmqv61kdAiBakskF+OoBo49o1wlE1RneW8ieEV3djM8+pksMdQH/Gg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":748366},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"df73f41fc88a02de76a2a6ddfe1a4d8c722fc847","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.2","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.6_1762999707688_0.15932015446985281","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@openai/guardrails","version":"0.1.7","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.1.7","maintainers":[{"name":"tylersmith-openai","email":"tylersmith@openai.com"},{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"6f7025ee6ad0df9770368e5fdbffcacea759d34b","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.1.7.tgz","fileCount":259,"integrity":"sha512-gXBbcSNIxXZ66vTPDR899RUUb36pg8sapLliybwfw03MNjl370r4OYJcVD1rm1zbuq9OFnVTay3OxqQG/Ri7Nw==","signatures":[{"sig":"MEQCIHgTN1u4VmKrx79y1nifp6VGl+hd6eh1hbgCkwwBVc/nAiBUXTrL7Ow/aPI5UEd/Ek4Ey68mMP+QhzbtDHcFee8pbw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":904839},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"d77409ca24eb940a757e2e9b5e159dac308e6956","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.3","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.1.7_1763749367146_0.9346036949049437","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@openai/guardrails","version":"0.2.0","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.2.0","maintainers":[{"name":"tylersmith-openai","email":"tylersmith@openai.com"},{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"525343b86cf094774e4af7cd84ae3dc69415e7f6","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.2.0.tgz","fileCount":259,"integrity":"sha512-EkhPZuQZx1yLrlDAa6GYv5GkHo66rioIiISQJ179avNKg0EZ/pSWzgw8Y7SBI3OWmsZ6p5gkjZLCsby+/GmhrA==","signatures":[{"sig":"MEYCIQC9wrNm0JnhVr1o+UA2/H+LBaUcVPiZXH6pvzKOlVcY4wIhANZq+ObBPTAVkyYbtX4MKcW+e4JxQxB1ZzJQSyAh5UM7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":933654},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"a8e8ace55601a9e3f383891862de6100751d2e8c","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.6.4","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.2.0_1764721757550_0.9570973601681916","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@openai/guardrails","version":"0.2.1","keywords":["guardrails","ai","safety","validation","typescript","openai"],"author":{"name":"OpenAI"},"license":"MIT","_id":"@openai/guardrails@0.2.1","maintainers":[{"name":"tylersmith-openai","email":"tylersmith@openai.com"},{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"},{"name":"gabor-openai","email":"gabor@openai.com"}],"homepage":"https://openai.github.io/openai-guardrails-js/","bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"bin":{"guardrails":"dist/cli.js"},"dist":{"shasum":"1aa48670a72113da2c39da84c12bedd73caba5c1","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.2.1.tgz","fileCount":259,"integrity":"sha512-X79Ctz3/LDIzrTaZUPif1uarW9KypPTVPH6KBjKUjr3DFL0Yh2fM5Ss9R1PB3kQoV3dRJP+SE39EKuydtq7vGg==","signatures":[{"sig":"MEYCIQDHs5rXNoxFTirrr/jp/hDGocGFXyWWB37J1xLq/Uh5YgIhAKk2G+0J3m47zNa7AT+ua5r/3SUKR2jpQjoxTCbZH1Au","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":951048},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"40c11de5a47c2b68dcde9a6d6726ee4c5272f618","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"eslint src --ext .ts","test":"vitest","build":"tsc","clean":"rimraf dist","format":"prettier --write \"**/*.{cjs,cts,js,json,mjs,mts,ts}\"","lint:fix":"eslint src --ext .ts --fix","test:run":"vitest run","test:watch":"vitest --watch","eval:example":"node dist/examples/run-eval.js","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.7.0","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"_nodeVersion":"22.21.1","dependencies":{"zod":"^3.22.0","openai":"^4.0.0","@openai/agents":"^0.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.0.0","rimraf":"^5.0.0","vitest":"^1.0.0","prettier":"^3.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","@vitest/coverage-v8":"^1.6.0","@typescript-eslint/parser":"^8.46.1","@typescript-eslint/eslint-plugin":"^8.46.1"},"_npmOperationalInternal":{"tmp":"tmp/guardrails_0.2.1_1765842766528_0.9434991572422147","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"_id":"@openai/guardrails@0.3.0","bin":{"guardrails":"dist/cli.js"},"bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"dist":{"shasum":"d61c03912f338a4ed378832ff393b88d7c543ddb","tarball":"https://registry.npmjs.org/@openai/guardrails/-/guardrails-0.3.0.tgz","fileCount":263,"integrity":"sha512-EsQq0Vnc9420mj52/iTumI4/OFLl5MZLE9+GcoDmzsgXR5Vh3qACwj8Bb2WRnhFnMTUvOTtKq3pQEe/SUh9s+A==","signatures":[{"sig":"MEUCIBVO0P1MDY9Aq4KhiY/KppFy8kkvoigCC1QVJp4K5KtRAiEA7wWJOObB0QFpVDYH5UXSutNvcvBNbxVqba08OPUjr6I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDEguSvEu1TnByWzLnPhq9gCWFID8f4k3MVp0C4BF085AIhAMYpvrO12qgctSrZGAlchJq7naPYJ2YqSqyqXaM+lNyM"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@openai%2fguardrails@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":964816},"main":"dist/index.js","name":"@openai/guardrails","types":"dist/index.d.ts","author":{"name":"OpenAI"},"engines":{"node":"^22.13.0 || >=24.0.0"},"gitHead":"09ebad8d4d2115894b41e11b62ebd71c041c9f87","license":"MIT","scripts":{"cli":"node dist/cli.js","dev":"tsc --watch","eval":"node dist/cli.js eval","lint":"biome check --error-on-warnings .","test":"vitest","build":"tsc","clean":"rimraf dist","format":"biome format --write .","release":"changeset publish","docs:dev":"vitepress dev docs","lint:fix":"biome check --write --error-on-warnings .","test:run":"vitest run","changeset":"changeset","docs:build":"vitepress build docs","docs:check":"biome check --error-on-warnings docs/.vitepress/config.mts docs/.vitepress/theme/index.ts scripts/docs.test.mjs && npm run docs:build && node --test scripts/docs.test.mjs","test:watch":"vitest --watch","docs:preview":"vitepress preview docs","eval:example":"node dist/examples/run-eval.js","format:check":"biome format .","prepublishOnly":"npm run clean && npm run build","version-packages":"changeset version && npm install --package-lock-only --ignore-scripts"},"version":"0.3.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f8dbbb66-5bba-4941-a929-c89dc7a9b391"}},"homepage":"https://openai.github.io/openai-guardrails-js/","keywords":["guardrails","ai","safety","validation","typescript","openai"],"overrides":{"vitepress":{"vite":"^6.4.3"},"@modelcontextprotocol/sdk":{"@hono/node-server":"^1.19.17"}},"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"_npmVersion":"11.19.0","description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","directories":{},"maintainers":[{"name":"openai-publisher","email":"oai-package-publish-npm@openai.com"},{"name":"tino-openai","email":"tino@openai.com"},{"name":"dylan-hurd-openai","email":"dylan.hurd@openai.com"},{"name":"moustafa-openai","email":"moustafa@openai.com"},{"name":"tylersmith-openai","email":"tylersmith@openai.com"},{"name":"mdangelo-openai","email":"mdangelo@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"jbeckwith-oai","email":"jbeckwith@openai.com"},{"name":"wadih-openai","email":"wadih@openai.com"},{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"}],"_nodeVersion":"24.20.0","dependencies":{"zod":"^4.5.4","openai":"^7.9.0","@openai/agents":"^0.17.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^8.2.2","rimraf":"^6.1.3","vitest":"^4.1.11","vitepress":"^1.6.4","typescript":"^7.0.2","@types/node":"^26.4.1","@biomejs/biome":"2.5.11","@changesets/cli":"^2.31.1","@vitest/coverage-v8":"^4.1.11"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/guardrails_0.3.0_1789075900132_0.5369802890496107"}}},"time":{"created":"2025-10-06T15:52:09.836Z","modified":"2026-09-10T21:31:40.871Z","0.1.0":"2025-10-06T15:52:10.152Z","0.1.1":"2025-10-17T01:10:22.845Z","0.1.2":"2025-10-22T21:16:58.059Z","0.1.3":"2025-10-31T21:00:00.197Z","0.1.4":"2025-11-04T18:52:14.426Z","0.1.6":"2025-11-13T02:08:27.889Z","0.1.7":"2025-11-21T18:22:47.365Z","0.2.0":"2025-12-03T00:29:17.824Z","0.2.1":"2025-12-15T23:52:46.750Z","0.3.0":"2026-09-10T21:31:40.290Z"},"bugs":{"url":"https://github.com/openai/openai-guardrails-js/issues"},"author":{"name":"OpenAI"},"license":"MIT","homepage":"https://openai.github.io/openai-guardrails-js/","keywords":["guardrails","ai","safety","validation","typescript","openai"],"repository":{"url":"git+https://github.com/openai/openai-guardrails-js.git","type":"git"},"description":"OpenAI Guardrails: A TypeScript framework for building safe and reliable AI systems","maintainers":[{"name":"openai-publisher","email":"oai-package-publish-npm@openai.com"},{"name":"tino-openai","email":"tino@openai.com"},{"name":"dylan-hurd-openai","email":"dylan.hurd@openai.com"},{"name":"moustafa-openai","email":"moustafa@openai.com"},{"name":"tylersmith-openai","email":"tylersmith@openai.com"},{"name":"mdangelo-openai","email":"mdangelo@openai.com"},{"name":"victor-openai","email":"victor@openai.com"},{"name":"jbeckwith-oai","email":"jbeckwith@openai.com"},{"name":"wadih-openai","email":"wadih@openai.com"},{"name":"atty-openai","email":"atty@openai.com"},{"name":"tibo-openai","email":"tibo@openai.com"},{"name":"dkundel-openai","email":"dkundel@openai.com"},{"name":"mbolin-openai","email":"mbolin@openai.com"},{"name":"fouad-openai","email":"fouad@openai.com"},{"name":"easong-openai","email":"easong@openai.com"},{"name":"aibrahim-openai","email":"ahmedibrhm32@gmail.com"},{"name":"apcha-oai","email":"apcha@openai.com"},{"name":"seratch-openai","email":"seratch@openai.com"}],"readme":"# OpenAI Guardrails: TypeScript (Preview)\n\nAdd configurable input and output checks to your OpenAI applications. Guardrails wraps the OpenAI JavaScript/TypeScript client and supports `responses.create()` and `chat.completions.create()`, with integrations for Azure OpenAI and the Agents SDK.\n\n[Documentation](https://openai.github.io/openai-guardrails-js/) · [Configuration wizard](https://guardrails.openai.com/) · [Examples](examples/) · [Migration guide](docs/sdk_migration.md)\n\n[![OpenAI Guardrails configuration screenshot](docs/public/assets/images/guardrails-js-config-screenshot-100pct-q70.webp)](https://guardrails.openai.com/)\n\n## Quickstart\n\nRequires Node.js 22.13+ on the 22.x release line, or Node.js 24+. Set `OPENAI_API_KEY` in your environment, then install:\n\n```bash\nnpm install @openai/guardrails\n```\n\nSave this as `guardrails-example.ts`. It checks generated text for the selected moderation categories before returning it:\n\n```typescript\nimport { GuardrailsOpenAI, GuardrailTripwireTriggered } from '@openai/guardrails';\n\nasync function main() {\n  const client = await GuardrailsOpenAI.create({\n    version: 1,\n    output: {\n      version: 1,\n      guardrails: [{ name: 'Moderation', config: { categories: ['hate', 'violence'] } }],\n    },\n  });\n\n  try {\n    const response = await client.responses.create({\n      model: 'gpt-5',\n      input: 'Hello world',\n    });\n    console.log(response.output_text);\n  } catch (error) {\n    if (error instanceof GuardrailTripwireTriggered) {\n      console.log('Response blocked by a guardrail.');\n    } else {\n      throw error;\n    }\n  }\n}\n\nmain().catch(() => {\n  console.error('Request failed. Check your API credentials and configuration.');\n  process.exitCode = 1;\n});\n```\n\nRun it with:\n\n```bash\nnpx tsx guardrails-example.ts\n```\n\nYou can also pass an exported configuration file path to `GuardrailsOpenAI.create()`. Use the [configuration wizard](https://guardrails.openai.com/) to choose checks and the [quickstart guide](docs/quickstart.md) to learn about preflight, input, and output stages. See [tripwire handling](docs/tripwires.md) for handling blocked requests and guardrail execution errors.\n\n## Integrations and checks\n\n- [Agents SDK](docs/agents_sdk_integration.md): create an agent with `await GuardrailAgent.create(...)`.\n- [Azure OpenAI](examples/basic/azure_example.ts) and [local models](examples/basic/local_model.ts).\n- [Streaming](docs/streaming_output.md) and [inspecting results without raising tripwires](examples/basic/suppress_tripwire.ts).\n\nBuilt-in checks include [Moderation](docs/ref/checks/moderation.md), [Contains PII](docs/ref/checks/pii.md), [URL Filter](docs/ref/checks/urls.md), [Hallucination Detection](docs/ref/checks/hallucination_detection.md), [Jailbreak](docs/ref/checks/jailbreak.md), [Prompt Injection Detection](docs/ref/checks/prompt_injection_detection.md), [Off Topic Prompts](docs/ref/checks/off_topic_prompts.md), and [Custom Prompt Check](docs/ref/checks/custom_prompt_check.md). Each reference explains its configuration and prerequisites.\n\n## Evaluations\n\nMeasure guardrail precision, recall, and F1 against labeled datasets. Export a configuration as `guardrails_config.json` from the [wizard](https://guardrails.openai.com/) and create `data.jsonl` with one JSON object per line. Labels must match the guardrail names in your configuration; for a Moderation-only configuration:\n\n```jsonl\n{\"id\":\"sample_1\",\"data\":\"Hello world\",\"expected_triggers\":{\"Moderation\":false}}\n```\n\nRun the installed CLI:\n\n```bash\nnpx --no-install guardrails eval --config-path guardrails_config.json --dataset-path data.jsonl\n```\n\nSee the [evaluation guide](docs/evals.md) for dataset requirements, benchmarking, and multi-turn evaluation, or the [programmatic API](docs/ref/eval/guardrail_evals.md).\n\n## Local development\n\n```bash\ngit clone https://github.com/openai/openai-guardrails-js.git\ncd openai-guardrails-js\nnpm ci\nnpm run build\nnpm run test:run\nnpm run lint\nnpm run docs:check\n```\n\nWith `OPENAI_API_KEY` set, run a repository example:\n\n```bash\nnpx tsx examples/basic/hello_world.ts\n```\n\nSee the [examples guide](examples/README.md) for more examples and their prerequisites, and the [release guide](.changeset/README.md) for publishing.\n\n## License\n\n[MIT](LICENSE).\n\n## Disclaimers\n\nPlease note that Guardrails may use Third-Party Services such as the [Presidio open-source framework](https://github.com/microsoft/presidio), which are subject to their own terms and conditions and are not developed or verified by OpenAI.  For more information on configuring guardrails, please visit: [guardrails.openai.com](https://guardrails.openai.com/)\n\nDevelopers are responsible for implementing appropriate safeguards to prevent storage or misuse of sensitive or prohibited content (including but not limited to personal data, child sexual abuse material, or other illegal content). OpenAI disclaims liability for any logging or retention of such content by developers. Developers must ensure their systems comply with all applicable data protection and content safety laws, and should avoid persisting any blocked content generated or intercepted by Guardrails. Guardrails calls paid OpenAI APIs, and developers are responsible for associated charges.\n","readmeFilename":"README.md"}