UNPKG

sindri

Version:

The Sindri Labs JavaScript SDK and CLI tool.

158 lines (157 loc) 7.13 kB
{ "name": "sindri", "version": "0.0.1-alpha.73", "description": "The Sindri Labs JavaScript SDK and CLI tool.", "license": "BSD-2-Clause", "keywords": [ "circom", "halo2", "gnark", "noir", "zk-snark", "zkp", "zero-knowledge", "zero-knowledge-proofs", "circuit", "groth16", "plonk", "off-chain", "cryptography", "crypto" ], "files": [ "dist/", "sindri-manifest.json", "src/", "templates/", "tsconfig.json" ], "engines": { "node": ">=18.13.0" }, "main": "dist/lib/index.js", "module": "dist/lib/index.mjs", "bin": { "sindri": "dist/cli/index.js" }, "browser": { "./dist/lib/index.js": "./dist/lib/browser/index.js", "./dist/lib/index.mjs": "./dist/lib/browser/index.mjs" }, "jsdelivr": "./dist/lib/browser/sindri.iife.js", "exports": { ".": { "import": "./dist/lib/index.mjs", "require": "./dist/lib/index.js" }, "./cli": "./dist/cli/index.js" }, "scripts": { "build": "rm -rf dist/* && NODE_ENV=production tsup", "build:no-types": "export TSUP_DTS=false && npm run build", "build:watch": "rm -rf dist/* && NODE_ENV=development tsup --watch", "download-sindri-manifest-schema": "export SINDRI_BASE_URL=${SINDRI_BASE_URL:-https://sindri.app} && nwget ${SINDRI_BASE_URL:-https://sindri.app}/api/v1/sindri-manifest-schema.json -O sindri-manifest.json && sed -i -E 's#\"https?://[^/]+/api/#\\\"https://sindri.app/api/#g' sindri-manifest.json && prettier --write sindri-manifest.json", "download-sindri-manifest-schema:dev": "export SINDRI_BASE_URL=http://localhost:8000 && npm run download-sindri-manifest-schema", "download-sindri-manifest-schema:docker": "export SINDRI_BASE_URL=http://host.docker.internal:8000 && npm run download-sindri-manifest-schema", "download-sindri-manifest-schema:stage": "export SINDRI_BASE_URL=https://stage.sindri.app && npm run download-sindri-manifest-schema", "generate-api": "export SINDRI_BASE_URL=${SINDRI_BASE_URL:-https://sindri.app} && npm run generate-api:no-patch && find src/lib/api/ -type f -exec sed -i -E 's#\"https?://[^/\"]+#\\\"https://sindri.app#g' {} + && npm run generate-api:apply-patch", "generate-api:apply-patch": "patch --strip=3 --directory=src/lib/api/ < src/lib/api.patch", "generate-api:dev": "export SINDRI_BASE_URL=http://localhost:8000 && npm run generate-api", "generate-api:docker": "export SINDRI_BASE_URL=http://host.docker.internal:8000 && npm run generate-api", "generate-api:no-patch": "mv src/lib/api/core/request.ts tmp-request.ts && rm -rf src/lib/api/ && openapi --client axios --input ${SINDRI_BASE_URL:-https://sindri.app}/api/openapi.json --name ApiClient --output src/lib/api/ --request tmp-request.ts --useUnionTypes && rm tmp-request.ts && prettier --write src/lib/api/* src/lib/api/**/*", "generate-api:no-patch:dev": "export SINDRI_BASE_URL=http://localhost:8000 && npm run generate-api:no-patch", "generate-api:no-patch:docker": "export SINDRI_BASE_URL=http://host.docker.internal:8000 && npm run generate-api:no-patch", "generate-api:no-patch:stage": "export SINDRI_BASE_URL=https://stage.sindri.app && npm run generate-api:no-patch", "generate-api:regenerate-patch": "export SINDRI_BASE_URL=${SINDRI_BASE_URL:-https://sindri.app} && rm -rf src/lib/api.patched/ && cp -r src/lib/api/ src/lib/api.patched/ && npm run generate-api:no-patch && diff --exclude=request.ts --recursive --unified src/lib/api/ src/lib/api.patched/ > src/lib/api.patch || true && rm -rf src/lib/api && mv src/lib/api.patched src/lib/api", "generate-api:regenerate-patch:dev": "export SINDRI_BASE_URL=http://localhost:8000 && npm run generate-api:regenerate-patch", "generate-api:regenerate-patch:docker": "export SINDRI_BASE_URL=http://host.docker.internal:8000 && npm run generate-api:regenerate-patch", "generate-api:regenerate-patch:stage": "export SINDRI_BASE_URL=https://stage.sindri.app && npm run generate-api:regenerate-patch", "generate-api:reverse-patch": "patch --reverse --strip=3 --directory=src/lib/api/ < src/lib/api.patch", "get-api-version": "TMP_FILE=$(mktemp) && nwget ${SINDRI_BASE_URL:-https://sindri.app}/api/openapi.json -O $TMP_FILE > /dev/null 2>&1 && node-jq -r '.info.version' $TMP_FILE && rm -f $TMP_FILE", "lint": "eslint '**/*.{js,ts}'", "format": "prettier --write '**/*.{js,json,md,ts}'", "test": "npm run build && npm run test:fast", "test:fast": "tsx ./node_modules/.bin/ava", "test:record": "NOCK_BACK_MODE=update npm run test", "test:record:fast": "export NOCK_BACK_MODE=update && npm run test:fast", "test:watch": "NODE_ENV=development NOCK_BACK_MODE=dryrun nodemon --watch src/ --watch test/ --ext js,cjs,mjs,ts,cts,mts --exec 'tsup --silent && tsx ./node_modules/.bin/ava'", "type-check": "tsc --noEmit", "/***** Hooks *****/": "", "postinstall": "patch-package" }, "repository": { "type": "git", "url": "git+https://github.com/Sindri-Labs/sindri-js.git" }, "author": "Sindri Labs", "bugs": { "url": "https://github.com/Sindri-Labs/sindri-js/issues" }, "homepage": "https://github.com/Sindri-Labs/sindri-js#readme", "dependencies": { "@commander-js/extra-typings": "^11.1.0", "@fullstax/p-retry": "^6.2.0-patch.4", "@inquirer/prompts": "^3.3.0", "@tsconfig/node18": "^18.2.2", "@types/gzip-js": "^0.3.5", "@types/ignore-walk": "^4.0.3", "@types/lodash": "^4.14.202", "@types/node": "^20.9.1", "@types/nunjucks": "^3.2.6", "@types/proxy": "^1.0.4", "@types/tar": "^6.1.10", "@types/tar-js": "^0.3.5", "axios": "^1.6.2", "commander": "^11.1.0", "compare-versions": "^6.1.0", "dockerode": "^4.0.2", "env-paths": "^2.2.1", "formdata-node": "^6.0.3", "gzip-js": "^0.3.2", "ignore-walk": "^6.0.4", "jsonschema": "^1.4.1", "lodash": "^4.17.21", "nunjucks": "^3.2.4", "patch-package": "^8.0.0", "pino": "^8.16.2", "pino-pretty": "^10.2.3", "postinstall-postinstall": "^2.1.0", "rc": "^1.2.8", "retry": "^0.13.1", "tar": "^6.2.0", "tar-js": "^0.3.0", "zod": "^3.22.4" }, "devDependencies": { "@ava/typescript": "^4.1.0", "@types/dockerode": "^3.3.23", "@types/sarif": "^2.1.7", "@typescript-eslint/eslint-plugin": "^6.11.0", "@typescript-eslint/parser": "^6.11.0", "ava": "~6.0.1", "esbuild": "^0.19.11", "eslint": "^8.53.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.1", "flatted": "^3.3.1", "get-port": "^7.0.0", "http-mitm-proxy": "^1.1.0", "make-synchronous": "^1.0.0", "mockdate": "^3.0.5", "nock": "^13.4.0", "node-jq": "^6.0.1", "nodemon": "^3.0.2", "openapi-typescript-codegen": "^0.25.0", "parse-multipart-data": "^1.5.0", "prettier": "^3.1.0", "puppeteer": "^23.2.1", "rollup": "^4.9.5", "serialize-error": "^12.0.0", "sharp": "^0.33.5", "tsup": "^7.3.0", "tsx": "^4.7.0", "type-fest": "^4.8.2", "typescript": "^5.2.2", "wget-improved": "^3.4.0" } }