• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
drewmcdonald

drewmcdonald

promptCompare

Public
Like
promptCompare
Home
Code
11
.claude
3
.playwright-mcp
1
backend
3
docs
5
frontend
4
shared
1
.gitignore
.mcp.json
.vtignore
CLAUDE.md
deno.json
Environment variables
2
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
CLAUDE.md
Code
/
CLAUDE.md
Search
…
Viewing readonly version of main branch: v176
View latest version
CLAUDE.md

PromptCompare

A Val Town app for comparing LLM model outputs side-by-side.

Key References

  • docs/vt.md — Val Town platform docs: hosting, runtime, triggers, standard libraries, project structure
  • docs/vt-sqlite.md — Val Town SQLite usage (more up-to-date than vt.md for SQLite)
  • docs/zen.md — OpenCode Zen API gateway docs: endpoints, pricing, model access
  • docs/models.json — Model metadata: IDs, capabilities, costs, context limits, provider SDKs
  • .claude/skills/ai-elements/ — AI Elements component patterns (used as design inspiration, not directly — requires Next.js)

Tech Stack

  • Runtime: Deno (Val Town serverless)
  • Backend: Hono framework
  • Frontend: React 18.2.0 via esm.sh + Tailwind via CDN
  • Database: Val Town SQLite
  • AI Gateway: OpenCode Zen (https://opencode.ai/zen/v1/)
  • Auth: Env var password (PROMPTCOMPARE_PASSWORD) with session cookie

Conventions

  • All React files need /** @jsxImportSource https://esm.sh/react@18.2.0 */
  • Pin all React deps to 18.2.0 with ?deps=react@18.2.0,react-dom@18.2.0
  • Use https://esm.sh for all npm imports
  • SQLite: import from https://esm.town/v/std/sqlite/main.ts (val-scoped DB)
  • Never use Deno in shared/ code
  • Redirects: use new Response(null, { status: 302, headers: { Location: "..." } }) not Response.redirect
  • Entry point: export default app.fetch in backend/index.ts
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.