whatisgithub

What is web-codegen-scorer?

angular/web-codegen-scorer — explained in plain English

Analysis updated 2026-05-18

744TypeScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A command-line tool from the Angular team that scores AI-generated web code for build success, errors, accessibility, security, and best practices.

Mindmap

mindmap
  root((Web Codegen Scorer))
    What it does
      Scores AI generated code
      Runs build and error checks
      Compares models
    Tech stack
      TypeScript
      Node CLI
      pnpm
    Use cases
      Prompt iteration
      Model comparison
      Quality tracking
    Audience
      AI tool builders
      Framework teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Compare the code quality that different AI models produce for the same web app prompts.

USE CASE 2

Iterate on a system prompt to find the instructions that produce the best code.

USE CASE 3

Track whether generated code quality changes as models and agents evolve over time.

What is it built with?

TypeScriptNode.jspnpm

How does it compare?

angular/web-codegen-scorerhaydenbleasel/files-sdkindalok/rzweb
Stars744764723
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderateeasy
Complexity3/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an API key for whichever model provider (Gemini, OpenAI, Anthropic, xAI) you want to evaluate.

So what is it?

Web Codegen Scorer is a tool built by the Angular team at Google for measuring how good the web code is that AI models produce. The problem it addresses is that many developers choose between AI coding tools, models, and frameworks based on informal impressions rather than consistent measurement. This tool provides a repeatable way to run those comparisons with actual metrics. You give it a set of prompts describing web apps to build, and it sends those prompts to an AI model, collects the generated code, and then runs a series of checks on the results. The built-in checks cover whether the code builds successfully without errors, whether it produces runtime errors when run in a browser, accessibility problems, security issues, coding best practices, and a rating produced by a second AI model looking at the code. If problems are detected during generation, the tool can automatically try to fix them and regenerate. The tool works with any web framework, not just Angular, and supports models from Google, OpenAI, Anthropic, and xAI. You configure which model to use, which framework to target, and what system instructions to include. Results are saved and can be viewed in a report viewer that lets you compare runs side by side. Practical uses include testing whether a change to your system prompt actually improves output quality, comparing which model produces better results for your specific use case, and tracking whether quality changes as models are updated over time. It installs as a global npm package. You supply API keys for whichever model providers you want to use as environment variables. The Angular example bundled with the tool is a convenient starting point. The project is written in TypeScript, uses pnpm for development, and is open source with contributions welcome.

Copy-paste prompts

Prompt 1
Help me set up Web Codegen Scorer to compare two AI models on my Angular project.
Prompt 2
Show me how to write a custom eval environment config for Web Codegen Scorer.
Prompt 3
Explain the built-in checks Web Codegen Scorer runs on generated code.
Prompt 4
Walk me through running the bundled Angular example eval.

Frequently asked questions

What is web-codegen-scorer?

A command-line tool from the Angular team that scores AI-generated web code for build success, errors, accessibility, security, and best practices.

What language is web-codegen-scorer written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, pnpm.

How hard is web-codegen-scorer to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is web-codegen-scorer for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.