The mirrors moved from Alpaq to the Iris org; point at them directly instead
of relying on Gitea's redirect from the old names.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Alpaq92 GitHub account is suspended, so the github: dependencies no
longer resolve. CHMate, dejaview and Riposte are restored in the Alpaq
organisation on Gitea from the files installed here; foliate-js comes from
a Gitea mirror of johnfactotum/foliate-js, pinned to the same commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Render PostScript and EPS (.ps / .eps / .epsf). Riposte (pure-JS, zero-dep, MIT)
interprets each page and rasterizes it to a <canvas>; the new PostScriptRenderer
drives Riposte's engine and lays pages out as `.postscript-page`, matching the
PDF/DjVu/comic paged-canvas model. A per-page try/catch keeps an unsupported
operator from sinking the whole document.
- New src/renderers/postscript-renderer.js; wired into EXT_MAP (.ps/.eps/.epsf)
+ RENDERER_LOADERS, dropzone pill + toolbar badge (#880e4f), accept list, CSS
- riposte pinned as a git dep (no Vite alias needed — it declares no package exports)
- README / CREDITS / EMBEDDING updated (riposte is the 4th git-dep engine)
- Bump deps: mammoth 1.8->1.12, pdfjs-dist 6.0.227->6.1.200, vite 8.1.0->8.1.2
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Render Microsoft Compiled HTML Help files. CHMate (pure-JS, MIT) parses the ITSF
container and LZX-decompresses topics; its hardened renderTopic sanitizes each
topic, inlines resources as blob: URLs and adds a strict CSP. The new
CHMRenderer shows topics in a sandboxed iframe (no allow-scripts), wires
internal (data-chm-href) and external (confirm + new tab) link navigation, and
builds the .hhc table of contents into the sidebar.
- New src/renderers/chm-renderer.js; wired into EXT_MAP + RENDERER_LOADERS,
dropzone pill + toolbar badge (#006064), file-picker accept list
- chmate pinned as a git dep; `chmate/render` exposed via a Vite resolve alias
(CHMate's package exports only "."), inherited by the embed-app build
- README / CREDITS / EMBEDDING updated (chmate is the 3rd git-dep engine)
- Also: re-fit the page when the viewer area resizes — a ResizeObserver on
#viewerContainer re-applies the fit-to-width/height/page scale, so opening the
sidebar (or resizing the window) no longer leaves the page clipped at its old
scale. Benefits every renderer, not just CHM.
- /simplify applied: merged duplicate MHTML/CHM iframe CSS, dropped a dead
field + an inert TOC wrapper div, replaced a parallel Map with data-target.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Render saved Web Archive (MHTML) pages — the "single file" saves from
Chrome/IE — via mhtml-to-html (MIT, gildas-lormeau). The library unpacks the
MIME container and inlines every resource as a data: URI; the result renders in
a sandboxed iframe (allow-scripts intentionally omitted) so the page's own CSS
can't leak into the app and nothing executes or touches the network.
- New src/renderers/mhtml-renderer.js, lazy-loaded; wired into EXT_MAP and
RENDERER_LOADERS for .mht/.mhtml, plus the file-picker accept list
- README / CREDITS / EMBEDDING updated; mhtml-to-html stays permissive (MIT)
- Removed dead .odf-frame CSS (an abandoned, unreferenced iframe rule)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The DjVu decoder (the user's own repo) advanced; pin to ae7aed2. Worker
open/render/text protocol unchanged, build green. Every other dependency was
already at its latest version.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- pdfjs-dist 4.10 -> 6.0.227. v6 removed PDFDocumentProxy.destroy(); destroy the
loading task instead (load / extractText / destroy). render() API is unchanged.
- rtf.js 2.3 -> 3.0.9 (npm) and refreshed public/rtfjs/*.bundle.min.js — the
bundles the renderer loads at runtime (window.RTFJS), not the npm import.
- vite 6.4 -> 8.1 (now Rolldown-based); build config unchanged.
- dejaview pinned to the latest commit (worker open/render/text protocol intact).
- foliate-js, xlsx (SheetJS 0.20.3) and every other dep were already at latest.
Verified: app + embed build; PDF compare (pdf.js 6 text layer), RTF render
(rtf.js 3 bundles), and markdown compare all work. PDF/DjVu *canvas* rendering
can't be exercised in the headless preview — confirm document viewing in a real
browser.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Compare two versions of a text document (txt, md, code, csv, xlsx, docx, rtf,
odf, doc) using jsdiff. Three switchable view modes — side-by-side (default),
unified, inline — all rendered from one diff. Each changed line has a hover
tooltip that can be pinned open; tooltips show blame (author/date/commit/
message) the host supplies, keyed by the new-side line number.
- src/diff-view.js (new, lazy): Diff.diffLines -> aligned row model (del+add
paired as 'mod'), intra-line word diff, three renderers from one rows[],
shared hover tooltip + pinnable popovers. DOM-built (no innerHTML).
- main.js: compare(srcA,nameA,srcB,nameB,{blame,mode}); _extractText renders
each version with a FRESH renderer into a detached node (never the live
viewer) and extracts text per format (block-aware walk for rich HTML,
tab/newline for tables); DIFFABLE gate; teardown on normal load.
- Embed: readerjs.js inst.compare(a,b,opts) + a 'compare' mount opt; reader.js
readerjs:compare message. Blame is plain data (postMessage-safe).
- Demo: a Compare control (pick two files) in index.html, gated to the full app.
- i18n: compare.*/blame.* in all 9 languages; CSS for the diff grid, ins/del,
tooltip/pin (reusing the .image-info look) + badge-compare.
- diff (jsdiff, BSD-3) added; lazy-split into its own chunk.
- Docs: CREDITS (jsdiff), EMBEDDING (compare + blame API), README feature.
Verified (demo + built embed): side-by-side aligns; unified/inline toggle
instantly; word-level ins/del; hover tooltip shows blame; pin -> persistent
popover; setLang re-translates; pdf/etc -> unsupported without breaking the
view; normal load after compare tears down cleanly. Blame round-trips through
the embed's postMessage.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
One library-fetching method: everything is an npm dependency, no git
submodules. 'npm install' alone yields a working build.
- foliate-js (e-books) and dejaview (DjVu) aren't published to npm, so they
are pinned to a commit as git dependencies in package.json (were submodules).
Imports updated: epub-renderer -> 'foliate-js/view.js'; djvu-renderer worker
-> node_modules/dejaview.
- vite: optimizeDeps.exclude foliate-js — its stubbed/unused pdf.js uses
top-level await, which fails esbuild's es2020 prebundle; served as source it
goes through the existing stubFoliatePdf plugin.
- Removed the 5 reference-only submodules (pdf.js, docx, WebODF, rtf.js,
marked) — never imported; the runtime uses the npm packages.
- Dropped .gitmodules, submodules/, the monthly update-submodules workflow, the
deploy checkout's 'submodules: recursive', and the submodules:init script.
JSDoc's docToText.js stays (already committed under public/jsdoc).
- README: removed the Submodules table; clone no longer needs --recurse-submodules.
Verified: npm ci (fresh-clone sim) + build green; DjVu renders via the
node_modules dejaview worker (dev + build); app boots with foliate loaded.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- CSVRenderer: CSV/TSV → HTML table via Papa Parse (MIT); robust quoting,
header row, horizontal scroll.
- CodeRenderer: source/config files (JS/TS/JSON/XML/YAML/CSS/Python/…) with
highlight.js (BSD-3); JSON is pretty-printed. ~35 extensions.
- XLSXRenderer: .xlsx/.xls/.xlsm/.xlsb → one titled HTML table per sheet via
SheetJS (Apache-2.0, from the official CDN build — current & secure).
- Register all in EXT_MAP; dropzone tags + badges; shared .data-table styling.
- Add the EXIF pill to the dropzone; list SheetJS / Papa Parse / highlight.js
in the footer + README credits.
All three deps are permissive (Apache-2.0 / MIT / BSD-3), so the license policy
holds. Verified in preview: CSV (quoted commas parsed), JSON/Python highlighted
+ pretty-printed, 2-sheet XLSX renders both sheets. vite build ok.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- PPTXRenderer renders .pptx slides to a canvas with PptxViewJS (MIT). The
toolbar's page nav drives slide changes; opens fit-to-view (page-fit).
- PptxViewJS always paints at the slide's native pixel size and fits the slide
into the canvas's current backing, so we pin the canvas to native dims
(from presentation.slideSize, EMU→px) and scale the wrapper via CSS zoom —
touching canvas.style distorts the slide via its post-load re-render.
- Deps: pptxviewjs (MIT) + chart.js (MIT, peer dep it imports for charts).
- Register pptx in EXT_MAP; dropzone tag + badge; README + credits.
- Also list exifr + UTIF.js in the dropzone "Powered by" footer (were missing
after the image feature).
Verified in preview: 3-slide deck renders at correct 4:3 aspect, fits the
viewport, zoom (wrapper) and slide navigation work. vite build ok.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- ImageRenderer for PNG/JPEG/GIF/WebP/AVIF/BMP/SVG/ICO (native <img>) and TIFF
(decoded with UTIF.js, multi-page TIFFs become multiple pages). Fits the whole
image to the viewport on open (page-fit); thumbnails + scroll tracking.
- EXIF/info panel via exifr: format, dimensions, size, plus camera, lens, date,
focal length, exposure (ƒ/shutter/ISO) and GPS when present. Labels carry
data-i18n so they translate and react to language switches (added info.* keys
to all 9 locales).
- FB2 / FBZ routed to the existing foliate-js EPUBRenderer (foliate already
parses FictionBook) — just register the extensions.
- Register image + fb2/fbz in EXT_MAP; dropzone tags, badge/tag colors; README.
- New deps: utif (MIT), exifr (MIT).
Verified in preview: JPEG renders with full EXIF (incl. GPS), PNG shows basic
info, multi-page TIFF decodes to 2 pages, FB2 renders via foliate; panel labels
switch language live. vite build ok.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add ComicRenderer: renders archive page images as a vertical stack with
scroll-synced page tracking and thumbnails, matching the PDF renderer model
- CBZ unpacked via JSZip (existing dep); CBR/CBT via libarchive.js, whose
RAR decoder is libarchive's own BSD implementation — no UnRAR-licensed code
- Vendor libarchive.js worker + wasm under public/libarchive/ (served statically)
- Register cbz/cbr/cbt in EXT_MAP; add format badge + dropzone tags
- Also backfill the Markdown (.md) dropzone tag and file-input accept entry
- README: document comic formats and credit libarchive.js
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add markedjs/marked as a submodule
- Install marked npm package for runtime rendering
- Add MDRenderer that parses .md/.markdown files with marked and renders into doc-page
- Register md/markdown extensions in EXT_MAP
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ODF: webodf npm package is an empty stub with no webodf.js, and there is
no working CDN for it. Replace with a pure-JS ODF->HTML converter using
jszip: reads content.xml from the ODF ZIP, walks text:/table:/draw:
namespace elements, extracts embedded images as blob URLs. Covers ODT,
ODS, ODP and ODF.
DOC: catch the JSZip "not a ZIP" error thrown by mammoth on binary OLE
.doc files and surface a human-readable message asking to re-save as
.docx instead of showing a raw stack trace.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>