feat: add TypeScript SDK demo app scaffold and Math Standards Alignment evaluator#132
Open
adnanrhussain wants to merge 6 commits into
Open
feat: add TypeScript SDK demo app scaffold and Math Standards Alignment evaluator#132adnanrhussain wants to merge 6 commits into
adnanrhussain wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a minimal TypeScript demo app under demos/typescript/ that exercises the published @learning-commons/evaluators SDK end-to-end for the Math Standards Alignment evaluator, using a Vite/React frontend and an Express backend to keep API keys server-side.
Changes:
- Introduces a Vite + React UI for selecting grade/jurisdiction/standards, entering a word problem, and viewing raw evaluator JSON output.
- Adds an Express API server with endpoints for jurisdictions, standards lookup (via Knowledge Graph REST), and evaluation via
MathStandardsAlignmentEvaluator. - Includes spec/plan/tasks docs and a README for setup and local running.
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| demos/typescript/vite.config.ts | Adds Vite dev-server proxy for /api to the Express backend. |
| demos/typescript/tsconfig.json | Adds demo-local TypeScript config for client + server code. |
| demos/typescript/tasks.md | Tracks implementation tasks and verification notes for the demo. |
| demos/typescript/src/main.tsx | React entrypoint mounting the demo app. |
| demos/typescript/src/App.tsx | Main UI and client-side API calls for the demo flow. |
| demos/typescript/src/App.css | Minimal styling for the demo UI. |
| demos/typescript/spec.md | Defines the demo requirements and API behavior. |
| demos/typescript/server/kg.ts | Implements Knowledge Graph REST helpers for listing standards. |
| demos/typescript/server/index.ts | Implements Express endpoints and evaluator invocation. |
| demos/typescript/README.md | Documents setup, required keys, and how to run locally. |
| demos/typescript/plan.md | Documents demo structure and key design decisions. |
| demos/typescript/package.json | Adds demo package manifest and scripts (dev/typecheck). |
| demos/typescript/package-lock.json | Locks demo dependencies for reproducible installs. |
| demos/typescript/index.html | Vite HTML shell for the React app. |
| demos/typescript/.gitignore | Ignores build output, deps, and .env for the demo. |
| demos/typescript/.env.example | Documents required environment variables for the backend. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…risdiction select
adnanrhussain
force-pushed
the
worktree-ahussain+ts_sdk_demo_app
branch
from
July 16, 2026 19:46
304e3de to
cdbd4c6
Compare
adnanrhussain
marked this pull request as ready for review
July 16, 2026 19:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A minimal web app under
demos/typescript/demonstrating the published@learning-commons/evaluatorsSDK, covering the Math Standards Alignment evaluator end-to-end.Flow: pick a grade (K–12) and jurisdiction → searchable multi-select of that grade/jurisdiction's math standards → enter a word problem → Evaluate → view the raw alignment JSON.
Design
node:*imports on the eval path), so all SDK calls run server-side; the browser never sees the API keys.GET /api/jurisdictions(from the SDK'sJurisdictionenum),GET /api/standards(Knowledge Graph lookup),POST /api/evaluate(MathStandardsAlignmentEvaluator.evaluateItems).spec.md,plan.md,tasks.md.Notes / SDK gaps surfaced
KnowledgeGraphClient, soserver/kg.tscalls the KG REST API directly to populate the standards picker. A future SDK release should export agetStandardsByGrade-style helper.ai >=6.0.0, but it's actually built againstai@7(@ai-sdk/providerspec v4). Installingai@6+@ai-sdk/anthropic@4yields a runtime "Unsupported model version" error. The demo pinsai@^7; the SDK's peer should be tightened toai >=7.Verification
tsc --noEmitclean;vite buildclean.Draft pending a final real-key end-to-end evaluation run.