GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - basil-k-aji-dev/braintrust-sdk-javascript: JavaScript Tracing & Evals library for Braintrust

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

2,010 Commits
2,010 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.changeset
.changeset
 
 
.claude
.claude
 
 
.config
.config
 
 
.github
.github
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
dev-packages/seinfeld
dev-packages/seinfeld
 
 
docs
docs
 
 
e2e
e2e
 
 
integrations
integrations
 
 
js
js
 
 
scripts
scripts
 
 
.aiderignore
.aiderignore
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.envrc
.envrc
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitleaks.toml
.gitleaks.toml
 
 
.npmrc
.npmrc
 
 
.tool-versions
.tool-versions
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODEOWNERS
CODEOWNERS
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
PUBLISHING.md
PUBLISHING.md
 
 
README.md
README.md
 
 
agents.toml
agents.toml
 
 
braintrust-logo.svg
braintrust-logo.svg
 
 
docker-compose.yml
docker-compose.yml
 
 
generated_types.json
generated_types.json
 
 
imported_types.json
imported_types.json
 
 
knip.jsonc
knip.jsonc
 
 
mise.toml
mise.toml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

Braintrust

Braintrust JavaScript SDKs

Braintrust is a platform for evaluating and shipping AI products. Learn more at braintrust.dev and in the docs.

This repository contains Braintrust's JavaScript/TypeScript SDKs and integrations, including:

  • The main braintrust SDK package (./js)
  • Integration packages under ./integrations
  • Shared tooling and smoke tests for JavaScript SDK development

Quickstart

Install the main SDK and autoeval scorers:

npm install braintrust autoevals

Create tutorial.eval.ts:

import { Eval } from "braintrust";
import { LevenshteinScorer } from "autoevals";

Eval("Say Hi Bot", {
  data: () => [
    { input: "Foo", expected: "Hi Foo" },
    { input: "Bar", expected: "Hello Bar" },
  ],
  task: (input) => "Hi " + input,
  scores: [LevenshteinScorer],
});

Install the bt CLI separately using the standalone installation instructions in the CLI quickstart, then run it:

BRAINTRUST_API_KEY=<YOUR_API_KEY> bt eval tutorial.eval.ts

Packages

Package Purpose npm Docs
braintrust Core JavaScript/TypeScript SDK for logging, tracing, and evals. npm: braintrust js/README.md
@braintrust/browser Browser-focused SDK integration with AsyncLocalStorage polyfill support. npm: @braintrust/browser integrations/browser-js/README.md
@braintrust/otel OpenTelemetry span processor and compatibility helpers for Braintrust tracing. npm: @braintrust/otel integrations/otel-js/README.md
@braintrust/temporal Temporal client/worker plugin and workflow interceptors for Braintrust tracing. npm: @braintrust/temporal integrations/temporal-js/README.md

CLI bt

The bt CLI is installed separately from braintrust. See the standalone installation instructions in the CLI quickstart.

Documentation

  • Publishing packages: PUBLISHING.md
  • TypeScript SDK docs: https://docs.braintrust.dev/sdks/typescript/versions/latest
  • Release notes: https://docs.braintrust.dev/changelog

License

Apache-2.0

Repository History

This repository was previously named braintrust-sdk and was renamed to braintrust-sdk-javascript. The rename happened when Python SDK code was split out of this repository. The Python code now lives in a dedicated Braintrust Python SDK repository.

Contributors

Thanks to everyone who contributed to the Braintrust JavaScript SDK!

About

JavaScript Tracing & Evals library for Braintrust

www.braintrust.dev

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.