Skip to content

A repository of examples showcasing Cloudflare Workers AI

License

Notifications You must be signed in to change notification settings

andyjessop/workers-ai-monorepo

Repository files navigation

AI Mono Repository

This repository is a monorepo managed with Nx. It contains multiple apps, workers, and libraries that work together to deliver AI-powered features. The repository provides generators, standardised commands, and deployment workflows for efficient development and continuous integration.

Usage

Generating a New Worker

To generate a new worker:

  1. Run the worker generator:
    npm run generate-app
  2. When prompted, you'll be asked a few things like the name and type of worker, and the Vercel AI SDK provider you want to use.
  3. To start development, run:
    npx nx dev [name-of-worker]

Standard Nx Commands

For a given worker (or app), you can use Nx to perform common tasks:

  • Linting:
    npx nx lint [name-of-worker]
  • Testing:
    # with watch mode
    npx nx test [name-of-worker]
    # without watch mode
    npx nx test [name-of-worker]
    Generating Types:
    npx nx types [name-of-worker]
  • Type-checking:
    npx nx type-check [name-of-worker]
  • Building:
    npx nx build [name-of-worker]

About

A repository of examples showcasing Cloudflare Workers AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages