{"_id":"@abiroot/llmcp","_rev":"3-b33d1063374b38bdb349b75ee0fcf511","name":"@abiroot/llmcp","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@abiroot/llmcp","version":"1.0.0","license":"MIT","_id":"@abiroot/llmcp@1.0.0","maintainers":[{"name":"triplethata","email":"ayman@abiroot.com"},{"name":"abr-omar","email":"omarbarghashoon@abiroot.com"}],"homepage":"https://github.com/abiroot/llmcp#readme","bugs":{"url":"https://github.com/abiroot/llmcp/issues"},"dist":{"shasum":"f8b17d47495b729d05b06ec23476c87f72ea137c","tarball":"https://registry.npmjs.org/@abiroot/llmcp/-/llmcp-1.0.0.tgz","fileCount":53,"integrity":"sha512-WQMmABxCgBPVtkxLzlQui8yJkqG01o/SvnSQLfZoYB31dKRc25KQRfs7iUPoXIIy3UJHVc4eKt6GlpGCVpkTCQ==","signatures":[{"sig":"MEYCIQDnPOLYgAanHI6jJRjAu3P9D6j6xl3YlLY8RcFxtqExmgIhAJAree7Q9yxx+eTuSJq3ceJxTr7CDcvxdz6vQInKuBqi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":144925},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./db-schema":{"types":"./dist/db-schema.d.ts","import":"./dist/db-schema.js"}},"gitHead":"855735a904b9deda0dc43712e69a3280a98a9aa3","scripts":{"dev":"tsc --watch","build":"tsc","clean":"rm -rf dist *.tsbuildinfo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"triplethata","email":"ayman@abiroot.com"},"repository":{"url":"git+https://github.com/abiroot/llmcp.git","type":"git","directory":"packages/shared"},"_npmVersion":"11.6.2","description":"Shared types, schemas, and constants for LLMCP","directories":{},"_nodeVersion":"25.2.1","dependencies":{"zod":"^3.24.0","drizzle-orm":"^0.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.0"},"_npmOperationalInternal":{"tmp":"tmp/llmcp_1.0.0_1770763549310_0.09723786319421879","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abiroot/llmcp","version":"1.0.1","license":"MIT","_id":"@abiroot/llmcp@1.0.1","maintainers":[{"name":"triplethata","email":"ayman@abiroot.com"},{"name":"abr-omar","email":"omarbarghashoon@abiroot.com"}],"homepage":"https://github.com/abiroot/llmcp#readme","bugs":{"url":"https://github.com/abiroot/llmcp/issues"},"dist":{"shasum":"2c72e300fb75516ed2236a638513f210c90c5cc3","tarball":"https://registry.npmjs.org/@abiroot/llmcp/-/llmcp-1.0.1.tgz","fileCount":54,"integrity":"sha512-Q1JA2nPdMOdCnmjSvBqjPrFmp7PHWeDOXKziDbb5j/rooy5JavEt1lwwYMTTtYZkSIXUtXPoPxqPcfzwEJn0wA==","signatures":[{"sig":"MEUCIQCNFDsr4cIjqF7WDY5V9PN2+juGrpse+itTqO03ylRrygIgXrqHhPbIXCSS3p3nha1LU7Y+tame51cLsrzyF1kwrSY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":147951},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./db-schema":{"types":"./dist/db-schema.d.ts","import":"./dist/db-schema.js"}},"gitHead":"855735a904b9deda0dc43712e69a3280a98a9aa3","scripts":{"dev":"tsc --watch","build":"tsc","clean":"rm -rf dist *.tsbuildinfo","typecheck":"tsc --noEmit"},"_npmUser":{"name":"triplethata","email":"ayman@abiroot.com"},"repository":{"url":"git+https://github.com/abiroot/llmcp.git","type":"git","directory":"packages/shared"},"_npmVersion":"11.6.2","description":"Shared types, schemas, and constants for LLMCP","directories":{},"_nodeVersion":"25.2.1","dependencies":{"zod":"^3.24.0","drizzle-orm":"^0.45.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.7.0"},"_npmOperationalInternal":{"tmp":"tmp/llmcp_1.0.1_1770764058643_0.7848631920525941","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-02-10T22:45:49.069Z","modified":"2026-02-10T23:24:41.172Z","1.0.0":"2026-02-10T22:45:49.475Z","1.0.1":"2026-02-10T22:54:18.794Z"},"bugs":{"url":"https://github.com/abiroot/llmcp/issues"},"license":"MIT","homepage":"https://github.com/abiroot/llmcp#readme","repository":{"url":"git+https://github.com/abiroot/llmcp.git","type":"git","directory":"packages/shared"},"description":"Shared types, schemas, and constants for LLMCP","maintainers":[{"email":"ayman@abiroot.com","name":"triplethata"}],"readme":"# @abiroot/llmcp\n\nShared types, schemas, constants, and utilities for the [LLMCP](https://github.com/abiroot/llmcp) platform — a unified API for discovering, comparing, and evaluating LLM models across providers.\n\n## Installation\n\n```bash\nnpm install @abiroot/llmcp\n```\n\n## Usage\n\n```typescript\nimport {\n  UnifiedModel,\n  ProviderId,\n  estimateCost,\n  checkCompatibility,\n  formatPrice,\n} from '@abiroot/llmcp';\n```\n\n### Types\n\nCore TypeScript types for working with LLM models:\n\n```typescript\nimport type {\n  UnifiedModel,       // Full model representation\n  ProviderId,         // 'openai' | 'anthropic' | 'google' | ...\n  ModelModality,      // 'text-to-text' | 'multimodal' | ...\n  ModelCapability,    // 'chat' | 'vision' | 'function-calling' | ...\n  PricingInfo,        // Per-million token pricing\n  BenchmarkScore,     // Model benchmark results\n  Tier,               // 'free' | 'pro' | 'enterprise'\n  RateLimitInfo,      // Rate limit status\n} from '@abiroot/llmcp';\n```\n\n### Zod Schemas\n\nRuntime validation schemas for all types:\n\n```typescript\nimport {\n  UnifiedModelSchema,\n  ProviderIdSchema,\n  SearchModelsInputSchema,\n  CompareModelsInputSchema,\n  RecommendModelInputSchema,\n  EstimateCostInputSchema,\n} from '@abiroot/llmcp';\n\nconst result = SearchModelsInputSchema.parse({\n  query: 'gpt-4',\n  provider: 'openai',\n  limit: 10,\n});\n```\n\n### Utilities\n\n```typescript\nimport {\n  estimateCost,         // Calculate cost for a given token usage\n  checkCompatibility,   // Check if a model meets requirements\n  formatPrice,          // Format pricing for display\n  formatContextLength,  // Format context length (e.g. \"128K\")\n  matchesQuery,         // Search models by text query\n  slugify,              // Convert text to URL-safe slug\n  makeModelId,          // Create provider/model ID\n  parseModelId,         // Parse provider/model ID\n} from '@abiroot/llmcp';\n```\n\n### Constants\n\n```typescript\nimport {\n  PROVIDERS,          // Provider metadata (name, website, capabilities)\n  RATE_LIMITS,        // Rate limits per tier\n  KNOWN_BENCHMARKS,   // Supported benchmark names\n  TOOL_NAMES,         // Available MCP tool names\n  CACHE_TTL,          // Cache duration settings\n  DEFAULT_API_URL,    // Default LLMCP API endpoint\n} from '@abiroot/llmcp';\n```\n\n### Database Schema\n\nDrizzle ORM schema for the LLMCP database:\n\n```typescript\nimport { models, apiKeys, usageLogs } from '@abiroot/llmcp/db-schema';\n```\n\n### Providers\n\nBuilt-in provider implementations for fetching models:\n\n```typescript\nimport {\n  getProvider,\n  getAllProviders,\n  OpenRouterProvider,\n  TogetherAiProvider,\n  ReplicateProvider,\n  HuggingFaceProvider,\n} from '@abiroot/llmcp';\n```\n\n## Supported Providers\n\n| Provider | ID |\n|---|---|\n| OpenAI | `openai` |\n| Anthropic | `anthropic` |\n| Google AI | `google` |\n| Mistral AI | `mistral` |\n| Cohere | `cohere` |\n| Groq | `groq` |\n| Together AI | `together-ai` |\n| OpenRouter | `openrouter` |\n| Replicate | `replicate` |\n| Hugging Face | `huggingface` |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}