UNPKG

@relayplane/sdk

Version:

RelayPlane SDK with zero-config AI access, intelligent model selection, built-in examples, and contextual error handling. The easiest way to add AI to your app with automatic optimization and fallback.

118 lines (117 loc) 3.82 kB
{ "name": "@relayplane/sdk", "version": "0.4.4", "description": "RelayPlane SDK with zero-config AI access, intelligent model selection, built-in examples, and contextual error handling. The easiest way to add AI to your app with automatic optimization and fallback.", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "edge-light": "./dist/edge.js", "worker": "./dist/edge.js", "browser": "./dist/browser.js", "node": "./dist/node.js", "import": "./dist/index.esm.js", "require": "./dist/index.js", "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./edge": { "types": "./dist/edge.d.ts", "default": "./dist/edge.js" }, "./node": { "types": "./dist/node.d.ts", "default": "./dist/node.js" }, "./browser": { "types": "./dist/browser.d.ts", "default": "./dist/browser.js" } }, "scripts": { "build": "npm run build:cjs && npm run build:esm && npm run build:edge && npm run build:browser && npm run build:node && npm run build:types", "build:cjs": "esbuild src/index.ts --bundle --platform=node --target=node16 --outfile=dist/index.js --format=cjs --external:node:*", "build:esm": "esbuild src/index.ts --bundle --platform=node --target=node16 --outfile=dist/index.esm.js --format=esm --external:node:*", "build:edge": "esbuild src/index.ts --bundle --platform=browser --target=es2020 --outfile=dist/edge.js --format=esm --conditions=edge-light", "build:browser": "esbuild src/index.ts --bundle --platform=browser --target=es2020 --outfile=dist/browser.js --format=esm", "build:node": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/node.js --format=esm --external:node:*", "build:types": "tsc --emitDeclarationOnly --outDir dist", "dev": "npm run build -- --watch", "test": "jest", "test:watch": "jest --watch", "lint": "eslint src --ext .ts", "lint:fix": "eslint src --ext .ts --fix", "prepublishOnly": "npm run build", "clean": "rm -rf dist", "demo": "node examples/interactive-demo.js", "quick-start": "node examples/quick-start.js", "examples:gpt": "node examples/gpt-example.js", "examples:claude": "node examples/claude-example.js", "examples:optimize": "node examples/optimize-example.js", "examples:chain": "node examples/chained-agents.js", "examples:global-optimization": "node examples/global-optimization-example.js" }, "keywords": [ "ai", "llm", "relay", "zero-config", "magic-moment", "intelligent-routing", "examples", "chatbot", "translation", "summarization", "code-review", "contextual-errors", "routing", "fallback", "optimization", "claude", "gpt", "gemini", "agents", "orchestration", "cost-optimization", "model-selection" ], "author": "RelayPlane Team", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/RelayPlane/sdk.git" }, "bugs": { "url": "https://github.com/RelayPlane/sdk/issues" }, "homepage": "https://relayplane.com", "documentation": "https://relayplane.com/docs/sdk", "files": [ "dist/**/*", "examples/**/*", "README.md", "LICENSE" ], "engines": { "node": ">=16.0.0" }, "dependencies": { "axios": "^1.6.0", "uuid": "^9.0.0" }, "devDependencies": { "@types/jest": "^29.5.0", "@types/node": "^20.0.0", "@types/uuid": "^9.0.0", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "esbuild": "^0.19.0", "eslint": "^8.50.0", "jest": "^29.7.0", "ts-jest": "^29.1.0", "typescript": "^5.2.0" }, "publishConfig": { "access": "public" } }