Skip to content

pAIrprogio/ts-ai-playground

Repository files navigation

Typescript AI Playground

Environment

  • Check that you have node > 22 installed
  • Run corepack enable if you haven't done so yet
  • VSCode is recommended along recommended extensions

Setup

git clone [email protected]:pAIrprogio/ts-ai-playground.git
cd ts-ai-playground
yarn install
touch .env
code .

Running

  • Make sure to add the following keys to the .env file:
    • ANTHROPIC_API_KEY
    • OPENAI_API_KEY
    • GOOGLE_GENERATIVE_AI_API_KEY
  • Install the recommended extensions in VSCode
  • The VSCode debugger is pre-configured to run the active file

Local Data

  • Local data is stored in the .data directory
  • Local output is stored in the .output directory
  • Access them easily with exports from the src/dirs.runtime.ts module

Libraries

  • ai: Vercel AI SDK
  • @ai-sdk/*: Vercel AI SDK Providers
  • evalite: Evals as unit tests
  • @synstack/*: LLM scripting utilities
  • ts-pattern: TypeScript pattern matching
  • zod: TypeScript schema declaration and validation
  • wretch: Immutable HTTP client

About

A template Typescript project to quickly iterate with AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published