@nationaldesignstudio/rampart
Version:
Rampart — client-side PII redaction for AI assistants: deterministic recognizers + a 14.7 MB ONNX classifier (transformers.js), default-deny policy, and reversible placeholders. Runs entirely in the browser.
104 lines (103 loc) • 3.43 kB
JSON
{
"name": "@nationaldesignstudio/rampart",
"version": "0.1.3",
"description": "Rampart — client-side PII redaction for AI assistants: deterministic recognizers + a 14.7 MB ONNX classifier (transformers.js), default-deny policy, and reversible placeholders. Runs entirely in the browser.",
"license": "CC-BY-4.0",
"homepage": "https://github.com/nationaldesignstudio/rampart#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/nationaldesignstudio/rampart.git"
},
"bugs": {
"url": "https://github.com/nationaldesignstudio/rampart/issues"
},
"keywords": [
"pii",
"redaction",
"privacy",
"llm",
"browser",
"onnx",
"transformers.js"
],
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./dist": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./worker": {
"types": "./dist/src/ner/worker.d.ts",
"import": "./dist/src/ner/worker.js",
"default": "./dist/src/ner/worker.js"
},
"./dist/worker": {
"types": "./dist/src/ner/worker.d.ts",
"import": "./dist/src/ner/worker.js",
"default": "./dist/src/ner/worker.js"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "restricted"
},
"files": [
"dist",
"eval",
"examples",
"index.ts",
"LICENSE",
"src",
"MODEL_CARD.md",
"README.md",
"RELEASE.md",
"WHITEPAPER.md",
"!eval/bench/webgpu/bundle.js",
"!eval/bench/data",
"!eval/bench/runs/*/latency.json"
],
"scripts": {
"build": "bun build ./index.ts ./src/ner/worker.ts --outdir ./dist --format esm --sourcemap --target browser --external @huggingface/transformers && tsc -p tsconfig.build.json",
"eval:public": "bun eval/run-public-eval.ts",
"eval:public:strict": "bun eval/run-public-eval.ts --strict",
"bench:fetch": "bun eval/bench/fetch.ts",
"bench": "bun eval/bench/run.ts",
"bench:webgpu": "bun eval/bench/webgpu.ts",
"bench:webgpu:wasm": "bun eval/bench/webgpu.ts --device wasm",
"export:huggingface": "bun scripts/export-huggingface.ts",
"export:huggingface:verify": "bun run export:huggingface && bun scripts/verify-huggingface-export.ts",
"publish:huggingface": "bun run export:huggingface:verify && hf repo create nationaldesignstudio/rampart --repo-type model --private --exist-ok && hf upload nationaldesignstudio/rampart hf-export . --repo-type model",
"prepack": "bun run build",
"prepublishOnly": "bun run verify:public",
"redact": "bun cli/redact.ts",
"test": "vitest run",
"test:watch": "vitest",
"type-check": "tsc -p tsconfig.json --noEmit",
"verify:public": "bun run build && bun test && bun run type-check && bun run eval:public:strict && bun run export:huggingface:verify"
},
"peerDependencies": {
"@huggingface/transformers": ">=3"
},
"peerDependenciesMeta": {
"@huggingface/transformers": {
"optional": true
}
},
"devDependencies": {
"@huggingface/transformers": "3.7.5",
"@types/bun": "1.3.14",
"playwright": "1.61.1",
"typescript": "5.9.2",
"vitest": "4.1.8"
},
"packageManager": "bun@1.3.14"
}