safeeyes
Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder
翻訳待ち
No updates detected yet. GitHub releases will appear here.
AI-powered healthcare price transparency — Kayak for healthcare pricing
翻訳待ち
Loading the full README.
Read the full README ↗Kayak for healthcare pricing — search for any medical procedure in plain English and instantly compare real hospital prices near you.
Live: www.clearcost.live
Type "knee MRI near Austin, TX" and get a sorted list of hospitals with actual cash prices, negotiated rate ranges, and distance — on a list or map view. ClearCost bridges the gap between how patients describe procedures and how hospitals code them, using AI to translate plain English into billing codes and federal price transparency data to show real prices.
Key features:
| Layer | Technology |
|---|---|
| Framework | Next.js 16 (App Router) + React 19 + TypeScript |
| Styling | Tailwind CSS v4 + DaisyUI 5 |
| Database | Supabase (Postgres + PostGIS) |
| Auth | Supabase Auth (Google OAuth) |
| AI | Claude API via Anthropic SDK |
| Maps | Google Maps JavaScript API |
| Data | Trilliant Oria hospital MRF dataset (81GB Parquet) |
| Deployment | Vercel |
git clone https://github.com/achrispratt/clearcost.git
cd clearcost
npm install
cp .env.local.example .env.local
Required variables: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, SUPABASE_SERVICE_ROLE_KEY, ANTHROPIC_API_KEY, NEXT_PUBLIC_GOOGLE_MAPS_API_KEY
Apply the tracked files in supabase/migrations/ in timestamp order to an empty development project using your Supabase migration workflow. supabase/schema.sql is a partial schema reference, not a complete bootstrap script.
npm run dev
Open http://localhost:3000.
User: "knee MRI near Austin, TX"
|
v
KB Lookup ── hit? ──> Return cached codes (zero AI cost)
|
| miss
v
Claude AI translates to billing codes (CPT 73721)
+ writes result to KB for next time
|
v
PostGIS: search_charges_nearby(codes, lat, lng, radius)
|
v
Results: sorted by cash price, filterable, map + list views
For vague queries ("my knee hurts"), a multi-turn guided clarification loop narrows to specific codes through up to 6 diagnostic questions.
app/
api/ — Search, translation, clarification, KB events, saved searches
guided-search/ — AI diagnostic clarification page
legal/ — Terms, Privacy, Disclaimers
results/ — Search results page
components/ — UI components (SearchBar, ResultCard, FilterBar, MapView, landing sections, etc.)
lib/
cpt/ — Billing code translation logic
kb/ — Translation Knowledge Base (caching + synonym clustering)
supabase/ — Database clients (browser, server, middleware)
scripts/ — DB migrations, seed scripts, audits
types/ — Shared TypeScript interfaces
supabase/ — Schema SQL + migrations
docs/ — PRD, data snapshots, research, import reference
Pricing data comes from Trilliant Health's Oria — a consolidated data lake of hospital Machine-Readable Files (MRFs) required by the federal Hospital Price Transparency Rule. The MVP imports 1,002 curated procedure codes across 5,400+ hospitals nationally.
Current implementation — What is built, operational limits, and which older plans are historical
Pricing rules and verification — Current comparison policy, saved-search migration, and validation limits
Preview testing — Seeded review data, explicit API permissions, and the 07086 knee MRI smoke check
CONTRIBUTING.md — Setup, dev workflow, code conventions, design system
CLAUDE.md — Architecture, search flow, database schema, and roadmap
docs/prd.md — Product requirements document
docs/billing-code-guide.md — Billing code structure and data interpretation
docs/data-snapshot.md — Current data coverage numbers
docs/import-reference.md — Data import pipeline reference
docs/gtm-strategy.md — Go-to-market strategy
All rights reserved. This is a proprietary project.