{"id":24822128,"url":"https://github.com/jtmuller5/vibe-checker","last_synced_at":"2026-05-01T08:31:32.893Z","repository":{"id":274982070,"uuid":"924700545","full_name":"jtmuller5/vibe-checker","owner":"jtmuller5","description":"The TypeScript LLM Evaluation File","archived":false,"fork":false,"pushed_at":"2025-01-30T20:16:11.000Z","size":7833,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T23:10:02.697Z","etag":null,"topics":["ai","devtools","evals","evaluation-metrics","evaluations","gemini","gemini-api","gemini-flash","javascript","llm","nodejs","testing","typescript","vitest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jtmuller5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-30T13:50:20.000Z","updated_at":"2025-01-30T20:16:15.000Z","dependencies_parsed_at":"2025-06-30T03:47:44.693Z","dependency_job_id":null,"html_url":"https://github.com/jtmuller5/vibe-checker","commit_stats":null,"previous_names":["jtmuller5/vibe-checker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jtmuller5/vibe-checker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtmuller5%2Fvibe-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtmuller5%2Fvibe-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtmuller5%2Fvibe-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtmuller5%2Fvibe-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jtmuller5","download_url":"https://codeload.github.com/jtmuller5/vibe-checker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jtmuller5%2Fvibe-checker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","devtools","evals","evaluation-metrics","evaluations","gemini","gemini-api","gemini-flash","javascript","llm","nodejs","testing","typescript","vitest"],"created_at":"2025-01-30T18:26:34.947Z","updated_at":"2026-05-01T08:31:32.871Z","avatar_url":"https://github.com/jtmuller5.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub file size in bytes](https://img.shields.io/github/size/jtmuller5/vibe-checker/vibe_checker.ts)\n\n\n# Vibe Checker\n\nA single file for evaluating your LLM outputs in TypeScript.\n\n\u003e [!NOTE]\n\u003e This is not an npm package. To use it, just copy the [vibe_checker.ts](./vibe_checker.ts) file into your project (190 lines including comments)\n\n## Quickstart\n\nAdd a `.env` folder to the root of your project with your [Google API key](https://ai.google.dev/gemini-api/docs/api-key):\n\n```\nGOOGLE_API_KEY=\n```\n\nTo start testing, create a `__tests__` folder at the root of your project and add a test:\n\n```typescript\ndescribe(\"Cash Register\", () =\u003e {\n    it(\"should provide cash\", async () =\u003e {\n      await evaluateResponse({\n        input: \"Can I have some cash?\",\n        actualOutput: \"No\",\n        expectedOutput: \"Yes, how much would you like?\",\n      });\n    });\n  });\n```\n\nTo load the Google API key during tests using [Vitest](https://vitest.dev/), you need to install the [dotenv](https://www.npmjs.com/package/dotenv) library:\n\n```bash\nnpm i dotenv\n```\n\nAnd create a `vitest.config.ts` file with the `setupFiles` field:\n\n```typescript\nimport { defineConfig } from 'vitest/config';\nimport { resolve } from 'path';\n\nexport default defineConfig({\n  root: '.',\n  esbuild: {\n    tsconfigRaw: '{}',\n  },\n  test: {\n    clearMocks: true,\n    globals: true,\n    setupFiles: ['dotenv/config'] // This line\n  },\n  resolve: {\n    alias: [{ find: '~', replacement: resolve(__dirname, 'src') }],\n  },\n});\n```\n\nNow, run the test:\n\n```bash\nnpx vitest run\n```\n\n\u003e [!WARNING]\n\u003e The default way to run vitest (`vitest --watch`) will run the tests every time there is a change. For LLM evals, this could be expensive. `vitest run` runs the tests once.\n\nYou can also update the `scripts` section of your `package.json`:\n\n```json\n\"scripts\": {\n    \"test\": \"vitest run\",\n  },\n```\n\nThis will let you run the tests using `npm test`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtmuller5%2Fvibe-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjtmuller5%2Fvibe-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjtmuller5%2Fvibe-checker/lists"}