ext-apps/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik d185099ead
feat(pdf-server): lazy range-based loading + eager background preloading (#480)
* lazy PDF loading w/ PDFDataRangeTransport

* lint

* feat: lazy PDF loading via range transport + eager background preloading

Replace full-file download with PDFDataRangeTransport so PDF.js fetches
byte ranges on demand. First page renders immediately; remaining pages
load in background for search.

**Range transport (server + client)**
- server.ts: add read_pdf_bytes tool returning base64 chunks with offset
- mcp-app.ts: AppRangeTransport feeds PDF.js via fetchRange/fetchChunk
  with parallel sub-requests for large ranges, Promise-based dedup of
  concurrent requests, and a persistent range cache

**Background preloader**
- Sequential page 1→N text extraction, pauses during interactive
  navigation (preloadPaused flag set in goToPage, cleared in renderPage)
- Debounced live search refresh (500ms) as pages load
- Search UI shows '(loading…)' suffix until all pages processed

**Loading indicators**
- SVG pie in toolbar: fills as pages load, fades on completion,
  turns red on errors with tooltip listing failed pages
- Debounced page-loading overlay (150ms) for uncached page navigation

**Cleanup**
- Remove old full-file chunked download and progress bar
- Remove extractAllPageText (replaced by preloader)
- Remove verbose debug logs (Coverage, RangeReq, cache hit)
2026-02-21 16:33:48 -08:00
..
basic-host fix: align basic-host dark mode styles (#438) 2026-02-12 15:28:51 +00:00
basic-server-preact Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-react Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-solid Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-svelte Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-vanillajs Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-vue Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
budget-allocator-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
cohort-heatmap-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
customer-segmentation-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
debug-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
integration-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
map-server Clarify spec and SDK: accept UIResourceMeta in both resources/list and resources/read (#410) 2026-02-04 14:26:09 +00:00
pdf-server feat(pdf-server): lazy range-based loading + eager background preloading (#480) 2026-02-21 16:33:48 -08:00
qr-server chore: bump to 1.0.1 - fix npm reference for ext-apps dependency in examples + update zod to 4.x (#368) 2026-01-26 21:55:15 +00:00
quickstart Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
say-server chore: bump to 1.0.1 - fix npm reference for ext-apps dependency in examples + update zod to 4.x (#368) 2026-01-26 21:55:15 +00:00
scenario-modeler-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
shadertoy-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
sheet-music-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
system-monitor-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
threejs-server Add fullscreen button to threejs-server (#446) 2026-02-19 19:17:04 +00:00
transcript-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
video-resource-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
wiki-explorer-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
run-all.ts add EXAMPLE=folder-name support for tests & basic-host (#292) 2026-01-19 20:16:37 +00:00