UNPKG

selvedge

Version:

A type-safe, declarative DSL for building robust, composable LLM prompts and programs in TypeScript. Selvedge simplifies prompt engineering, structured output, and multi-model orchestration.

74 lines 2.04 kB
{ "name": "selvedge", "version": "0.0.3", "description": "A type-safe, declarative DSL for building robust, composable LLM prompts and programs in TypeScript. Selvedge simplifies prompt engineering, structured output, and multi-model orchestration.", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "type": "module", "files": [ "dist" ], "bin": { "selvedge": "dist/cli/index.js" }, "scripts": { "build": "bun run build:clean && bun run build:js && bun run build:types && bun run build:cli", "build:clean": "rm -rf dist", "build:js": "bun build ./src/index.ts --outdir ./dist --target node --minify --tsconfig-paths", "build:types": "tsc --emitDeclarationOnly --outDir dist", "build:cli": "bun build ./src/cli/index.ts --outdir ./dist/cli --target node --tsconfig-paths", "test": "bun test --tsconfig-paths", "prepublishOnly": "bun run build" }, "devDependencies": { "@types/bun": "latest", "@types/commander": "^2.12.5", "@types/node": "^22.13.16", "bun-types": "1.1.29", "tsconfig-paths": "^4.2.0", "typescript": "^5.0.0" }, "dependencies": { "@anthropic-ai/sdk": "^0.16.0", "commander": "^11.1.0", "openai": "^4.28.0", "zod": "^3.22.4" }, "peerDependencies": { "typescript": "^5.0.0" }, "keywords": [ "llm", "ai", "prompt-engineering", "prompt", "openai", "anthropic", "typescript", "dsl", "llm-dsl", "language-model", "chatgpt", "claude", "prompt-template", "type-safe", "developer-tools", "code-generation", "natural-language", "ai-prompting", "prompt-builder", "structured-output", "selvedge" ], "author": "Viksit Gaur (https://x.com/viksit)", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/viksit/selvedge.git" }, "bugs": { "url": "https://github.com/viksit/selvedge/issues" }, "homepage": "https://github.com/viksit/selvedge#readme" }