Private Lab Test is a Next.js prototype for safe, affordable cash-pay lab access for older adults and the loved ones helping them.
The product is now shaped around:
- Clinician-authorized wellness lab orders
- Prepaid cash prices with no insurance or Medicare billing in the launch flow
- Concierge scheduling and family assurance milestones
- CLIA-focused lab partner tracking
- An aggregator-first supply strategy with regional, mobile, and national lab expansion paths
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
The app defaults to the mock provider. To test real lab connectivity through Junction sandbox:
- Get a Junction sandbox Team API key.
- Set
LAB_PROVIDER=junction,JUNCTION_API_KEY,JUNCTION_BASE_URL=https://api.sandbox.us.junction.com, andSUPABASE_SERVICE_ROLE_KEYin Vercel/local env. - Use
GET /api/provider/liveto confirm catalog access. - Use
POST /api/provider/livewith{ "action": "locations", "zip": "80202" }to verify live clinic lookup. - Map Private Lab Test panels/tests to Junction lab test IDs in
JUNCTION_LAB_TEST_MAP, for example:
{
"complete-wellness": ["junction-lab-test-id"]
}Production provider order writes stay disabled unless LAB_PROVIDER_ORDER_WRITES=enabled. Sandbox checkout bypasses Stripe unless LAB_PROVIDER_SANDBOX_CHECKOUT=enabled, and direct sandbox order testing is blocked in production unless LAB_PROVIDER_SANDBOX_TESTS=enabled. Catalog/mapping debug actions are Preview-only unless LAB_PROVIDER_CATALOG_DEBUG=enabled. Patient intake is stored server-side in Supabase checkout intents and is not copied into Stripe metadata.
When mapping individual test IDs, the Junction adapter requires every selected test to have a provider ID. Set JUNCTION_ALLOW_PARTIAL_TEST_MAP=true only for temporary sandbox experiments.
Direct Quest/Labcorp enterprise integrations should come after aggregator volume proof; the current fastest path is a provider network that can issue the required authorization, generate requisitions, return PSC locations, and deliver results. The national lab affiliation ladder is tracked in docs/lab-partner-outreach-plan.md and surfaced at /partners/outreach.
The latest product research sprint is documented in docs/market-research-and-product-sprint.md, the company scale playbook is in docs/company-scale-playbook.md, and the AI growth stack is in docs/ai-growth-stack-plan.md. The app exposes working strategy/program/growth surfaces at /strategy, /programs, and /growth.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.