# Endodontics: Knowledge Base Using Next.js

## Summary
A knowledge base blueprint for endodontics built with Next.js on Ample. Domain schema includes:

- **Procedures** (code, name, description, typical_visits): root canal and retreatment procedures.
- **Referral guides** (procedure_id, referring_dentist_checklist, imaging_needed): public guidance for referring practices.
- **Locations** (name, address, phone, opening_hours): clinic locations.
- **Endodontists** (name, registration_number, technologies): specialists and equipment listed publicly.
- **Asset versions** (version, cdn_key, published_at): versioned assets served from the CDN bucket.

Public information includes: procedure catalog, referral guidance for general dentists, specialist profiles and technology, locations.

### Public Handling
Kept out of scope until handling is reviewed: referral letters with patient identity, imaging files, clinical notes. Referral documents carry patient identity; keep them out of these workflows until handling is reviewed. No compliance is claimed.

### Technical Basis
Verified on Next.js: a versioned, immutable-cached asset uploaded to a published bucket and served from the CDN URL alongside the app's own public HTTPS URL.

## Representative Queries
- Endodontics: knowledge base using Next.js
- Where can I host Endodontics: Knowledge base built with Next.js?
- I need a genuinely specialized knowledge base workflow covering public specialty pages and practice contact routing; no patient intake.

## Resource Requirements
- **Primitive**:
  - Compute
  - CDN

## Infrastructure Requirements
- **Compute**:
  - Status: verified
  - Summary: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes.
- **CDN**:
  - Status: verified
  - Summary: The CDN host serves objects from published buckets. It does not front app compute and is not a cache or key-value store.

## Framework Information
- Framework: Next.js
- Workload: Knowledge base
- Industry: Endodontics
- Release Status: published
- Support Status: verified
- Execution Status: ready

## Prerequisites
1. A Next.js project (next build then next start -H 0.0.0.0 -p $PORT on the node-22 template)
2. Bucket credentials from `ample bucket create` passed as encrypted S3_* environment variables and a published bucket for public assets (CDN_*)
3. A review of which endodontics data classes may be handled at all; this blueprint models public information only.

## Workflow Steps
1. Model the endodontics domain
   - Create the tables procedures, referral_guides, locations, endodontists, asset_versions.
2. Workflow step 1
   - Model articles and categories as tables keyed to the public catalog entities.
3. Workflow step 2
   - Build the site with versioned assets served from the CDN bucket.
4. Workflow step 3
   - Keep articles free of any sensitive data class.
5. Workflow step 4
   - Deploy and verify the public URL and the CDN asset URL.
6. Deploy
   - Run the synchronous deploy once and read the result.
7. Verify
   - Run the pattern self-test(s) and your own acceptance checks for the endodontics workflow.

## Cost Estimate
- Currency: USD
- Monthly Amount: 5.0
- Basis: size prices from pricing.toml.

### Components
- **App Server**:
  - Size: s-1vcpu-1gb
  - Quantity: 1.0
  - Monthly Amount: 5.0

## Examples
- **Next.js pattern fixture**: Verified public web service basis for this blueprint.

## Success Checks
1. App responds on its public URL
   - Path: /
   - Expect: ample canary next js patterns
2. Versioned-static-assets self-test from the example
   - Path: /p/versioned-static-assets
   - Expect: see the pattern fixture checks.

## Limitations
- The technical basis was verified with the pattern fixture; the endodontics schema and workflow are an original design for this blueprint and were not executed separately.
- No compliance claim is made. Referral documents carry patient identity; keep them out of these workflows until handling is reviewed.

### Evidence Summary
- **Canary Run**: Next.js pattern fixture deployed on Ample. Public web service checks passed.

### Identifiers & Links
- Format Links: 
  - [HTML](/content/blueprints/endodontics/knowledge-base/next-js/index.html) 
  - [Markdown](/content/blueprints/endodontics/knowledge-base/next-js.md) 
  - [JSON](https://api.ample.computer/v1/catalog/recipes/page%3Ablueprints%3Aendodontics%3Aknowledge-base%3Anext-js)

## Next Actions
- Browse the catalog index
- Search published recipes by intent, stack and constraints
- Prepare a side-effect-free deployment plan for an authorized project
- Read the existing agent authentication setup
- Browse Endodontics
- Browse Knowledge base
- Browse Next.js
- Browse Deploy web app
