Skip to content

Getting Started ​

ModelPrism is an LLM verification tool improved from the HuePrint method.

  • If you want to quickly inspect a third-party relay or aggregator API you are using, read Easy Mode.
  • If you want to examine 3D point clouds and per-prompt Color DNA strips, continue to Expert Mode.
  • If you prefer running automated checks directly inside a coding assistant or terminal, head to ModelPrism Skill Overview.

Prerequisites ​

  • Node.js >= 20 (Node.js >= 22 for building the VitePress documentation)
  • If deploying the online stateless web service, a Cloudflare Workers account and Wrangler CLI

Installation & Local Development ​

Run the following commands in the repository root to start both the Web application and the built-in local Edge Relay middleware:

sh
npm install

# Start the WebUI dev server (default port 5173, includes local /api/probe & /api/models relay)
npm run dev

Run Tests & Typecheck ​

The repository includes full core algorithm, Easy Mode, and forensics regression tests (35 tests across 3 suites):

sh
# TypeScript typecheck
npm run typecheck

# Run the full Vitest suite
npm test

Deploy to Cloudflare Workers ​

Option A: CLI Deploy ​

sh
npx wrangler login
npm run deploy

npm run deploy runs vite build to produce ./dist static assets and deploys worker/index.ts alongside the native PROBE_RATE_LIMITER binding configured in wrangler.jsonc (240 requests per 60 seconds per IP).

Option B: Cloudflare Git Integration ​

  1. Push this repository to GitHub or GitLab.
  2. In the Cloudflare Dashboard, open Workers & Pages -> Create -> Import a repository:
    • Build command: npm run build
    • Deploy command: npx wrangler deploy
  3. Bind a custom domain under Settings -> Domains & Routes as needed.