@cogniformai/instructor-stream
Version:
Streaming-first structured data extraction from LLMs with real-time updates
103 lines • 3.25 kB
JSON
{
"name": "@cogniformai/instructor-stream",
"version": "0.5.1",
"description": "Streaming-first structured data extraction from LLMs with real-time updates",
"publishConfig": {
"access": "public"
},
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./adapters/langgraph": {
"types": "./dist/adapters/langgraph/index.d.ts",
"import": "./dist/adapters/langgraph/index.js",
"require": "./dist/adapters/langgraph/index.cjs",
"default": "./dist/adapters/langgraph/index.js"
},
"./adapters/openai": {
"types": "./dist/adapters/openai/index.d.ts",
"import": "./dist/adapters/openai/index.js",
"require": "./dist/adapters/openai/index.cjs",
"default": "./dist/adapters/openai/index.js"
},
"./adapters/anthropic": {
"types": "./dist/adapters/anthropic/index.d.ts",
"import": "./dist/adapters/anthropic/index.js",
"require": "./dist/adapters/anthropic/index.cjs",
"default": "./dist/adapters/anthropic/index.js"
},
"./adapters/google": {
"types": "./dist/adapters/google/index.d.ts",
"import": "./dist/adapters/google/index.js",
"require": "./dist/adapters/google/index.cjs",
"default": "./dist/adapters/google/index.js"
}
},
"files": [
"dist/**"
],
"types": "./dist/index.d.ts",
"repository": {
"directory": "packages/instructor-stream",
"type": "git",
"url": "git+https://github.com/cogniformai/instructor-stream-js.git"
},
"keywords": [
"llm",
"streaming",
"structured",
"outputs",
"zod",
"openai",
"anthropic",
"real-time"
],
"author": "David Robertson <info@drobertson.pro> (https://x.com/davidalexr987)",
"license": "MIT",
"homepage": "https://github.com/cogniformai/instructor-stream-js",
"dependencies": {
"@effect/ai": "^0.31.1",
"@effect/ai-openai": "^0.34.0",
"@effect/platform": "^0.92.1",
"@effect/platform-node": "^0.98.4",
"@effect/vitest": "^0.26.0",
"effect": "^3.18.4",
"zod-validation-error": "^4.0.2"
},
"peerDependencies": {
"@anthropic-ai/sdk": ">=0.57.0",
"openai": "^5.0.0",
"zod": "^3.24.0 || ^4.0.0"
},
"devDependencies": {
"@anthropic-ai/sdk": "^0.57.0",
"@types/node": "^24.7.1",
"@types/ramda": "^0.30.2",
"@vitest/coverage-v8": "^3.2.4",
"openai": "^5.23.2",
"ramda": "^0.31.3",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
"vitest": "^3.2.4"
},
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:integration": "pnpm run test:integration:maybe && pnpm run test:integration:validator",
"test:integration:maybe": "cd ../.. && tsx integrations/run-maybe-integration.ts",
"test:integration:validator": "cd ../.. && tsx integrations/run-validator-integration.ts",
"bench": "vitest bench",
"build": "tsup",
"dev": "tsup --watch",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
"type-check": "tsc --noEmit"
}
}