UNPKG

@blockrun/llm

Version:

TypeScript SDK for BlockRun - every frontier model behind one OpenAI-compatible client. Pay with a BlockRun API key or per-call in USDC. Smart routing picks the cheapest capable model. No rate limits.

111 lines (110 loc) • 2.67 kB
{ "name": "@blockrun/llm", "version": "3.25.0", "type": "module", "description": "TypeScript SDK for BlockRun - every frontier model behind one OpenAI-compatible client. Pay with a BlockRun API key or per-call in USDC. Smart routing picks the cheapest capable model. No rate limits.", "main": "dist/index.cjs", "module": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" } }, "files": [ "dist", "README.md" ], "scripts": { "build": "tsup", "dev": "tsup --watch", "test": "vitest", "lint": "eslint src/", "typecheck": "tsc --noEmit", "test:package": "npm run build && node scripts/check-package.mjs" }, "keywords": [ "llm", "ai", "api-key", "openai-compatible", "smart-routing", "x402", "base", "solana", "usdc", "micropayments", "openai", "claude", "gemini", "blockchain" ], "author": "BlockRun <hello@blockrun.ai>", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/BlockRunAI/blockrun-llm-ts" }, "homepage": "https://blockrun.ai", "bugs": { "url": "https://github.com/BlockRunAI/blockrun-llm-ts/issues" }, "dependencies": { "@anthropic-ai/sdk": "^0.123.0", "bs58": "^6.0.0", "viem": "^2.56.3" }, "devDependencies": { "@blockrun/core": "^0.1.0", "@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/fd6d03d035ff676642ba1683c333d929939f8a00", "@eslint/js": "^10.0.1", "@solana/kit": "^5.5.1", "@types/node": "^26.4.1", "@x402/core": "2.28.0", "@x402/svm": "2.28.0", "eslint": "^10.9.1", "tsup": "^8.5.1", "typescript": "^6.0.3", "typescript-eslint": "^8.69.0", "vitest": "^4.1.11" }, "pnpm": { "overrides": { "ws@>=8.0.0 <8.21.0": "8.21.0", "ws@>=7.0.0 <7.5.11": "7.5.11", "form-data@>=4.0.0 <4.0.6": "4.0.6", "uuid@<11.1.1": "^11.1.1", "esbuild@<0.28.1": "^0.28.1" } }, "engines": { "node": ">=20" }, "packageManager": "pnpm@9.15.4", "peerDependencies": { "@solana/kit": ">=5.1.0", "@solana/spl-token": "^0.4.15", "@solana/web3.js": "^1.98.4", "@x402/core": "~2.28.0", "@x402/svm": "~2.28.0" }, "peerDependenciesMeta": { "@solana/kit": { "optional": true }, "@solana/spl-token": { "optional": true }, "@solana/web3.js": { "optional": true }, "@x402/core": { "optional": true }, "@x402/svm": { "optional": true } } }