Skip to content

VireGlass from npm, and the panel on its live-DOM renderer (1.4.0) - #1

Merged
pruffit merged 2 commits into
mainfrom
feat/vireglass-from-npm
Oct 16, 2026
Merged

pruffit merged 2 commits into
mainfrom
feat/vireglass-from-npm

Conversation

@pruffit

@pruffit pruffit commented Oct 16, 2026

Copy link
Copy Markdown
Owner

VireGlass now comes from the published npm package, and the panel draws with its live-DOM renderer instead of a hand-built WebGL canvas.

What changes

  • vireglass@^2.2.0 is a regular dependency, bundled into dist/ by esbuild, so the extension still installs as a folder without node_modules.
  • The generated src/glass/vireglass.bundle.js, its types, and scripts/build-glass.mjs are gone, along with the CI step that checked the bundle was present.
  • src/glass.ts ports the package's attachGlass into the panel's shadow tree. It is a port rather than a call for two reasons: the pane moves under a finger and is thrown into corners, and the morph resizes it every frame. attachGlass would re-bake its map at full resolution on each of those frames.
  • The panel over a light page is now light frosted glass, where it used to be dark smoke. That comes from the package's adaptive material, not a choice made here.
  • 1.4.0: version, changelog date and link.

Checked

  • npm run check: typecheck, build, 26 + 19 tests.
  • Live in Chromium with the unpacked extension, old (1.3.0) vs new, on ficbook.net:
    • both versions load, with a service worker and no manifest errors;
    • the new panel renders with rim, shadow and refraction of the page text;
    • no console errors from the extension;
    • an EPUB of a 40-chapter work downloads (309 KB).
  • 1.3.0 logged 78 WebGL buffer performance warnings; 1.4.0 logs none.
  • Not checked:
    • AO3 (Cloudflare challenge from this machine) and the other sites;
    • drag-to-corner and keyboard moves;
    • the MOBI, FB2 and TXT outputs.

🤖 Generated with Claude Code

pruffit and others added 2 commits October 16, 2026 12:57
The glass used to be a generated bundle built from a private package and committed
ready-made. vireglass is published now, so the bundle, its hand-written types and
scripts/build-glass.mjs are gone and the build resolves the package like any other
dependency; dist/ still bundles it, so the extension installs as a folder without
node_modules.

Version 2 moved glass over live DOM into vireglass/dom, which is what the panel did by
hand, so src/glass.ts ports the package's attachGlass into the shadow tree instead of
drawing on a WebGL canvas. It stays a port rather than a call: the pane moves under a
finger and throws into corners, and the morph resizes every frame, which attachGlass
would answer by re-baking its map at full resolution.

Checked in Chromium with the unpacked extension on ficbook.net: the panel renders with
rim, shadow and refraction, no console errors from the extension, and an EPUB downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pruffit
pruffit merged commit 2be923a into main Oct 16, 2026
1 check passed
@pruffit
pruffit deleted the feat/vireglass-from-npm branch October 16, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant