mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-10-30 18:34:19 +00:00
A version written into a manifest is written into every manifest that wants it, which is how eslint came to exist in a hundred and four forms across this estate and how a package came to resolve twice at run time. The catalog moves the number out of the manifest: a manifest names the package, the workspace names the version. Four are held below their latest because the newer release cannot be used, and the reason is recorded rather than the version alone: @noble/hashes 2 renamed every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels 3 points its types condition at the bundle.
Vercel AI SDK + Insights AI Examples
Track Vercel AI SDK calls with Insights across multiple providers.
Setup
pnpm install
cp .env.example .env
# Fill in your API keys in .env
Examples
- generate-text.ts - Text generation with tool calling (OpenAI)
- stream-text.ts - Streaming text generation (OpenAI)
- generate-object.ts - Structured output with Zod schemas (OpenAI)
- stream-object.ts - Streaming structured output (OpenAI)
- anthropic.ts - Text generation with Anthropic backend
- google.ts - Text generation with Google backend
Run
source .env
npx tsx generate-text.ts
npx tsx stream-text.ts
npx tsx generate-object.ts