convez.ai
PluginDesenvolvimento WebIntermediário
briangershon

Prompt Playground

briangershon/prompt-playground

Boilerplate TypeScript para projetos LLM com testes e CI/CD

Ver no GitHub
InicialPluginScore · de 0 a 100

Template TypeScript para iniciar projetos com LLMs rapidamente, incluindo suporte a modelos Anthropic via Vercel AI SDK. Vem com testes automatizados via vitest e CI/CD com GitHub Actions pré-configurados.

Instalação

$npx convez-ai briangershon/prompt-playground

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
1
Saúde
42%
Último commit
há 1 ano
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Criar protótipos de aplicações que usam LLMs
  • Configurar testes automatizados para prompts e respostas de IA
  • Estabelecer pipeline CI/CD para projetos LLM

Veredito

Template sólido para acelerar inicialização de projetos TypeScript com LLMs. A estrutura de testes em camadas (unit + LLM) é prática, embora o escopo seja limitado a casos de uso básicos com Anthropic.

README

A tradução para o português deste README ainda está na fila.

prompt-playground

Get started quickly with an LLM project in TypeScript. With testing and CI/CD.

Example code generates a Haiku poem and then tests Haiku's validity with a different LLM model.

Features

  • use any LLM model that is supported by the Vercel AI SDK, such as from Anthropic.
  • automated testing with vitest (using a less expensive model)
  • GitHub action that runs tests on every push

Get started

Create a .env file with the following:

ANTHROPIC_API_KEY=

ANTHROPIC_API_KEY is the API key for the Anthropic API.

Run:

yarn
yarn dev

Also add ANTHROPIC_API_KEY to GitHub repository secrets so the GitHub actions can run.

Run tests

Run all tests:

yarn test

Run only the slow and expensive LLM tests:

yarn test-llm

Run only the fast unit tests (no LLM):

yarn test-unit
Ver o original no GitHub

Bom para

Relacionados